mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
Fix for infinite loop when there is only one client and pushup is run twice
This commit is contained in:
parent
6667f1030b
commit
aa1a7ff708
@ -40,9 +40,11 @@ pushup(const Arg *arg)
|
||||
} else {
|
||||
/* move to the end */
|
||||
for (c = sel; c->next; c = c->next);
|
||||
detach(sel);
|
||||
sel->next = NULL;
|
||||
c->next = sel;
|
||||
if (sel != c) {
|
||||
detach(sel);
|
||||
sel->next = NULL;
|
||||
c->next = sel;
|
||||
}
|
||||
}
|
||||
focus(sel);
|
||||
arrange(selmon);
|
||||
|
Loading…
Reference in New Issue
Block a user