avoid pointless kbd grab on moveresize

This makes (Qt5?) clients believe they lost input, ie. are no longer
active and change their visual representation.

REVIEW: 126266
This commit is contained in:
Thomas Lübking 2015-12-06 23:17:33 +01:00
parent ca7bf7dbe4
commit fab806df92

View file

@ -2665,7 +2665,7 @@ bool Client::doStartMoveResize()
if (!pointerGrab.isNull() && pointerGrab->status == XCB_GRAB_STATUS_SUCCESS) { if (!pointerGrab.isNull() && pointerGrab->status == XCB_GRAB_STATUS_SUCCESS) {
has_grab = true; has_grab = true;
} }
if (grabXKeyboard(frameId())) if (!has_grab && grabXKeyboard(frameId()))
has_grab = move_resize_has_keyboard_grab = true; has_grab = move_resize_has_keyboard_grab = true;
if (!has_grab) { // at least one grab is necessary in order to be able to finish move/resize if (!has_grab) { // at least one grab is necessary in order to be able to finish move/resize
m_moveResizeGrabWindow.reset(); m_moveResizeGrabWindow.reset();