X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fevent.c;h=a4105c799340d533d225a3eea5f6259d6cf88617;hb=141c249b8cd3b94a722acc8c0225b3cbf83e5042;hp=f9d5c38fe881aba5e598ca8bbab7d8e69ec777aa;hpb=6d666b0aa570cd6bc3a42edd99dda0e331fb414d;p=chaz%2Fopenbox diff --git a/openbox/event.c b/openbox/event.c index f9d5c38f..a4105c79 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -2,7 +2,7 @@ event.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson - Copyright (c) 2003 Ben Jansens + Copyright (c) 2003-2007 Dana Jansens This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -372,6 +372,9 @@ static gboolean wanted_focusevent(XEvent *e) /* This means focus moved from one client to another */ if (detail == NotifyNonlinearVirtual) return TRUE; + /* This means focus had moved to our frame window and now moved off */ + if (detail == NotifyNonlinear) + return TRUE; /* Otherwise.. */ return FALSE; @@ -391,8 +394,6 @@ static gboolean event_ignore(XEvent *e, ObClient *client) return TRUE; break; case FocusOut: - if (client == NULL) - return TRUE; if (!wanted_focusevent(e)) return TRUE; break;