mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-03-15 21:05:37 +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:
parent
ac3333c0d2
commit
f883c630f6
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue