diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-09-03 20:43:26 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2025-05-27 23:54:39 +0400 |
commit | 392e68c6ca3a0cf61b7111552e668970541fc750 (patch) | |
tree | 5d01deca001acb93553e4105f5d5fb917b6208b0 | |
parent | 2cdf3e724680967764b487f173f7ad45802d2a3a (diff) |
bug fix and code cleaned in focusstack
-rw-r--r-- | dwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -869,8 +869,8 @@ focusstack(const Arg *arg) if (arg->i > 0) { c = selmon->sel->next; - int i = 2; - while (i) { + + for (int i = 0; i < 2; i++) { for (;c ; c = c->next) { if (!ISVISIBLE(c)) continue; @@ -883,8 +883,8 @@ focusstack(const Arg *arg) c = selmon->clients; else break; - i--; } + } else { for (i = selmon->clients; i != selmon->sel; i = i->next) { if(!focusfloat && ISVISIBLE(i) && !i->isfloating) |