mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 15:27:19 +00:00
[client] spice: obey input:grabKeyboard
This commit is contained in:
parent
2789e73296
commit
f352463d19
@ -1104,17 +1104,20 @@ static void setGrab(bool enable)
|
|||||||
None,
|
None,
|
||||||
CurrentTime);
|
CurrentTime);
|
||||||
|
|
||||||
XGrabKeyboard(
|
if (params.grabKeyboard)
|
||||||
g_state.wminfo.info.x11.display,
|
XGrabKeyboard(
|
||||||
g_state.wminfo.info.x11.window,
|
g_state.wminfo.info.x11.display,
|
||||||
true,
|
g_state.wminfo.info.x11.window,
|
||||||
GrabModeAsync,
|
true,
|
||||||
GrabModeAsync,
|
GrabModeAsync,
|
||||||
CurrentTime);
|
GrabModeAsync,
|
||||||
|
CurrentTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime);
|
if (params.grabKeyboard)
|
||||||
|
XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime);
|
||||||
|
|
||||||
XUngrabPointer(g_state.wminfo.info.x11.display, CurrentTime);
|
XUngrabPointer(g_state.wminfo.info.x11.display, CurrentTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user