ignore ancestor FocusIn events. i get them sometimes when hitting alt-tab and that...
authorDana Jansens <danakj@orodu.net>
Fri, 23 May 2003 01:27:46 +0000 (01:27 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 23 May 2003 01:27:46 +0000 (01:27 +0000)
openbox/event.c

index 366e5eb..54db6cc 100644 (file)
@@ -37,6 +37,7 @@ static void event_handle_client(Client *c, XEvent *e);
 static void event_handle_menu(Menu *menu, Client *c, XEvent *e);
 
 #define INVALID_FOCUSIN(e) ((e)->xfocus.detail == NotifyInferior || \
+                            (e)->xfocus.detail == NotifyAncestor || \
                             (e)->xfocus.detail > NotifyNonlinearVirtual)
 #define INVALID_FOCUSOUT(e) ((e)->xfocus.mode == NotifyGrab || \
                              (e)->xfocus.detail == NotifyInferior || \