diff --git a/gdk/wayland/gdkeventsource.c b/gdk/wayland/gdkeventsource.c index 619ee872c1..9dda53a1ff 100644 --- a/gdk/wayland/gdkeventsource.c +++ b/gdk/wayland/gdkeventsource.c @@ -50,6 +50,9 @@ gdk_event_source_prepare(GSource *base, gint *timeout) return TRUE; if (wl_display_flush (display->wl_display) < 0) + g_error ("Error flushing display: %s", g_strerror (errno)); + + if (wl_display_dispatch_pending (display->wl_display) < 0) g_error ("Error dispatching display: %s", g_strerror (errno)); return FALSE;