commit 07e360f4d5e035c8cef680a9faf043c9243f277a
Author: Georgios Oxinos <[email protected]>
Date:   Mon Jan 25 10:29:22 2021 +0100

    [dwm][patch][cantogglefloating] fix for master client getting ignored

diff --git 
a/dwm.suckless.org/patches/cantogglefloating/dwm-cantogglefloating-20210124-e752d68.diff
 
b/dwm.suckless.org/patches/cantogglefloating/dwm-cantogglefloating-20210125-fc30936.diff
similarity index 90%
rename from 
dwm.suckless.org/patches/cantogglefloating/dwm-cantogglefloating-20210124-e752d68.diff
rename to 
dwm.suckless.org/patches/cantogglefloating/dwm-cantogglefloating-20210125-fc30936.diff
index 463ba3fa..623bcce2 100644
--- 
a/dwm.suckless.org/patches/cantogglefloating/dwm-cantogglefloating-20210124-e752d68.diff
+++ 
b/dwm.suckless.org/patches/cantogglefloating/dwm-cantogglefloating-20210125-fc30936.diff
@@ -1,6 +1,6 @@
-From e752d6806ff8bb4fa23435b448affce3b0a40838 Mon Sep 17 00:00:00 2001
+From fc309367ecf8388a77f899d7f007524a84ed3ab7 Mon Sep 17 00:00:00 2001
 From: Georgios Oxinos <[email protected]>
-Date: Sun, 24 Jan 2021 16:05:58 +0100
+Date: Mon, 25 Jan 2021 10:24:45 +0100
 Subject: [PATCH] [dwm][patch] patch that allows disabling focus on floating
  clients
 
@@ -22,7 +22,7 @@ index 1c0b587..005fb5d 100644
        { MODKEY,                       XK_Tab,    view,           {0} },
        { MODKEY|ShiftMask,             XK_c,      killclient,     {0} },
 diff --git a/dwm.c b/dwm.c
-index 4465af1..426262e 100644
+index 4465af1..d6417d6 100644
 --- a/dwm.c
 +++ b/dwm.c
 @@ -92,7 +92,7 @@ struct Client {
@@ -104,11 +104,11 @@ index 4465af1..426262e 100644
 +      unsigned int i, n;
 +      Client *c;
 +
-+      for (n = 0, c = selmon->clients->next; c; c = c->next, n++);
++      for (n = 0, c = selmon->clients; c; c = c->next, n++);
 +      if (n == 0)
 +              return;
 +
-+      for (i = 0, c = selmon->clients->next; c; c = c->next, i++)
++      for (i = 0, c = selmon->clients; c; c = c->next, i++)
 +    if (c->isfloating)
 +      c->cantfocus = 0;
 +
@@ -121,11 +121,11 @@ index 4465af1..426262e 100644
 +      unsigned int i, n, y;
 +      Client *c, *tmp;
 +
-+      for (n = 0, c = selmon->clients->next; c; c = c->next, n++);
++      for (n = 0, c = selmon->clients; c; c = c->next, n++);
 +      if (n == 0)
 +              return;
 +
-+      for (i = 0, y = 0, c = selmon->clients->next; c; c = c->next, i++)
++      for (i = 0, y = 0, c = selmon->clients; c; c = c->next, i++)
 +    if (c->isfloating) {
 +      c->cantfocus = !c->cantfocus;
 +      y++;
diff --git a/dwm.suckless.org/patches/cantogglefloating/index.md 
b/dwm.suckless.org/patches/cantogglefloating/index.md
index 834000b9..6ed032a5 100644
--- a/dwm.suckless.org/patches/cantogglefloating/index.md
+++ b/dwm.suckless.org/patches/cantogglefloating/index.md
@@ -9,7 +9,7 @@ Inspired by 
[canfocusrule](https://dwm.suckless.org/patches/canfocusrule/) patch
 
 Download
 --------
-* 
[dwm-cantogglefloating-20210124-e752d68.diff](dwm-cantogglefloating-20210124-e752d68.diff)
+* 
[dwm-cantogglefloating-20210125-fc30936.diff](dwm-cantogglefloating-20210125-fc30936.diff)
 
 Authors
 -------


Reply via email to