all repos — openbox @ 93811226bb5207731da736ab706f150fe915466a

openbox fork - make it a bit more like ryudo

ignore much fewer focus events. only ignore focusout's from activating a grab
Dana Jansens danakj@orodu.net
commit

93811226bb5207731da736ab706f150fe915466a

parent

b8f89ee368324f54a95f9ac8c5a24948365fb5ab

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M otk/eventdispatcher.ccotk/eventdispatcher.cc

@@ -99,10 +99,6 @@ }

void OtkEventDispatcher::dispatchFocus(const XEvent &e) { - // ignore all focus changes from grabs - if (e.xfocus.mode != NotifyNormal) - return; - if (e.type == FocusIn) { //printf("Got FocusIn!\n");

@@ -113,6 +109,10 @@

} else if (e.type == FocusOut) { //printf("Got FocusOut!\n"); + // ignore FocusOut changes from grabs + if (e.xfocus.mode == NotifyGrab) + return; + // FocusOut events just make us look for FocusIn events. They are ignored // otherwise. XEvent fi;