mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-15 20:08:17 +00:00
[client] added new option input:grabKeyboardOnFocus
This commit is contained in:
@@ -928,6 +928,9 @@ static void handleWindowEnter()
|
||||
// only called for X11
|
||||
static void keyboardGrab()
|
||||
{
|
||||
if (!params.grabKeyboardOnFocus)
|
||||
return;
|
||||
|
||||
// grab the keyboard so we can intercept WM keys
|
||||
XGrabKeyboard(
|
||||
state.wminfo.info.x11.display,
|
||||
@@ -942,6 +945,9 @@ static void keyboardGrab()
|
||||
// only called for X11
|
||||
static void keyboardUngrab()
|
||||
{
|
||||
if (!params.grabKeyboardOnFocus)
|
||||
return;
|
||||
|
||||
// ungrab the keyboard
|
||||
XUngrabKeyboard(
|
||||
state.wminfo.info.x11.display,
|
||||
|
Reference in New Issue
Block a user