Skip to content

Commit 11fdfda

Browse files
committed
Events.c: Autograb only for windowed modes
This also make re-autograbbing after switch back from AllScreens work.
1 parent 06be726 commit 11fdfda

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
@@ -1713,8 +1713,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
17131713
}
17141714
}
17151715

1716-
/* FIXME: only when in windowed mode! */
1717-
if (nxagentOption(AutoGrab))
1716+
if (nxagentOption(AutoGrab) && !(nxagentOption(AllScreens) || nxagentOption(Fullscreen) || nxagentOption(Rootless)))
17181717
{
17191718
if (X.xfocus.window == nxagentDefaultWindows[0] && X.xfocus.mode == NotifyNormal)
17201719
{

0 commit comments

Comments
 (0)