diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-06-17 18:55:42 -0700 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-06-17 18:55:42 -0700 |
commit | be83e1b8f434c3b4f7557ecb6d374043df2954f0 (patch) | |
tree | 420568f816a526c39a693fc8e5c4a8df84680393 | |
parent | 17576445b869845986ed7fa71cb96a307d122653 (diff) |
Wayland: check mask when preparing source events
-rw-r--r-- | src/gui/kernel/qeventdispatcher_glib_wayland.cpp | 3 |
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; } |