summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-08-02 16:54:50 +0200
committerFurkan Sahin <furkan-dev@proton.me>2021-08-02 16:54:50 +0200
commit74d6dca55af32d85537b8385b8caacdbaef799ce (patch)
tree5c6739124385afd5368be1e4a8bad4b1943e053e /include
parent15c486bbe5a6c7a8be7d5de58b2ca5fb8cd589a0 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/seat.h3
1 files changed, 3 insertions, 0 deletions
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);