diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2011-06-08 11:26:03 -0400 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-03-05 02:39:02 +0200 |
commit | 23fcfbf17ed493f8df5e2059422b5bbd51b23da2 (patch) | |
tree | 1408bc57a2c67c44d0f58251bb33d79380134ec3 /src/core/window-private.h | |
parent | 588d7cbb988dda453c62d47f887f3fc562cd5c61 (diff) | |
download | metacity-23fcfbf17ed493f8df5e2059422b5bbd51b23da2.tar.gz |
move sync alarms to be per-window and permanent
Instead of creating a new alarm each time we resize a window
interactively, create an alarm the first time we resize a window
and keep it around permanently until we unmanage the window.
Doing it this way will be useful when we allow the application to
spontaneously generate sync request updates to indicate
frames it is drawing.
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 fbd0bc1e..dd651952 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -347,6 +347,8 @@ struct _MetaWindow XSyncCounter sync_request_counter; guint sync_request_serial; GTimeVal sync_request_time; + /* alarm monitoring client's _NET_WM_SYNC_REQUEST_COUNTER */ + XSyncAlarm sync_request_alarm; /* Number of UnmapNotify that are caused by us, if * we get UnmapNotify with none pending then the client @@ -647,6 +649,9 @@ void meta_window_refresh_resize_popup (MetaWindow *window); void meta_window_free_delete_dialog (MetaWindow *window); +void meta_window_create_sync_request_alarm (MetaWindow *window); +void meta_window_destroy_sync_request_alarm (MetaWindow *window); + void meta_window_foreach_transient (MetaWindow *window, MetaWindowForeachFunc func, void *data); |