From e8d31fa99352c18d469394d65c80541b7788440c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= Date: Mon, 4 Apr 2011 12:35:25 +0200 Subject: 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. --- src/plugins/platforms/xcb/qxcbconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12