aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/idle_inhibit_v1.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2022-10-04 11:44:05 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2022-10-14 15:56:07 +0200
commit9400bd963c59fd59f597c1477b8021a82ca0a72e (patch)
tree17b385ae457750385526d96a81f0ffaa82052a41 /sway/desktop/idle_inhibit_v1.c
parentAvoid double free in criteria_destroy() (diff)
downloadsway-9400bd963c59fd59f597c1477b8021a82ca0a72e.tar.gz
sway-9400bd963c59fd59f597c1477b8021a82ca0a72e.tar.zst
sway-9400bd963c59fd59f597c1477b8021a82ca0a72e.zip
Add support for ext-idle-notify-v1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3753
Diffstat (limited to 'sway/desktop/idle_inhibit_v1.c')
-rw-r--r--sway/desktop/idle_inhibit_v1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/idle_inhibit_v1.c b/sway/desktop/idle_inhibit_v1.c
index 82353038..3a4d0b87 100644
--- a/sway/desktop/idle_inhibit_v1.c
+++ b/sway/desktop/idle_inhibit_v1.c
@@ -1,5 +1,6 @@
1#include <stdlib.h> 1#include <stdlib.h>
2#include <wlr/types/wlr_idle.h> 2#include <wlr/types/wlr_idle.h>
3#include <wlr/types/wlr_idle_notify_v1.h>
3#include "log.h" 4#include "log.h"
4#include "sway/desktop/idle_inhibit_v1.h" 5#include "sway/desktop/idle_inhibit_v1.h"
5#include "sway/input/seat.h" 6#include "sway/input/seat.h"
@@ -140,6 +141,7 @@ void sway_idle_inhibit_v1_check_active(
140 } 141 }
141 } 142 }
142 wlr_idle_set_enabled(manager->idle, NULL, !inhibited); 143 wlr_idle_set_enabled(manager->idle, NULL, !inhibited);
144 wlr_idle_notifier_v1_set_inhibited(server.idle_notifier_v1, inhibited);
143} 145}
144 146
145struct sway_idle_inhibit_manager_v1 *sway_idle_inhibit_manager_v1_create( 147struct sway_idle_inhibit_manager_v1 *sway_idle_inhibit_manager_v1_create(