From 05347c2d3eb542553ae91e9d75800a5303d2e385 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 23 Oct 2009 20:07:06 +0000 Subject: [PATCH] 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 --- scrotwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 1.7.10.4