Skip to content

Commit

Permalink
Events.c: Autograb only for windowed modes
Browse files Browse the repository at this point in the history
This also make re-autograbbing after switch back from AllScreens work.
  • Loading branch information
uli42 committed May 25, 2017
1 parent 025ba6e commit 8ea77cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nx-X11/programs/Xserver/hw/nxagent/Events.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,8 +1737,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
}
}

/* FIXME: only when in windowed mode! */
if (nxagentOption(AutoGrab))
if (nxagentOption(AutoGrab) && !(nxagentOption(AllScreens) || nxagentOption(Fullscreen) || nxagentOption(Rootless)))
{
if (X.xfocus.window == nxagentDefaultWindows[0] && X.xfocus.mode == NotifyNormal)
{
Expand Down

0 comments on commit 8ea77cc

Please sign in to comment.