input: hide cursor when using touch input

Hide the cursor on touch input and keep the cursur invisible
until pointer or tablet input.
This commit is contained in:
Jens Peters 2024-11-02 15:59:33 +01:00 committed by Hiroaki Yamamoto
parent d1cde3c435
commit fc774d0071
6 changed files with 52 additions and 2 deletions

View file

@ -72,6 +72,8 @@ struct cursor_context get_cursor_context(struct server *server);
*/
void cursor_set(struct seat *seat, enum lab_cursors cursor);
void cursor_set_visible(struct seat *seat, bool visible);
/**
* cursor_get_resize_edges - calculate resize edge based on cursor position
* @cursor - the current cursor (usually server->seat.cursor)

View file

@ -108,6 +108,7 @@ struct seat {
* (in that case the client is expected to set its own cursor image).
*/
enum lab_cursors server_cursor;
bool cursor_visible;
struct wlr_cursor *cursor;
struct wlr_xcursor_manager *xcursor_manager;
struct {