aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/seat.h
diff options
context:
space:
mode:
authorLibravatar Simon Plakolb <s.plakolb@gmail.com>2021-08-02 16:54:50 +0200
committerLibravatar Tudor Brindus <vulcainus@gmail.com>2021-09-02 13:13:40 -0400
commit9e58425cb3b61c4073f0789f23d0943bc87e424f (patch)
tree5c6739124385afd5368be1e4a8bad4b1943e053e /include/sway/input/seat.h
parentAdd `output modeline` command (diff)
downloadsway-9e58425cb3b61c4073f0789f23d0943bc87e424f.tar.gz
sway-9e58425cb3b61c4073f0789f23d0943bc87e424f.tar.zst
sway-9e58425cb3b61c4073f0789f23d0943bc87e424f.zip
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/sway/input/seat.h')
-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);
241void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, 241void seatop_begin_down(struct sway_seat *seat, struct sway_container *con,
242 uint32_t time_msec, double sx, double sy); 242 uint32_t time_msec, double sx, double sy);
243 243
244void seatop_begin_down_on_layer_surface(struct sway_seat *seat,
245 struct wlr_surface *surface, uint32_t time_msec, double sx, double sy);
246
244void seatop_begin_move_floating(struct sway_seat *seat, 247void seatop_begin_move_floating(struct sway_seat *seat,
245 struct sway_container *con); 248 struct sway_container *con);
246 249