diff options
-rw-r--r-- | swayidle/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swayidle/main.c b/swayidle/main.c index 7d0f23f4..c7a17826 100644 --- a/swayidle/main.c +++ b/swayidle/main.c | |||
@@ -347,7 +347,9 @@ void sway_terminate(int exit_code) { | |||
347 | 347 | ||
348 | static void register_zero_idle_timeout(void *item) { | 348 | static void register_zero_idle_timeout(void *item) { |
349 | struct swayidle_timeout_cmd *cmd = item; | 349 | struct swayidle_timeout_cmd *cmd = item; |
350 | register_timeout(cmd, 0); | 350 | // A zero timeout never actually triggers. Adding a 50ms timeout is most |
351 | // likely not the correct fix either, but will work | ||
352 | register_timeout(cmd, 50); | ||
351 | } | 353 | } |
352 | 354 | ||
353 | static int handle_signal(int sig, void *data) { | 355 | static int handle_signal(int sig, void *data) { |