mirror of
https://github.com/labwc/labwc.git
synced 2025-11-14 06:59:54 -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
|
|
@ -251,6 +251,7 @@ handle_tablet_tool_proximity(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
idle_manager_notify_activity(tablet->seat->seat);
|
||||
cursor_set_visible(tablet->seat, /* visible */ true);
|
||||
|
||||
if (ev->state == WLR_TABLET_TOOL_PROXIMITY_IN) {
|
||||
tablet->motion_mode =
|
||||
|
|
@ -313,6 +314,7 @@ handle_tablet_tool_axis(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
idle_manager_notify_activity(tablet->seat->seat);
|
||||
cursor_set_visible(tablet->seat, /* visible */ true);
|
||||
|
||||
/*
|
||||
* Reset relative coordinates. If those axes aren't updated,
|
||||
|
|
@ -470,6 +472,7 @@ handle_tablet_tool_tip(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
idle_manager_notify_activity(tablet->seat->seat);
|
||||
cursor_set_visible(tablet->seat, /* visible */ true);
|
||||
|
||||
double x, y, dx, dy;
|
||||
struct wlr_surface *surface = tablet_get_coords(tablet, &x, &y, &dx, &dy);
|
||||
|
|
@ -549,6 +552,7 @@ handle_tablet_tool_button(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
idle_manager_notify_activity(tablet->seat->seat);
|
||||
cursor_set_visible(tablet->seat, /* visible */ true);
|
||||
|
||||
double x, y, dx, dy;
|
||||
struct wlr_surface *surface = tablet_get_coords(tablet, &x, &y, &dx, &dy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue