X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=3b11992e29a71f61ba2e0479de2394317057226d;hb=3b8acfe3996a2864a6b0ad5d1838cb322ec18802;hp=e19636acbcd3ef6cc2a185a3bde82b8ffa6059fa;hpb=5cbc2896c45056ba4806e8565a6fddc19a0dbeff;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index e19636a..3b11992 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -4498,6 +4498,8 @@ max_stack(struct workspace *ws, struct swm_geometry *g) win = ws->focus_pending; else if (ws->focus) win = ws->focus; + else if (ws->focus_prev) + win = ws->focus_prev; else win = TAILQ_FIRST(&ws->winlist);