From 7851f55b9d01aef778919f66f65f664ea4e47147 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 22 Oct 2020 00:33:15 +0100 Subject: better way to solve the previous commit's bug --- dwm.c | 6 ++---- 1 file 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; } -- cgit 1.4.1