From e0d3bebbb725125d093659cf1343573df6f7bc03 Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Sun, 15 Jun 2025 09:39:19 +0200 Subject: [PATCH] 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. --- src/input/touch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/touch.c b/src/input/touch.c index eeacfdd2..ec6a2bf7 100644 --- a/src/input/touch.c +++ b/src/input/touch.c @@ -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);