From: Dana Jansens Date: Fri, 23 May 2003 01:27:46 +0000 (+0000) Subject: ignore ancestor FocusIn events. i get them sometimes when hitting alt-tab and that... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=493e7d4a6ec5a3fc5e6677d21b9940dc2e17b4ac;p=chaz%2Fopenbox ignore ancestor FocusIn events. i get them sometimes when hitting alt-tab and that totally fucks it up cuz it cancels teh alt-tab process. --- diff --git a/openbox/event.c b/openbox/event.c index 366e5eb7..54db6cc8 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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 || \