mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] spice: fix input:captureOnly support
This commit is contained in:
parent
4ca4fd35ad
commit
947ba9bfe3
1 changed files with 2 additions and 2 deletions
|
@ -137,6 +137,7 @@ void app_updateCursorPos(double x, double y)
|
|||
|
||||
void app_handleFocusEvent(bool focused)
|
||||
{
|
||||
g_state.focused = focused;
|
||||
if (!app_inputEnabled())
|
||||
return;
|
||||
|
||||
|
@ -151,7 +152,6 @@ void app_handleFocusEvent(bool focused)
|
|||
if (!focused)
|
||||
setCursorInView(false);
|
||||
|
||||
g_state.focused = focused;
|
||||
g_cursor.realign = true;
|
||||
g_state.ds->realignPointer();
|
||||
}
|
||||
|
@ -1560,7 +1560,7 @@ static void setGrabQuiet(bool enable)
|
|||
g_state.ds->ungrabKeyboard();
|
||||
}
|
||||
|
||||
if (!warpSupport)
|
||||
if (!warpSupport || params.captureInputOnly)
|
||||
g_state.ds->ungrabPointer();
|
||||
|
||||
// if exiting capture when input on capture only, we want to show the cursor
|
||||
|
|
Loading…
Reference in a new issue