summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <atci39@rambler.ru>2024-05-03 19:04:03 +0300
committertsxv478 <atci39@rambler.ru>2024-05-03 19:04:03 +0300
commit1696ebb36ac26dc306a619c3b9f92f95869595dc (patch)
treec87b19b7d04427fed4cc2ea3a6454ad389fb0364
parent53ae315676dbfa8dfbbb855f852dde4bc79bd72a (diff)
arrange() fix
-rw-r--r--dwm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 6715eb3..42c43f6 100644
--- a/dwm.c
+++ b/dwm.c
@@ -440,8 +440,10 @@ arrange(Monitor *m)
if (m) {
arrangemon(m);
restack(m);
- } else for (m = mons; m; m = m->next)
+ } else for (m = mons; m; m = m->next) {
arrangemon(m);
+ restack(m);
+ }
}
void