From dc3d07302f6a9b31f639563cf38e86d09e8a4f02 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 16 Jan 2021 19:46:27 +1100 Subject: [PATCH] [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. --- client/src/main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 397c9017..d62bad90 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -1213,8 +1213,6 @@ static void setGrabQuiet(bool enable) if (enable) { - g_state.ds->grabPointer(); - if (params.grabKeyboard) g_state.ds->grabKeyboard(); } @@ -1225,8 +1223,6 @@ static void setGrabQuiet(bool enable) if (!g_state.focused || !params.grabKeyboardOnFocus) g_state.ds->ungrabKeyboard(); } - - g_state.ds->ungrabPointer(); } // if exiting capture when input on capture only, we want to show the cursor