mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-27 00:56:27 +00:00
[client] spice: obey input:grabKeyboard
This commit is contained in:
parent
2789e73296
commit
f352463d19
@ -1104,6 +1104,7 @@ static void setGrab(bool enable)
|
|||||||
None,
|
None,
|
||||||
CurrentTime);
|
CurrentTime);
|
||||||
|
|
||||||
|
if (params.grabKeyboard)
|
||||||
XGrabKeyboard(
|
XGrabKeyboard(
|
||||||
g_state.wminfo.info.x11.display,
|
g_state.wminfo.info.x11.display,
|
||||||
g_state.wminfo.info.x11.window,
|
g_state.wminfo.info.x11.window,
|
||||||
@ -1114,7 +1115,9 @@ static void setGrab(bool enable)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (params.grabKeyboard)
|
||||||
XUngrabKeyboard(g_state.wminfo.info.x11.display, CurrentTime);
|
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…
x
Reference in New Issue
Block a user