From: Marco Peereboom Date: Fri, 23 Oct 2009 20:07:06 +0000 (+0000) Subject: ugh, i can't believe i have looked for this bug this long... X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=05347c2d3eb542553ae91e9d75800a5303d2e385;p=spectrwm.git ugh, i can't believe i have looked for this bug this long... now jxplorer is correctly focussed when it is the nth window in the stack when created --- diff --git a/scrotwm.c b/scrotwm.c index 8bfd2f3..07a4417 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -1690,7 +1690,7 @@ focus_prev(struct ws_win *win) if (cur_focus == win) winfocus = TAILQ_PREV(win, ws_win_list, entry); if (winfocus == NULL) - winfocus = TAILQ_FIRST(wl); + winfocus = TAILQ_LAST(wl, ws_win_list); if (winfocus == NULL || winfocus == win) winfocus = TAILQ_NEXT(cur_focus, entry); done: