]> git.mdlowis.com Git - proto/labwc.git/commitdiff
input: clear SSD hover effects after touch-up
authorJens Peters <jp7677@gmail.com>
Sun, 15 Jun 2025 07:39:19 +0000 (09:39 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 16 Jun 2025 20:56:46 +0000 (22:56 +0200)
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

index eeacfdd2b33ff5ce24f15cd679a351934ccf9836..ec6a2bf760804adc8a0af11ea7eb0b6ab2467b79 100644 (file)
@@ -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);