diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-27 13:38:15 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-27 13:44:33 -0400 |
commit | abfa4bf0aaf90d26f38a60272a01edcf115ffde1 (patch) | |
tree | 13182daff89d991d8081dc1092f344ef3adcde9b /gdk/wayland/gdkscreen-wayland.c | |
parent | fc713dffb3c66bdf61f6c68b14c4655477b8e924 (diff) | |
download | gtk+-abfa4bf0aaf90d26f38a60272a01edcf115ffde1.tar.gz |
wayland: Use the wl_display_sync() request to track pending init roundtrips
Instead of maintaining the init refcount in regular event handlers that can
fire in case of hotplug or mode changes, use a dedicated sync callback
to wait for roundtrips.
Diffstat (limited to 'gdk/wayland/gdkscreen-wayland.c')
-rw-r--r-- | gdk/wayland/gdkscreen-wayland.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index ee4200b04b..5c6c1dd527 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -896,12 +896,6 @@ output_handle_geometry(void *data, monitor->manufacturer = g_strdup (make); monitor->output_name = g_strdup (model); - /* Once we have the geometry event we know we have all events - * from the wl_output and need no further init roundtrips. - */ - if (display->init_ref_count > 0) - display->init_ref_count--; - if (monitor->geometry.width != 0) { g_signal_emit_by_name (monitor->screen, "monitors-changed"); |