mirror of
https://github.com/NickHu/sway
synced 2024-12-29 22:23:46 +01:00
Work around swayidle never triggering on SIGUSR1
This commit is contained in:
parent
d0bb450681
commit
4f21b6f670
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue