mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-22 05:34:01 -04:00
WIP fixes #299
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:
parent
dcd64ae48b
commit
4704c8d630
2 changed files with 73 additions and 47 deletions
7
seat.h
7
seat.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue