Skip to content

Commit 2b5b657

Browse files
committed
Event.c: change global variable for autograb and inputlock on (de)activation_
1 parent 5e519bb commit 2b5b657

File tree

1 file changed

+3
-0
lines changed
  • nx-X11/programs/Xserver/hw/nxagent

1 file changed

+3
-0
lines changed

nx-X11/programs/Xserver/hw/nxagent/Events.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@ static void nxagentEnableAutoGrab(void)
803803
nxagentGrabPointerAndKeyboard(NULL);
804804
setWinNameSuffix(WINDOWSUFFIX_AUTOGRAB, "input grabbed");
805805
updateWinName();
806+
nxagentChangeOption(AutoGrab, True);
806807
}
807808

808809
static void nxagentDisableAutoGrab(void)
@@ -814,6 +815,7 @@ static void nxagentDisableAutoGrab(void)
814815
nxagentUngrabPointerAndKeyboard(NULL);
815816
setWinNameSuffix(WINDOWSUFFIX_AUTOGRAB, NULL);
816817
updateWinName();
818+
nxagentChangeOption(AutoGrab, False);
817819
}
818820

819821
static void nxagentToggleAutoGrab(void)
@@ -859,6 +861,7 @@ static void nxagentDisableInputlock(void)
859861
*/
860862
setWinNameSuffix(WINDOWSUFFIX_INPUTLOCK, NULL);
861863
updateWinName();
864+
nxagentChangeOption(InputLock, False);
862865
}
863866

864867
/* TODO: drop inputlock when switching to Fullscreen */

0 commit comments

Comments
 (0)