aboutsummaryrefslogtreecommitdiff
path: root/swayidle
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-11-05 18:22:29 +0100
committerGitHub <noreply@github.com>2018-11-05 18:22:29 +0100
commit77d581f1441357d254acc70ad826a8fa67dd4dd0 (patch)
treebb71746de04a3d2e67218cc41812e885f82b929f /swayidle
parent0e985d6c8e3f73c498b2d4bf40767ff821831f65 (diff)
parent9a3cd000a39d9fdb515ab1c5c58b280491609f91 (diff)
Merge pull request #3075 from swaywm/revert-3073-swayidle_workaround
Revert "Work around swayidle never triggering on SIGUSR1"
Diffstat (limited to 'swayidle')
-rw-r--r--swayidle/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/swayidle/main.c b/swayidle/main.c
index c7a17826..7d0f23f4 100644
--- a/swayidle/main.c
+++ b/swayidle/main.c
@@ -347,9 +347,7 @@ void sway_terminate(int exit_code) {
static void register_zero_idle_timeout(void *item) {
struct swayidle_timeout_cmd *cmd = item;
- // 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);
+ register_timeout(cmd, 0);
}
static int handle_signal(int sig, void *data) {