Merge pull request #3073 from oranenj/swayidle_workaround

Work around swayidle never triggering on SIGUSR1
This commit is contained in:
Drew DeVault 2018-11-05 18:10:09 +01:00 committed by GitHub
commit 0e985d6c8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) {