diff --git a/patch/attachx.c b/patch/attachx.c index e52e386..a9b99b6 100644 --- a/patch/attachx.c +++ b/patch/attachx.c @@ -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;