diff --git a/openbox/event.c b/openbox/event.c index 6cc8b1f0..0427d142 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -308,7 +308,8 @@ static gboolean event_ignore(XEvent *e, Client *client) /* NotifyVirtual occurs when ungrabbing the pointer */ if (e->xcrossing.mode == NotifyGrab || e->xcrossing.detail == NotifyInferior || - e->xcrossing.detail == NotifyVirtual) + (e->xcrossing.mode == NotifyUngrab && + e->xcrossing.detail == NotifyVirtual)) return TRUE; break; }