summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--patch/attachx.c2
1 files changed, 1 insertions, 1 deletions
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;