Improved QCursor::setPos() robustness on xcb.
authorSamuel Rødal <samuel.rodal@nokia.com>
Wed, 20 Jun 2012 07:25:54 +0000 (09:25 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 20 Jun 2012 08:04:26 +0000 (10:04 +0200)
This makes tst_QGraphicsView::hoverLeave() less flaky.

Change-Id: Iaa1be6e2d02499679c69b26c07132413040173b6
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/plugins/platforms/xcb/qxcbcursor.cpp

index e785fd9..0f69221 100644 (file)
@@ -543,6 +543,7 @@ void QXcbCursor::setPos(const QPoint &pos)
     xcb_window_t root;
     getPosAndRoot(conn, &root, 0);
     xcb_warp_pointer(conn, XCB_NONE, root, 0, 0, 0, 0, pos.x(), pos.y());
+    xcb_flush(conn);
 }
 
 QT_END_NAMESPACE