[kwin] updateXTime before establishing grab for move resize mode

Grabbing the pointer failed causing unrestricted move resize to
operate incorrectly (position didn't update).
This commit is contained in:
Martin Gräßlin 2013-11-13 11:28:05 +01:00
parent d5104cd4b5
commit 0056302652

View file

@ -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,