implement ext-idle-notify-v1

This commit is contained in:
Leon Henrik Plickat
2024-01-06 21:25:26 +01:00
parent 25fcd37930
commit 2ccbfb2283
16 changed files with 682 additions and 187 deletions

31
src/seat.h Normal file
View File

@@ -0,0 +1,31 @@
#ifndef RIVERGUILE_SEAT_H
#define RIVERGUILE_SEAT_H
#include <wayland-client.h>
#include <libguile.h>
struct Seat
{
struct wl_list link;
struct wl_seat *wl_seat;
uint32_t name;
struct wl_list idles;
};
struct Idle
{
struct Seat *seat;
struct wl_list link;
struct ext_idle_notification_v1 *idle_notification;
SCM handler;
uint32_t ms;
};
struct Seat *seat_create (struct wl_seat *wl_seat, uint32_t name);
void seat_destroy (struct Seat *seat);
void idle_configure (struct Idle *idle, struct Seat *seat);
void idle_destroy (struct Idle *idle);
#endif