From 03aa5d7430817fe74499102dbc05cfd4d533c068 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 25 May 2017 23:20:50 +0200 Subject: Events.c: Autograb only for windowed modes This also make re-autograbbing after switch back from AllScreens work. --- nx-X11/programs/Xserver/hw/nxagent/Events.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'nx-X11/programs') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index 76a324fdb..d62bb6866 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -1597,8 +1597,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) { -- cgit v1.2.3