commit b9eafcefaa0732b6ce5bd17d6730aa919b7768cd
parent 3e821b0fad7926ce708dafd5d723efbd0d4935f0
Author: Michael Forney <mforney@mforney.org>
Date: Mon, 20 Jan 2014 15:40:52 -0800
compositor: Send frame event when any screen the view is on flips
This way, if the monitors happen to flip at opposite times, the surface
still receives frame events.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswc/compositor.c b/libswc/compositor.c
@@ -133,9 +133,9 @@ static void handle_screen_view_event(struct wl_listener * listener, void * data)
swc.compositor->pending_flips &= ~swc_screen_mask(base);
- if (swc.compositor->pending_flips == 0)
+ wl_list_for_each(view, &swc.compositor->views, link)
{
- wl_list_for_each(view, &swc.compositor->views, link)
+ if (view->base.screens & swc_screen_mask(base))
swc_view_frame(&view->base, event_data->frame.time);
}