JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
ugh, i can't believe i have looked for this bug this long...
authorMarco Peereboom <marco@conformal.com>
Fri, 23 Oct 2009 20:07:06 +0000 (20:07 +0000)
committerMarco Peereboom <marco@conformal.com>
Fri, 23 Oct 2009 20:07:06 +0000 (20:07 +0000)
now jxplorer is correctly focussed when it is the nth window in the stack
when created

scrotwm.c

index 8bfd2f3..07a4417 100644 (file)
--- 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: