all repos — openbox @ 41da12cc5ee1fa03361943dc1ab3e9efcebd29f6

openbox fork - make it a bit more like ryudo

maybe better logic for looking for focus in's on clients
Dana Jansens danakj@orodu.net
commit

41da12cc5ee1fa03361943dc1ab3e9efcebd29f6

parent

bfe974dbd06fac507147701c8c7de4c8249b0a25

1 files changed, 8 insertions(+), 3 deletions(-)

jump to
M openbox/event.copenbox/event.c

@@ -300,10 +300,15 @@ return FALSE;

/* These are the ones we want.. */ - if (win == RootWindow(ob_display, ob_screen) && !in_client_only) { + if (win == RootWindow(ob_display, ob_screen)) { + /* If looking for a focus in on a client, then always return + FALSE for focus in's to the root window */ + if (in_client_only) + return FALSE; /* This means focus reverted off of a client */ - if (detail == NotifyPointerRoot || detail == NotifyDetailNone || - detail == NotifyInferior) + else if (detail == NotifyPointerRoot || + detail == NotifyDetailNone || + detail == NotifyInferior) return TRUE; else return FALSE;