From 45247a14bc29f21f9e93f328a240a1f228c84b11 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 10 Jun 2020 10:48:50 +0200 Subject: [PATCH] Fix infinite loop in attachbelow patch --- patch/attachx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;