mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] spice: fixed grabKeyboardOnFocus regression
This commit is contained in:
parent
1c016ac0cd
commit
ce96c77098
@ -1162,7 +1162,10 @@ static void setGrab(bool enable)
|
||||
else
|
||||
{
|
||||
if (params.grabKeyboard)
|
||||
XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime);
|
||||
{
|
||||
if (!g_state.focused || !params.grabKeyboardOnFocus)
|
||||
XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime);
|
||||
}
|
||||
|
||||
XUngrabPointer(g_state.wminfo.info.x11.display, CurrentTime);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user