input: add seat and cursor implementations

This commit is contained in:
Jente Hidskes 2020-07-08 21:43:07 +02:00
parent 0489045405
commit b4f832d501
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
5 changed files with 298 additions and 0 deletions

21
input/seat.h Normal file
View file

@ -0,0 +1,21 @@
#ifndef CG_SEAT_H
#define CG_SEAT_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_seat.h>
#include "cursor.h"
struct cg_seat {
struct wlr_seat *wlr_seat;
struct wl_listener seat_destroy;
struct cg_cursor *cursor;
struct wl_list pointers; // cg_pointer::link
};
void cage_seat_init(struct cg_seat *seat, struct wlr_seat *wlr_seat, struct cg_cursor *cursor);
void cage_seat_fini(struct cg_seat *seat);
#endif