[wiki] [sites] [dwm][patch][dwmfifo] Fix busyloop || Santtu Lakkala
commit 307963264c4f839883562c07b6fbfc8e3ebac7fa
Author: Santtu Lakkala <inz_AT_inz.fi>
Date: Fri Jul 14 13:39:32 2023 +0300
[dwm][patch][dwmfifo] Fix busyloop
diff --git a/dwm.suckless.org/patches/dwmfifo/dwm-dwmfifo-20230713-e81f17d.diff b/dwm.suckless.org/patches/dwmfifo/dwm-dwmfifo-20230714-e81f17d.diff
similarity index 98%
rename from dwm.suckless.org/patches/dwmfifo/dwm-dwmfifo-20230713-e81f17d.diff
rename to dwm.suckless.org/patches/dwmfifo/dwm-dwmfifo-20230714-e81f17d.diff
index fd3e911d..e2e61b9a 100644
--- a/dwm.suckless.org/patches/dwmfifo/dwm-dwmfifo-20230713-e81f17d.diff
+++ b/dwm.suckless.org/patches/dwmfifo/dwm-dwmfifo-20230714-e81f17d.diff
_AT_@ -1,4 +1,4 @@
-From a37879a10bbca1591a2677ddecd641a4bcb8ffbd Mon Sep 17 00:00:00 2001
+From 898a3f86703be6fb6f3690916797b80bf1d4dbc8 Mon Sep 17 00:00:00 2001
From: Santtu Lakkala <inz_AT_inz.fi>
Date: Thu, 13 Jul 2023 15:48:14 +0300
Subject: [PATCH] Command FIFO for dwm
_AT_@ -47,7 +47,7 @@ index 9efa774..fc4db01 100644
+ { "toggletag", toggletag, .parse = parsetag },
+};
diff --git a/dwm.c b/dwm.c
-index f1d86b2..202ed6a 100644
+index f1d86b2..13537fc 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -21,6 +21,7 @@
_AT_@ -281,7 +281,7 @@ index f1d86b2..202ed6a 100644
XSelectInput(dpy, root, wa.event_mask);
grabkeys();
focus(NULL);
-+ fifofd = open(dwmfifo, O_RDONLY | O_CLOEXEC | O_NONBLOCK);
++ fifofd = open(dwmfifo, O_RDWR | O_CLOEXEC | O_NONBLOCK);
+ if (fifofd < 0)
+ die("Failed to open() DWM fifo %s:", dwmfifo);
}
diff --git a/dwm.suckless.org/patches/dwmfifo/index.md b/dwm.suckless.org/patches/dwmfifo/index.md
index 844c3ae1..4874157a 100644
--- a/dwm.suckless.org/patches/dwmfifo/index.md
+++ b/dwm.suckless.org/patches/dwmfifo/index.md
_AT_@ -28,7 +28,7 @@ to execute (like tabbed-surf or similar).
Download
--------
* [dwm-dwmfifo-6.1.diff](dwm-dwmfifo-6.1.diff) (6.9k) (2014-01-29)
-* [dwm-dwmfifo-20230713-e81f17d.diff](dwm-dwmfifo-20230713-e81f17d.diff) (8.1k) (2023-07-13)
+* [dwm-dwmfifo-20230713-e81f17d.diff](dwm-dwmfifo-20230714-e81f17d.diff) (8.1k) (2023-07-14)
Author
------
Received on Fri Jul 14 2023 - 12:41:34 CEST
This archive was generated by hypermail 2.3.0
: Fri Jul 14 2023 - 12:48:51 CEST