diff options
| author | bakkeby <[email protected]> | 2020-06-10 10:48:50 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-06-10 10:48:50 +0200 |
| commit | 45247a14bc29f21f9e93f328a240a1f228c84b11 (patch) | |
| tree | db5e03e55ac2da576d93362eac5cc1f7ca4c3a45 /patch/attachx.c | |
| parent | a713e73a37d6374abd3556c3345eb8c6f88c0d69 (diff) | |
| download | dwm-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.c | 2 |
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; |
