summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qguieventdispatcher_glib.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-12-11 14:37:38 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-12-11 14:37:38 (GMT)
commit1908e12284e1f6f25bfb46df3ce9659c6e19a50c (patch)
tree82631f13e4aa207c3031425492ba5b9fd01c24de /src/gui/kernel/qguieventdispatcher_glib.cpp
parentf2321e217976042403adfb74bffa7dceffa6febd (diff)
downloadQt-1908e12284e1f6f25bfb46df3ce9659c6e19a50c.zip
Qt-1908e12284e1f6f25bfb46df3ce9659c6e19a50c.tar.gz
Qt-1908e12284e1f6f25bfb46df3ce9659c6e19a50c.tar.bz2
QGuiEventDispatcherGlib::flush() does nothing despite documentation
otherwise. The documentation for flush() is that it flushes the outgoing command queue on X11, but not when using Glib. Fix this by implementing flush() in the GUI Glib dispatcher. Task-number: QTBUG-3185
Diffstat (limited to 'src/gui/kernel/qguieventdispatcher_glib.cpp')
-rw-r--r--src/gui/kernel/qguieventdispatcher_glib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qguieventdispatcher_glib.cpp b/src/gui/kernel/qguieventdispatcher_glib.cpp
index f8a638c..fc6bc54 100644
--- a/src/gui/kernel/qguieventdispatcher_glib.cpp
+++ b/src/gui/kernel/qguieventdispatcher_glib.cpp
@@ -214,4 +214,9 @@ void QGuiEventDispatcherGlib::startingUp()
g_source_add_poll(&d->x11EventSource->source, &d->x11EventSource->pollfd);
}
+void QGuiEventDispatcherGlib::flush()
+{
+ XFlush(X11->display);
+}
+
QT_END_NAMESPACE