mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
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:
parent
d1cde3c435
commit
fc774d0071
6 changed files with 52 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue