[wiki] [sites] [dwm][patch][ipc] Update patch to v1.5.3 || Mihir Lad

From: <git_AT_suckless.org>
Date: Sun, 26 Jul 2020 05:59:53 +0200

commit 97e2c95abffc874c8273f28d695f1914ce085c90
Author: Mihir Lad <mihirlad55_AT_gmail.com>
Date: Sat Jul 25 23:58:43 2020 -0400

    [dwm][patch][ipc] Update patch to v1.5.3
    
    Also add v1.5.2 to v1.5.3 update patch.

diff --git a/dwm.suckless.org/patches/ipc/dwm-ipc-20200724-f04cac6.diff b/dwm.suckless.org/patches/ipc/dwm-ipc-20200726-f04cac6.diff
similarity index 99%
rename from dwm.suckless.org/patches/ipc/dwm-ipc-20200724-f04cac6.diff
rename to dwm.suckless.org/patches/ipc/dwm-ipc-20200726-f04cac6.diff
index 1910cf24..75c98e65 100644
--- a/dwm.suckless.org/patches/ipc/dwm-ipc-20200724-f04cac6.diff
+++ b/dwm.suckless.org/patches/ipc/dwm-ipc-20200726-f04cac6.diff
_AT_@ -1,6 +1,6 @@
-From c9f4dcf17d5b5ce8ca4d5d6e46be26cca6a8442a Mon Sep 17 00:00:00 2001
+From 930156d1771a2af6c572856ea97b113e537cf13d Mon Sep 17 00:00:00 2001
 From: mihirlad55 <mihirlad55_AT_gmail.com>
-Date: Fri, 24 Jul 2020 21:11:14 +0000
+Date: Sun, 26 Jul 2020 03:51:15 +0000
 Subject: [PATCH] Add IPC support through a unix socket
 
 This patch currently supports the following requests:
_AT_@ -9,7 +9,8 @@ This patch currently supports the following requests:
 * Get all available layouts
 * Get available tags
 * Get client properties
-* Subscribe to tag change, selected client change, and layout change
+* Subscribe to tag change, client focus change, and layout change,
+ monitor focus change, focused title change, and client state change
   events
 
 This patch includes a dwm-msg cli program that supports all of the
_AT_@ -1082,7 +1083,7 @@ index 9fd0286..c90c61a 100644
  void
 diff --git a/ipc.c b/ipc.c
 new file mode 100644
-index 0000000..1d435dc
+index 0000000..e527e23
 --- /dev/null
 +++ b/ipc.c
 _AT_@ -0,0 +1,1202 @@
_AT_@ -2212,7 +2213,7 @@ index 0000000..1d435dc
 + }
 +
 + Client *sel = m->sel;
-+ if (!sel) return;
++ if (!sel) continue;
 + ClientState *o = &m->sel->prevstate;
 + ClientState n = {.oldstate = sel->oldstate,
 + .isfixed = sel->isfixed,
diff --git a/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.2-to-v1.5.3.diff b/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.2-to-v1.5.3.diff
new file mode 100644
index 00000000..c18054d1
--- /dev/null
+++ b/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.2-to-v1.5.3.diff
_AT_@ -0,0 +1,28 @@
+From c76d3cc2f68961b05c6c1a509c24e71ab7473c47 Mon Sep 17 00:00:00 2001
+From: mihirlad55 <mihirlad55_AT_gmail.com>
+Date: Sun, 26 Jul 2020 03:51:16 +0000
+Subject: [PATCH] Update from v1.5.2 to v1.5.3
+
+- Fix a major bug where events would not be raised for any monitors after the
+ first monitor if the first monitor did not have a selected client (i.e. was
+ viewing an unoccupied tag)
+---
+ ipc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ipc.c b/ipc.c
+index 1d435dc..e527e23 100644
+--- a/ipc.c
++++ b/ipc.c
+_AT_@ -1124,7 +1124,7 @@ ipc_send_events(Monitor *mons, Monitor **lastselmon, Monitor *selmon)
+ }
+
+ Client *sel = m->sel;
+- if (!sel) return;
++ if (!sel) continue;
+ ClientState *o = &m->sel->prevstate;
+ ClientState n = {.oldstate = sel->oldstate,
+ .isfixed = sel->isfixed,
+--
+2.27.0
+
diff --git a/dwm.suckless.org/patches/ipc/index.md b/dwm.suckless.org/patches/ipc/index.md
index e3617f53..e7c22333 100644
--- a/dwm.suckless.org/patches/ipc/index.md
+++ b/dwm.suckless.org/patches/ipc/index.md
_AT_@ -64,8 +64,10 @@ creating custom shell scripts to control dwm.
 
 Download
 --------
-* IPC Patch v1.5.2:
- [dwm-ipc-20200724-f04cac6.diff](dwm-ipc-20200724-f04cac6.diff)
+* IPC Patch v1.5.3:
+ [dwm-ipc-20200726-f04cac6.diff](dwm-ipc-20200726-f04cac6.diff)
+* IPC Patch v1.5.2 to v1.5.3 Update:
+ [dwm-ipc-v1.5.2-to-v1.5.3.diff](dwm-ipc-v1.5.2-to-v1.5.3.diff)
 
 The latest releases of the patch will always be available first on the project
 [Releases](https://github.com/mihirlad55/dwm-ipc/releases) page. There are also
Received on Sun Jul 26 2020 - 05:59:53 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 26 2020 - 06:00:47 CEST