mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-04 01:34:13 +00:00
[client] spice: set inView false if the focus is lost
Failure to do this results in loss of input on X11 as we need to be sure the cursor is ungrabbed.
This commit is contained in:
@@ -148,6 +148,9 @@ void app_handleFocusEvent(bool focused)
|
||||
g_state.ds->ungrabKeyboard();
|
||||
}
|
||||
|
||||
if (!focused)
|
||||
setCursorInView(false);
|
||||
|
||||
g_state.focused = focused;
|
||||
g_cursor.realign = true;
|
||||
g_state.ds->realignPointer();
|
||||
|
Reference in New Issue
Block a user