commit 4f21b6f670f0cd10430845d7d3ea19732b79bf08 parent d0bb450681588a9ea6d612de6893daace996873c Author: Jarkko Oranen <oranenj@iki.fi> Date: Mon, 5 Nov 2018 18:11:55 +0200 Work around swayidle never triggering on SIGUSR1 Diffstat:
| M | swayidle/main.c | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/swayidle/main.c b/swayidle/main.c @@ -347,7 +347,9 @@ void sway_terminate(int exit_code) { static void register_zero_idle_timeout(void *item) { struct swayidle_timeout_cmd *cmd = item; - register_timeout(cmd, 0); + // A zero timeout never actually triggers. Adding a 50ms timeout is most + // likely not the correct fix either, but will work + register_timeout(cmd, 50); } static int handle_signal(int sig, void *data) {