X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=6a8687f7e3dfabc1a025424488077f5837100880;hb=870f90b273b2fbe1aed69a3125c1ae361d6988e6;hp=ea332558d2f6bb357413a0404e47c88424108f84;hpb=78cac56aec5d7d3d4743ffed76556525f53df6c8;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index ea33255..6a8687f 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -9429,6 +9429,13 @@ enternotify(xcb_enter_notify_event_t *e) return; } } else { + if (e->mode == XCB_NOTIFY_MODE_NORMAL && + e->detail == XCB_NOTIFY_DETAIL_INFERIOR) { + DNPRINTF(SWM_D_EVENT, "enternotify: entering from " + "inferior; ignoring\n"); + return; + } + focus_win(get_focus_magic(win)); }