mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
input: clear SSD hover effects after touch-up
Having a hover effect visible without interaction looks out of place when there is no cursor (the cursor becomes hidden for/after touch interaction until next mouse or tablet interaction). Just clear the hover effect after touch-up to prevent this. Note that SSD hover effects are still shown during touch-move and touch-down.
This commit is contained in:
parent
31dd21de5b
commit
e0d3bebbb7
1 changed files with 1 additions and 0 deletions
|
|
@ -200,6 +200,7 @@ handle_touch_up(struct wl_listener *listener, void *data)
|
|||
} else {
|
||||
cursor_emulate_button(seat, BTN_LEFT,
|
||||
WL_POINTER_BUTTON_STATE_RELEASED, event->time_msec);
|
||||
ssd_update_button_hover(NULL, seat->server->ssd_hover_state);
|
||||
}
|
||||
wl_list_remove(&touch_point->link);
|
||||
zfree(touch_point);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue