summaryrefslogtreecommitdiff
path: root/gdk/wayland/gdkscreen-wayland.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-03-27 13:38:15 -0400
committerKristian Høgsberg <krh@bitplanet.net>2013-03-27 13:44:33 -0400
commitabfa4bf0aaf90d26f38a60272a01edcf115ffde1 (patch)
tree13182daff89d991d8081dc1092f344ef3adcde9b /gdk/wayland/gdkscreen-wayland.c
parentfc713dffb3c66bdf61f6c68b14c4655477b8e924 (diff)
downloadgtk+-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.c6
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");