Add support for ext_idle_notify_v1..

..and combine both idle variants into a standalone manager
This commit is contained in:
Consolatis 2023-07-08 18:27:40 +02:00 committed by Johan Malm
parent e06a8cfc7a
commit 40aba9e542
9 changed files with 134 additions and 51 deletions

View file

@ -3,6 +3,7 @@
#include <wlr/backend/multi.h>
#include <wlr/backend/session.h>
#include "action.h"
#include "idle.h"
#include "key-state.h"
#include "labwc.h"
#include "regions.h"
@ -305,7 +306,7 @@ keyboard_key_notify(struct wl_listener *listener, void *data)
struct wlr_keyboard_key_event *event = data;
struct wlr_seat *wlr_seat = seat->seat;
struct wlr_keyboard *wlr_keyboard = keyboard->wlr_keyboard;
wlr_idle_notify_activity(seat->wlr_idle, seat->seat);
idle_manager_notify_activity(seat->seat);
/* any new press/release cancels current keybind repeat */
keyboard_cancel_keybind_repeat(keyboard);