Commit a4d7a04c authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Events.c: do not ungrab keyboard on LeaveNotify when in autograb mode

parent 6dcdc578
...@@ -1846,12 +1846,15 @@ FIXME: Don't enqueue the KeyRelease event if the key was ...@@ -1846,12 +1846,15 @@ FIXME: Don't enqueue the KeyRelease event if the key was
nxagentLastEnteredWindow = NULL; nxagentLastEnteredWindow = NULL;
} }
if (!nxagentOption(AutoGrab))
{
if (X.xcrossing.window == nxagentDefaultWindows[0] && if (X.xcrossing.window == nxagentDefaultWindows[0] &&
X.xcrossing.detail != NotifyInferior && X.xcrossing.detail != NotifyInferior &&
X.xcrossing.mode == NotifyNormal) X.xcrossing.mode == NotifyNormal)
{ {
nxagentUngrabPointerAndKeyboard(&X); nxagentUngrabPointerAndKeyboard(&X);
} }
}
if (X.xcrossing.detail != NotifyInferior) if (X.xcrossing.detail != NotifyInferior)
{ {
......
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