diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-04 10:35:25 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-04-04 10:36:53 (GMT) |
commit | e8d31fa99352c18d469394d65c80541b7788440c (patch) | |
tree | 5ebebf8430185491f7caa445959cf5448cfa2768 /src/plugins | |
parent | 05f2b1c912e09be9cb9f1128494d315c53698d02 (diff) | |
download | Qt-e8d31fa99352c18d469394d65c80541b7788440c.zip Qt-e8d31fa99352c18d469394d65c80541b7788440c.tar.gz Qt-e8d31fa99352c18d469394d65c80541b7788440c.tar.bz2 |
Process XCB events on aboutToBlock() instead of awake().
We want the XCB events to be processed right before calling select(),
to make sure any remaining events in the queue are flushed.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp index ec1fc1b..2a220af 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection.cpp @@ -125,7 +125,7 @@ QXcbConnection::QXcbConnection(const char *displayName) connect(notifier, SIGNAL(activated(int)), this, SLOT(processXcbEvents())); QAbstractEventDispatcher *dispatcher = QAbstractEventDispatcher::instance(qApp->thread()); - connect(dispatcher, SIGNAL(awake()), this, SLOT(processXcbEvents())); + connect(dispatcher, SIGNAL(aboutToBlock()), this, SLOT(processXcbEvents())); } QXcbConnection::~QXcbConnection() |