Commit 03aa5d74 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Events.c: Autograb only for windowed modes

This also make re-autograbbing after switch back from AllScreens work.
parent a4d7a04c
...@@ -1597,8 +1597,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was ...@@ -1597,8 +1597,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was
} }
} }
/* FIXME: only when in windowed mode! */ if (nxagentOption(AutoGrab) && !(nxagentOption(AllScreens) || nxagentOption(Fullscreen) || nxagentOption(Rootless)))
if (nxagentOption(AutoGrab))
{ {
if (X.xfocus.window == nxagentDefaultWindows[0] && X.xfocus.mode == NotifyNormal) if (X.xfocus.window == nxagentDefaultWindows[0] && X.xfocus.mode == NotifyNormal)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment