commit c760dd1aba90c0f83796e4d57eb0be23eceef80d parent dc8bd43967a282eb82153e7175c45467fcf03698 Author: Laslo Hunhold <dev@frign.de> Date: Sat, 6 Jun 2020 13:39:52 +0200 Fix infinite loop in dwm-attachbelow-patch Thanks to Cadey Alicia Ratio for reporting it and Jakub Leszczak for providing a diff. Signed-off-by: Laslo Hunhold <dev@frign.de> Diffstat:
M | dwm.suckless.org/patches/attachbelow/dwm-attachbelow-6.2.diff | | | 2 | +- |
M | dwm.suckless.org/patches/attachbelow/dwm-attachbelow-toggleable-6.2.diff | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dwm.suckless.org/patches/attachbelow/dwm-attachbelow-6.2.diff b/dwm.suckless.org/patches/attachbelow/dwm-attachbelow-6.2.diff @@ -44,7 +44,7 @@ index 4465af1..bd715a2 100644 +attachBelow(Client *c) +{ + //If there is nothing on the monitor or the selected client is floating, attach as normal -+ if(c->mon->sel == NULL || c->mon->sel->isfloating) { ++ if(c->mon->sel == NULL || c->mon->sel == c || c->mon->sel->isfloating) { + attach(c); + return; + } diff --git a/dwm.suckless.org/patches/attachbelow/dwm-attachbelow-toggleable-6.2.diff b/dwm.suckless.org/patches/attachbelow/dwm-attachbelow-toggleable-6.2.diff @@ -40,7 +40,7 @@ index 4465af1..bd715a2 100644 +attachBelow(Client *c) +{ + //If there is nothing on the monitor or the selected client is floating, attach as normal -+ if(c->mon->sel == NULL || c->mon->sel->isfloating) { ++ if(c->mon->sel == NULL || c->mon->sel == c || c->mon->sel->isfloating) { + attach(c); + return; + }