[wiki] [sites] [dwm][patch][cantogglefloating] fix for master client getting ignored || Georgios Oxinos

From: <git_AT_suckless.org>
Date: Mon, 25 Jan 2021 10:29:24 +0100

commit 07e360f4d5e035c8cef680a9faf043c9243f277a
Author: Georgios Oxinos <oxinosg_AT_gmail.com>
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
_AT_@ -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 <georgios.oxinos.extern_AT_elinvar.de>
-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
 
_AT_@ -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
 _AT_@ -92,7 +92,7 @@ struct Client {
_AT_@ -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;
 +
_AT_@ -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
_AT__AT_ -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
 -------
Received on Mon Jan 25 2021 - 10:29:24 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 25 2021 - 10:36:51 CET