Fix infinite loop in attachbelow patch

This commit is contained in:
bakkeby 2020-06-10 10:48:50 +02:00
parent a713e73a37
commit 45247a14bc

View File

@ -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;