about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dwm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dwm.c b/dwm.c
index 13eb462..24a598e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1100,11 +1100,9 @@ fake_signal(void)
 
                         // Check if a signal was found, and if so handle it
                         for (i = 0; i < LENGTH(signals); i++)
-                                if (strncmp(str_sig, signals[i].sig, len_str_sig) == 0 && signals[i].func)
-                                {
+                                if (strcmp(str_sig, signals[i].sig) == 0 && signals[i].func)
                                     signals[i].func(&(arg));
-                                    return 1;
-                                }
+                        
                         // A fake signal was sent
                         return 1;
                 }