From 9e58425cb3b61c4073f0789f23d0943bc87e424f Mon Sep 17 00:00:00 2001 From: Simon Plakolb Date: Mon, 2 Aug 2021 16:54:50 +0200 Subject: input: Use seatop_down on layer surface click This solves an issue where layer-shell items would not receive a button release event when the pointer left them while being pressed. The default seatop changes focus immediately while seatop_down defers any focus changes until the pointer is released or seatop_down is destroyed. --- include/sway/input/seat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sway') diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index a2b5d2a1..78dbda6f 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -241,6 +241,9 @@ void seatop_begin_default(struct sway_seat *seat); void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, uint32_t time_msec, double sx, double sy); +void seatop_begin_down_on_layer_surface(struct sway_seat *seat, + struct wlr_surface *surface, uint32_t time_msec, double sx, double sy); + void seatop_begin_move_floating(struct sway_seat *seat, struct sway_container *con); -- cgit v1.2.3