From 0056302652dc7647cbcb4d7cc5dc49c6a2174c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 13 Nov 2013 11:28:05 +0100 Subject: [PATCH] [kwin] updateXTime before establishing grab for move resize mode Grabbing the pointer failed causing unrestricted move resize to operate incorrectly (position didn't update). --- geometry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/geometry.cpp b/geometry.cpp index 637f8a5548..4613a1a7ea 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2561,6 +2561,7 @@ bool Client::startMoveResize() m_moveResizeGrabWindow.create(r, XCB_WINDOW_CLASS_INPUT_ONLY, 0, NULL, rootWindow()); m_moveResizeGrabWindow.map(); m_moveResizeGrabWindow.raise(); + updateXTime(); const xcb_grab_pointer_cookie_t cookie = xcb_grab_pointer_unchecked(connection(), false, m_moveResizeGrabWindow, XCB_EVENT_MASK_BUTTON_PRESS | XCB_EVENT_MASK_BUTTON_RELEASE | XCB_EVENT_MASK_POINTER_MOTION | XCB_EVENT_MASK_ENTER_WINDOW | XCB_EVENT_MASK_LEAVE_WINDOW,