about summary refs log tree commit diff
path: root/dwm.c
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 /dwm.c
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
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c5
1 files changed, 4 insertions, 1 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;