From fab806df9297d901625edf03eccd8f4a77875ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sun, 6 Dec 2015 23:17:33 +0100 Subject: [PATCH] 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 --- geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 9103e27658..ab73001b0f 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -2665,7 +2665,7 @@ bool Client::doStartMoveResize() if (!pointerGrab.isNull() && pointerGrab->status == XCB_GRAB_STATUS_SUCCESS) { has_grab = true; } - if (grabXKeyboard(frameId())) + if (!has_grab && grabXKeyboard(frameId())) 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 m_moveResizeGrabWindow.reset();