Hides the pointer after 3 seconds (should be made configurable)
assumes absolute are touchscreen and that relative are pointers,
which is probably too primitive.. One might want to set a dev type
somewhere.
This commit is contained in:
Jesper Schmitz Mouridsen 2026-02-23 22:03:47 +01:00
parent dcd64ae48b
commit 4704c8d630
2 changed files with 73 additions and 47 deletions

7
seat.h
View file

@ -13,6 +13,11 @@
#define DEFAULT_XCURSOR "left_ptr"
#define XCURSOR_SIZE 24
struct cage_cursor {
struct wlr_cursor *cursor;
bool hidden;
struct wl_event_source *hide_cursor_timer;
};
struct cg_seat {
struct wlr_seat *seat;
@ -25,7 +30,7 @@ struct cg_seat {
struct wl_list touch;
struct wl_listener new_input;
struct wlr_cursor *cursor;
struct cage_cursor *cage_cursor;
struct wlr_xcursor_manager *xcursor_manager;
struct wl_listener cursor_motion_relative;
struct wl_listener cursor_motion_absolute;