X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=c792278e34539b354ada7a86d7c571d95f0ee338;hb=4055b75e4a2e5a826b458855a6094e9eb04af19d;hp=665d02074784c2a5491d53898e2bd5192f33f1d7;hpb=b4ff36a69396ed4afb8712ddc0d5e2cf557b4edc;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 665d020..c792278 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -3073,6 +3073,7 @@ unfocus_win(struct ws_win *win) kill_refs(win->ws->focus); win->ws->focus = NULL; } + if (validate_win(win->ws->focus_prev)) { kill_refs(win->ws->focus_prev); win->ws->focus_prev = NULL; @@ -7483,7 +7484,7 @@ buttonpress(xcb_button_press_event_t *e) } if (win == NULL) - return; + goto out; last_event_time = e->time;