From c752bb8eb8c57791f0250bcde5dbf964361c5b26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Samuel=20R=C3=B8dal?= Date: Wed, 20 Jun 2012 09:25:54 +0200 Subject: [PATCH] Improved QCursor::setPos() robustness on xcb. This makes tst_QGraphicsView::hoverLeave() less flaky. Change-Id: Iaa1be6e2d02499679c69b26c07132413040173b6 Reviewed-by: Laszlo Agocs --- src/plugins/platforms/xcb/qxcbcursor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/xcb/qxcbcursor.cpp b/src/plugins/platforms/xcb/qxcbcursor.cpp index e785fd9..0f69221 100644 --- a/src/plugins/platforms/xcb/qxcbcursor.cpp +++ b/src/plugins/platforms/xcb/qxcbcursor.cpp @@ -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 -- 2.7.4