summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index c32d8bae..fc82e628 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -739,7 +739,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
case OB_FRAME_CONTEXT_FRAME:
if (!nofocus && client_normal(client) && config_focus_follow) {
if (e->xcrossing.mode == NotifyGrab ||
- e->xcrossing.detail == NotifyInferior)
+ e->xcrossing.detail == NotifyInferior ||
+ e->xcrossing.mode == NotifyUngrab)
{
#ifdef DEBUG_FOCUS
ob_debug("%sNotify mode %d detail %d on %lx IGNORED\n",