input: add pointer implementation

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

17
input/pointer.h Normal file
View file

@ -0,0 +1,17 @@
#ifndef CG_POINTER_H
#define CG_POINTER_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_input_device.h>
struct cg_pointer {
struct wl_list link; // seat::pointers
struct wlr_input_device *device;
struct wl_listener destroy;
};
void cage_pointer_init(struct cg_pointer *pointer, struct wlr_input_device *device);
void cage_pointer_fini(struct cg_pointer *pointer);
#endif