summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-06-17 18:55:42 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-06-17 18:55:42 -0700
commitbe83e1b8f434c3b4f7557ecb6d374043df2954f0 (patch)
tree420568f816a526c39a693fc8e5c4a8df84680393
parent17576445b869845986ed7fa71cb96a307d122653 (diff)
Wayland: check mask when preparing source events
-rw-r--r--src/gui/kernel/qeventdispatcher_glib_wayland.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qeventdispatcher_glib_wayland.cpp b/src/gui/kernel/qeventdispatcher_glib_wayland.cpp
index bcfb9d3340..7e92ad2730 100644
--- a/src/gui/kernel/qeventdispatcher_glib_wayland.cpp
+++ b/src/gui/kernel/qeventdispatcher_glib_wayland.cpp
@@ -430,7 +430,8 @@ static gboolean waylandEventSourcePrepare(GSource *s, gint *timeout)
if (timeout)
*timeout = -1;
- wl_display_iterate(qWayland->wl_display, WL_DISPLAY_WRITABLE);
+ while (source->mask & WL_DISPLAY_WRITABLE)
+ wl_display_iterate(qWayland->wl_display, WL_DISPLAY_WRITABLE);
return false;
}