From 5876f2e3e5093b5acc25a675afc8b4f0271cf5c1 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 14 Feb 2013 13:40:55 -0500 Subject: Fix corner cases where _NET_WM_FRAME_DRAWN might be missed The WM spec requires _NET_WM_FRAME_DRAWN to *always* be sent when there is an appropriate update to the sync counter value. We were potentially missing _NET_WM_FRAME_DRAWN when an application did a spontaneous update during an interactive resize and during effects. Refactor the code to always send _NET_WM_FRAME_DRAWN, even when a window is frozen. https://bugzilla.gnome.org/show_bug.cgi?id=693833 --- src/meta/compositor.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/meta/compositor.h') diff --git a/src/meta/compositor.h b/src/meta/compositor.h index e36f30b05..d917cafb0 100644 --- a/src/meta/compositor.h +++ b/src/meta/compositor.h @@ -156,6 +156,9 @@ void meta_compositor_sync_window_geometry (MetaCompositor *compositor, void meta_compositor_set_updates_frozen (MetaCompositor *compositor, MetaWindow *window, gboolean updates_frozen); +void meta_compositor_queue_frame_drawn (MetaCompositor *compositor, + MetaWindow *window, + gboolean no_delay_frame); void meta_compositor_sync_stack (MetaCompositor *compositor, MetaScreen *screen, -- cgit v1.2.1