about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-10-22 10:46:54 +0100
committerYour Name <you@example.com>2020-10-22 10:46:54 +0100
commit931f2c6e1bc5ba90495e3396a58aaa98b59cd11b (patch)
treefc5847ab525fccce2591772144abe02ce2dc10d7
parentbetter way to solve the previous commit's bug (diff)
downloaddwm-931f2c6e1bc5ba90495e3396a58aaa98b59cd11b.tar.gz
dwm-931f2c6e1bc5ba90495e3396a58aaa98b59cd11b.tar.bz2
dwm-931f2c6e1bc5ba90495e3396a58aaa98b59cd11b.zip
changed name to fsignal
-rw-r--r--dwm.c5
-rwxr-xr-xdwmc2
2 files changed, 5 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 24a598e..8d945d5 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1073,7 +1073,7 @@ int
 fake_signal(void)
 {
         char fsignal[256];
-        char indicator[9] = "dsignal:";
+        char indicator[9] = "fsignal:";
         char str_sig[50];
         char param[16];
         int i, len_str_sig, n, paramn;
@@ -1101,7 +1101,10 @@ fake_signal(void)
                         // Check if a signal was found, and if so handle it
                         for (i = 0; i < LENGTH(signals); i++)
                                 if (strcmp(str_sig, signals[i].sig) == 0 && signals[i].func)
+                                {
                                     signals[i].func(&(arg));
+                                    break;
+                                }
                         
                         // A fake signal was sent
                         return 1;
diff --git a/dwmc b/dwmc
index 9deaec6..d450ca9 100755
--- a/dwmc
+++ b/dwmc
@@ -1,7 +1,7 @@
 #!/usr/bin/env sh
 
 signal() {
-	xsetroot -name "dsignal:$*"
+	xsetroot -name "fsignal:$*"
 }
 
 case $# in