[client] mouse: stop setGrabQuiet from grabbing/ungrabbing the pointer

As LG always operates in relitive mode, the actual pointer grab/ungrab
is managed by the move handler, as such setGrabQuiet should not alter
the grab/ungrab state of the local pointer.
This commit is contained in:
Geoffrey McRae 2021-01-16 19:46:27 +11:00
parent 48f002992a
commit dc3d07302f

View File

@ -1213,8 +1213,6 @@ static void setGrabQuiet(bool enable)
if (enable) if (enable)
{ {
g_state.ds->grabPointer();
if (params.grabKeyboard) if (params.grabKeyboard)
g_state.ds->grabKeyboard(); g_state.ds->grabKeyboard();
} }
@ -1225,8 +1223,6 @@ static void setGrabQuiet(bool enable)
if (!g_state.focused || !params.grabKeyboardOnFocus) if (!g_state.focused || !params.grabKeyboardOnFocus)
g_state.ds->ungrabKeyboard(); g_state.ds->ungrabKeyboard();
} }
g_state.ds->ungrabPointer();
} }
// if exiting capture when input on capture only, we want to show the cursor // if exiting capture when input on capture only, we want to show the cursor