commit ef2813406ba316b50c4590468c9d947a81886f79
Author: Mihir Lad <[email protected]>
Date:   Sat Oct 31 11:46:04 2020 -0400

    [dwm][patch][ipc] Update patch to v1.5.6

diff --git a/dwm.suckless.org/patches/ipc/dwm-ipc-20200824-f04cac6.diff 
b/dwm.suckless.org/patches/ipc/dwm-ipc-20201031-f04cac6.diff
similarity index 99%
rename from dwm.suckless.org/patches/ipc/dwm-ipc-20200824-f04cac6.diff
rename to dwm.suckless.org/patches/ipc/dwm-ipc-20201031-f04cac6.diff
index e98474d0..a07b5150 100644
--- a/dwm.suckless.org/patches/ipc/dwm-ipc-20200824-f04cac6.diff
+++ b/dwm.suckless.org/patches/ipc/dwm-ipc-20201031-f04cac6.diff
@@ -1,6 +1,6 @@
-From 5ab24c98c2e884869977a1e67fe24cad30ab36cc Mon Sep 17 00:00:00 2001
+From a11b738714b35eab3847211f019b47b7290595c5 Mon Sep 17 00:00:00 2001
 From: mihirlad55 <[email protected]>
-Date: Mon, 24 Aug 2020 02:37:41 +0000
+Date: Sat, 31 Oct 2020 15:32:39 +0000
 Subject: [PATCH] Add IPC support through a unix socket
 
 This patch currently supports the following requests:
@@ -1111,7 +1111,7 @@ index 9fd0286..c90c61a 100644
  void
 diff --git a/ipc.c b/ipc.c
 new file mode 100644
-index 0000000..e527e23
+index 0000000..c404791
 --- /dev/null
 +++ b/ipc.c
 @@ -0,0 +1,1202 @@
@@ -1479,7 +1479,7 @@ index 0000000..e527e23
 +    *args = (Arg *)malloc(sizeof(Arg));
 +    *arg_types = (ArgType *)malloc(sizeof(ArgType));
 +    (*arg_types)[0] = ARG_TYPE_NONE;
-+    (*args)[0].f = 0;
++    (*args)[0].i = 0;
 +    (*argc)++;
 +  } else if (*argc > 0) {
 +    *args = (Arg *)calloc(*argc, sizeof(Arg));
@@ -3242,5 +3242,5 @@ index 0000000..ee9948e
 +
 +#endif  // YAJL_DUMPS_H_
 -- 
-2.28.0
+2.29.0
 
diff --git a/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.4-to-v1.5.5.diff 
b/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.4-to-v1.5.5.diff
deleted file mode 100644
index 0c628b3e..00000000
--- a/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.4-to-v1.5.5.diff
+++ /dev/null
@@ -1,52 +0,0 @@
-From dddee33beee02e4b71aa1a3e6c7df43c7f6376a8 Mon Sep 17 00:00:00 2001
-From: mihirlad55 <[email protected]>
-Date: Mon, 24 Aug 2020 02:37:40 +0000
-Subject: [PATCH] Update from v1.5.4 to v1.5.5
-
-- Fixed dwm-msg not accepting negative float values
-- Removed spawn command from config.def.h since it is currently unusuable and
-  does not provide any useful functionality
----
- config.def.h | 1 -
- dwm-msg.c    | 5 +++++
- 2 files changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/config.def.h b/config.def.h
-index 3ad9785..059a831 100644
---- a/config.def.h
-+++ b/config.def.h
-@@ -123,7 +123,6 @@ static IPCCommand ipccommands[] = {
-   IPCCOMMAND(  focusmon,            1,      {ARG_TYPE_SINT}   ),
-   IPCCOMMAND(  focusstack,          1,      {ARG_TYPE_SINT}   ),
-   IPCCOMMAND(  zoom,                1,      {ARG_TYPE_NONE}   ),
--  IPCCOMMAND(  spawn,               1,      {ARG_TYPE_PTR}    ),
-   IPCCOMMAND(  incnmaster,          1,      {ARG_TYPE_SINT}   ),
-   IPCCOMMAND(  killclient,          1,      {ARG_TYPE_SINT}   ),
-   IPCCOMMAND(  togglefloating,      1,      {ARG_TYPE_NONE}   ),
-diff --git a/dwm-msg.c b/dwm-msg.c
-index 606f6ce..0071781 100644
---- a/dwm-msg.c
-+++ b/dwm-msg.c
-@@ -225,14 +225,19 @@ is_float(const char *s)
- {
-   size_t len = strlen(s);
-   int is_dot_used = 0;
-+  int is_minus_used = 0;
- 
-   // Floats can only have one decimal point in between or digits
-+  // Optionally, floats can also be below zero (negative)
-   for (int i = 0; i < len; i++) {
-     if (isdigit(s[i]))
-       continue;
-     else if (!is_dot_used && s[i] == '.' && i != 0 && i != len - 1) {
-       is_dot_used = 1;
-       continue;
-+    } else if (!is_minus_used && s[i] == '-' && i == 0) {
-+      is_minus_used = 1;
-+      continue;
-     } else
-       return 0;
-   }
--- 
-2.28.0
-
diff --git a/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.5-to-v1.5.6.diff 
b/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.5-to-v1.5.6.diff
new file mode 100644
index 00000000..ef1766de
--- /dev/null
+++ b/dwm.suckless.org/patches/ipc/dwm-ipc-v1.5.5-to-v1.5.6.diff
@@ -0,0 +1,26 @@
+From b1715f81a342efc118da2f07b1c0d8a639b96a95 Mon Sep 17 00:00:00 2001
+From: mihirlad55 <[email protected]>
+Date: Sat, 31 Oct 2020 15:32:39 +0000
+Subject: [PATCH] Update from v1.5.5 to v1.5.6
+
+- Fix ARG_TYPE_NONE passing non-zero value to functions
+---
+ ipc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ipc.c b/ipc.c
+index e527e23..c404791 100644
+--- a/ipc.c
++++ b/ipc.c
+@@ -362,7 +362,7 @@ ipc_parse_run_command(char *msg, IPCParsedCommand 
*parsed_command)
+     *args = (Arg *)malloc(sizeof(Arg));
+     *arg_types = (ArgType *)malloc(sizeof(ArgType));
+     (*arg_types)[0] = ARG_TYPE_NONE;
+-    (*args)[0].f = 0;
++    (*args)[0].i = 0;
+     (*argc)++;
+   } else if (*argc > 0) {
+     *args = (Arg *)calloc(*argc, sizeof(Arg));
+-- 
+2.29.0
+
diff --git a/dwm.suckless.org/patches/ipc/index.md 
b/dwm.suckless.org/patches/ipc/index.md
index 27bde44b..1b45191b 100644
--- a/dwm.suckless.org/patches/ipc/index.md
+++ b/dwm.suckless.org/patches/ipc/index.md
@@ -64,10 +64,10 @@ creating custom shell scripts to control dwm.
 
 Download
 --------
-* IPC Patch v1.5.5:
-  [dwm-ipc-20200824-f04cac6.diff](dwm-ipc-20200824-f04cac6.diff)
-* IPC Patch v1.5.4 to v1.5.5 Update:
-  [dwm-ipc-v1.5.4-to-v1.5.5.diff](dwm-ipc-v1.5.4-to-v1.5.5.diff)
+* IPC Patch v1.5.6:
+  [dwm-ipc-20201031-f04cac6.diff](dwm-ipc-20201031-f04cac6.diff)
+* IPC Patch v1.5.5 to v1.5.6 Update:
+  [dwm-ipc-v1.5.5-to-v1.5.6.diff](dwm-ipc-v1.5.5-to-v1.5.6.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


Reply via email to