summaryrefslogtreecommitdiffhomepage
path: root/patch/attachx.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-06-10 10:48:50 +0200
committerbakkeby <[email protected]>2020-06-10 10:48:50 +0200
commit45247a14bc29f21f9e93f328a240a1f228c84b11 (patch)
treedb5e03e55ac2da576d93362eac5cc1f7ca4c3a45 /patch/attachx.c
parenta713e73a37d6374abd3556c3345eb8c6f88c0d69 (diff)
downloaddwm-flexipatch-45247a14bc29f21f9e93f328a240a1f228c84b11.tar.gz
dwm-flexipatch-45247a14bc29f21f9e93f328a240a1f228c84b11.zip
Fix infinite loop in attachbelow patch
Diffstat (limited to 'patch/attachx.c')
-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;