aboutsummaryrefslogtreecommitdiff
path: root/swayidle
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-05 18:10:09 +0100
committerGitHub <noreply@github.com>2018-11-05 18:10:09 +0100
commit0e985d6c8e3f73c498b2d4bf40767ff821831f65 (patch)
tree1061b0732fb5024cf8537943829e93f0e0dbbda9 /swayidle
parentd0bb450681588a9ea6d612de6893daace996873c (diff)
parent4f21b6f670f0cd10430845d7d3ea19732b79bf08 (diff)
Merge pull request #3073 from oranenj/swayidle_workaround
Work around swayidle never triggering on SIGUSR1
Diffstat (limited to 'swayidle')
-rw-r--r--swayidle/main.c4
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) {
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) {