mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] spice: fix input:captureOnly support
This commit is contained in:
parent
4ca4fd35ad
commit
947ba9bfe3
@ -137,6 +137,7 @@ void app_updateCursorPos(double x, double y)
|
|||||||
|
|
||||||
void app_handleFocusEvent(bool focused)
|
void app_handleFocusEvent(bool focused)
|
||||||
{
|
{
|
||||||
|
g_state.focused = focused;
|
||||||
if (!app_inputEnabled())
|
if (!app_inputEnabled())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -151,7 +152,6 @@ void app_handleFocusEvent(bool focused)
|
|||||||
if (!focused)
|
if (!focused)
|
||||||
setCursorInView(false);
|
setCursorInView(false);
|
||||||
|
|
||||||
g_state.focused = focused;
|
|
||||||
g_cursor.realign = true;
|
g_cursor.realign = true;
|
||||||
g_state.ds->realignPointer();
|
g_state.ds->realignPointer();
|
||||||
}
|
}
|
||||||
@ -1560,7 +1560,7 @@ static void setGrabQuiet(bool enable)
|
|||||||
g_state.ds->ungrabKeyboard();
|
g_state.ds->ungrabKeyboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!warpSupport)
|
if (!warpSupport || params.captureInputOnly)
|
||||||
g_state.ds->ungrabPointer();
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user