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
parent d4bb77060c
commit f8d4d36436
No known key found for this signature in database
6 changed files with 52 additions and 2 deletions

View file

@ -125,6 +125,9 @@ handle_touch_down(struct wl_listener *listener, void *data)
wl_list_insert(&seat->touch_points, &touch_point->link);
int touch_point_count = wl_list_length(&seat->touch_points);
/* hide the cursor when starting touch input */
cursor_set_visible(seat, /* visible */ false);
if (touch_point->surface) {
seat_pointer_end_grab(seat, touch_point->surface);
/* Clear focus to not interfere with touch input */