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:
parent
ca7bf7dbe4
commit
fab806df92
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue