Fix infinite loop in attachbelow patch

pull/32/head
bakkeby 4 years ago
parent a713e73a37
commit 45247a14bc

@ -24,7 +24,7 @@ attachx(Client *c)
return;
}
#elif ATTACHBELOW_PATCH
if (!(c->mon->sel == NULL || c->mon->sel->isfloating)) {
if (!(c->mon->sel == NULL || c->mon->sel == c || c->mon->sel->isfloating)) {
c->next = c->mon->sel->next;
c->mon->sel->next = c;
return;

Loading…
Cancel
Save