Skip to content

Commit 8ea77cc

Browse files
committed
Events.c: Autograb only for windowed modes
This also make re-autograbbing after switch back from AllScreens work.
1 parent 025ba6e commit 8ea77cc

File tree

1 file changed

+1
-2
lines changed
  • nx-X11/programs/Xserver/hw/nxagent

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,8 +1737,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
17371737
}
17381738
}
17391739

1740-
/* FIXME: only when in windowed mode! */
1741-
if (nxagentOption(AutoGrab))
1740+
if (nxagentOption(AutoGrab) && !(nxagentOption(AllScreens) || nxagentOption(Fullscreen) || nxagentOption(Rootless)))
17421741
{
17431742
if (X.xfocus.window == nxagentDefaultWindows[0] && X.xfocus.mode == NotifyNormal)
17441743
{

0 commit comments

Comments
 (0)