mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #3075 from swaywm/revert-3073-swayidle_workaround
Revert "Work around swayidle never triggering on SIGUSR1"
This commit is contained in:
commit
77d581f144
1 changed files with 1 additions and 3 deletions
|
@ -347,9 +347,7 @@ void sway_terminate(int exit_code) {
|
||||||
|
|
||||||
static void register_zero_idle_timeout(void *item) {
|
static void register_zero_idle_timeout(void *item) {
|
||||||
struct swayidle_timeout_cmd *cmd = item;
|
struct swayidle_timeout_cmd *cmd = item;
|
||||||
// A zero timeout never actually triggers. Adding a 50ms timeout is most
|
register_timeout(cmd, 0);
|
||||||
// likely not the correct fix either, but will work
|
|
||||||
register_timeout(cmd, 50);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int handle_signal(int sig, void *data) {
|
static int handle_signal(int sig, void *data) {
|
||||||
|
|
Loading…
Reference in a new issue