mirror of
https://github.com/swaywm/sway.git
synced 2026-06-10 03:03:05 -04:00
Add support for ext-idle-notify-v1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3753
This commit is contained in:
parent
99fd096d69
commit
9400bd963c
4 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <wlr/types/wlr_idle.h>
|
||||
#include <wlr/types/wlr_idle_notify_v1.h>
|
||||
#include "log.h"
|
||||
#include "sway/desktop/idle_inhibit_v1.h"
|
||||
#include "sway/input/seat.h"
|
||||
|
|
@ -140,6 +141,7 @@ void sway_idle_inhibit_v1_check_active(
|
|||
}
|
||||
}
|
||||
wlr_idle_set_enabled(manager->idle, NULL, !inhibited);
|
||||
wlr_idle_notifier_v1_set_inhibited(server.idle_notifier_v1, inhibited);
|
||||
}
|
||||
|
||||
struct sway_idle_inhibit_manager_v1 *sway_idle_inhibit_manager_v1_create(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue