[wiki] [sites] [dwm][patch] fsignal: window titles now update properly || Nihal Jere

From: <git_AT_suckless.org>
Date: Sat, 21 Mar 2020 21:57:08 +0100

commit 1e20c8bda53bd22d2540abfc39801f81d8f01b49
Author: Nihal Jere <nihal_AT_nihaljere.xyz>
Date: Sat Mar 21 15:56:08 2020 -0500

    [dwm][patch] fsignal: window titles now update properly

diff --git a/dwm.suckless.org/patches/fsignal/dwm-fsignal-6.1.diff b/dwm.suckless.org/patches/fsignal/dwm-fsignal-6.2.diff
similarity index 70%
rename from dwm.suckless.org/patches/fsignal/dwm-fsignal-6.1.diff
rename to dwm.suckless.org/patches/fsignal/dwm-fsignal-6.2.diff
index fb226897..d2bf9a3a 100644
--- a/dwm.suckless.org/patches/fsignal/dwm-fsignal-6.1.diff
+++ b/dwm.suckless.org/patches/fsignal/dwm-fsignal-6.2.diff
_AT_@ -1,7 +1,18 @@
-diff -up dwm-6.1/config.def.h dwm-6.1_FSIGNAL/config.def.h
---- dwm-6.1/config.def.h 2015-11-08 23:11:48.000000000 +0100
-+++ dwm-6.1_FSIGNAL/config.def.h 2018-03-29 21:34:43.218114924 +0200
-_AT_@ -111,3 +111,10 @@ static Button buttons[] = {
+From e7f523c898983c84ba3102675662dc33cbb5573e Mon Sep 17 00:00:00 2001
+From: Nihal Jere <noocsharp_AT_gmail.com>
+Date: Sat, 21 Mar 2020 15:50:00 -0500
+Subject: [PATCH] fsignal
+
+---
+ config.def.h | 7 +++++++
+ dwm.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++--
+ 2 files changed, 59 insertions(+), 2 deletions(-)
+
+diff --git a/config.def.h b/config.def.h
+index 1c0b587..8d2e6e9 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -113,3 +113,10 @@ static Button buttons[] = {
          { ClkTagBar, MODKEY, Button3, toggletag, {0} },
  };
  
_AT_@ -12,24 +23,24 @@ diff -up dwm-6.1/config.def.h dwm-6.1_FSIGNAL/config.def.h
 + /* signum function argument */
 + { 1, setlayout, {.v = 0} },
 +};
-Only in dwm-6.1_FSIGNAL/: config.h
-diff -up dwm-6.1/dwm.c dwm-6.1_FSIGNAL/dwm.c
---- dwm-6.1/dwm.c 2015-11-08 23:11:48.000000000 +0100
-+++ dwm-6.1_FSIGNAL/dwm.c 2018-03-29 21:22:07.697560231 +0200
-_AT_@ -107,6 +107,12 @@ typedef struct {
+diff --git a/dwm.c b/dwm.c
+index 4465af1..db2ee08 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -106,6 +106,12 @@ typedef struct {
+ const Arg arg;
  } Key;
  
- typedef struct {
++typedef struct {
 + unsigned int signum;
 + void (*func)(const Arg *);
 + const Arg arg;
 +} Signal;
 +
-+typedef struct {
+ typedef struct {
          const char *symbol;
          void (*arrange)(Monitor *);
- } Layout;
-_AT_@ -177,6 +183,7 @@ static void grabbuttons(Client *c, int f
+_AT_@ -176,6 +182,7 @@ static void grabbuttons(Client *c, int focused);
  static void grabkeys(void);
  static void incnmaster(const Arg *arg);
  static void keypress(XEvent *e);
_AT_@ -37,7 +48,7 @@ diff -up dwm-6.1/dwm.c dwm-6.1_FSIGNAL/dwm.c
  static void killclient(const Arg *arg);
  static void manage(Window w, XWindowAttributes *wa);
  static void mappingnotify(XEvent *e);
-_AT_@ -1013,6 +1020,47 @@ keypress(XEvent *e)
+_AT_@ -998,6 +1005,47 @@ keypress(XEvent *e)
                          keys[i].func(&(keys[i].arg));
  }
  
_AT_@ -85,13 +96,19 @@ diff -up dwm-6.1/dwm.c dwm-6.1_FSIGNAL/dwm.c
  void
  killclient(const Arg *arg)
  {
-_AT_@ -1233,7 +1281,8 @@ propertynotify(XEvent *e)
+_AT_@ -1215,8 +1263,10 @@ propertynotify(XEvent *e)
+ Window trans;
          XPropertyEvent *ev = &e->xproperty;
  
- if ((ev->window == root) && (ev->atom == XA_WM_NAME))
+- if ((ev->window == root) && (ev->atom == XA_WM_NAME))
 - updatestatus();
++ if ((ev->window == root) && (ev->atom == XA_WM_NAME)) {
 + if (!fake_signal())
 + updatestatus();
++ }
          else if (ev->state == PropertyDelete)
                  return; /* ignore */
          else if ((c = wintoclient(ev->window))) {
+--
+2.25.1
+
diff --git a/dwm.suckless.org/patches/fsignal/index.md b/dwm.suckless.org/patches/fsignal/index.md
index 50460df1..dbcb922e 100644
--- a/dwm.suckless.org/patches/fsignal/index.md
+++ b/dwm.suckless.org/patches/fsignal/index.md
_AT_@ -35,8 +35,9 @@ This can then be triggered through dmenu with this script:
 
 Download
 --------
-* [dwm-fsignal-6.1.diff](dwm-fsignal-6.1.diff)
+* [dwm-fsignal-6.2.diff](dwm-fsignal-6.2.diff)
 
 Authors
 -------
 * Chris Noxz - <chris_AT_noxz.tech>
+* Nihal Jere <nihal_AT_nihaljere.xyz>
Received on Sat Mar 21 2020 - 21:57:08 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 21 2020 - 22:00:48 CET