feat: add support to two new wayland protocols

- Idle notify
- Idle inhibit
This commit is contained in:
DanyLE
2025-07-07 16:37:23 +02:00
parent dd8242abc6
commit 194b7894cd
6 changed files with 97 additions and 2 deletions

3
seat.c
View File

@ -7,6 +7,7 @@
#include "seat.h"
#include "view.h"
#include "output.h"
#include "idle.h"
static void configure_keyboard(struct diyac_seat* seat, struct diyac_input* input, bool force)
{
@ -97,7 +98,7 @@ static void keyboard_handle_key(
wl_container_of(listener, keyboard, key);
struct wlr_keyboard_key_event *event = data;
struct wlr_seat *seat = keyboard->input.seat->wlr_seat;
diya_idle_manager_notify_activity(seat);
/* Translate libinput keycode -> xkbcommon */
// wlr_log(WLR_INFO, "receive keycode %d", event->keycode);
uint32_t keycode = event->keycode + 8;