X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/ad878f12d8aea79c26ef42cbb60905b7debd1bd2..cbbe2779fad60b4717b80afeefc58ce1f6e6b9b0:/spectrwm.c diff --git a/spectrwm.c b/spectrwm.c index fe68684..30ee09f 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -9615,6 +9615,12 @@ enternotify(xcb_enter_notify_event_t *e) return; } + if (focus_mode != SWM_FOCUS_FOLLOW && + e->mode == XCB_NOTIFY_MODE_UNGRAB) { + DNPRINTF(SWM_D_EVENT, "enternotify: ungrab; ignoring.\n"); + return; + } + last_event_time = e->time; if ((win = find_window(e->event)) == NULL) {