diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2011-06-13 17:53:23 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2013-02-13 09:40:07 -0500 |
commit | c9343e3ee3df0159fb3000bd38c61d9ff984fd8e (patch) | |
tree | 7d9fb10ae0d9ec6fa6bdf0d34d019ca0cf98ffcc /src/core/window-private.h | |
parent | 3abaf506a6279125d45cfbd64f09f5bc6d9342b0 (diff) | |
download | mutter-c9343e3ee3df0159fb3000bd38c61d9ff984fd8e.tar.gz |
Implement freezing of updates during resize
Replace the unused meta_compositor_set_updates() with
a reversed-meaning meta_compositor_set_updates_frozen(), and use
it to implement freezing application window updates during
interactive resizing. This avoids drawing new areas of the window
with blank content before the application has a chance to repaint.
https://bugzilla.gnome.org/show_bug.cgi?id=685463
Diffstat (limited to 'src/core/window-private.h')
-rw-r--r-- | src/core/window-private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/window-private.h b/src/core/window-private.h index f7228ed2b..ffbe4be04 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -343,6 +343,9 @@ struct _MetaWindow /* if TRUE, window is attached to its parent */ guint attached : 1; + /* if TRUE, we are freezing updates during a resize */ + guint updates_frozen_for_resize : 1; + /* if non-NULL, the bounds of the window frame */ cairo_region_t *frame_bounds; @@ -663,4 +666,6 @@ gboolean meta_window_can_tile_side_by_side (MetaWindow *window); void meta_window_compute_tile_match (MetaWindow *window); +gboolean meta_window_updates_are_frozen (MetaWindow *window); + #endif |