diff options
author | Simon Plakolb <s.plakolb@gmail.com> | 2021-08-02 16:54:50 +0200 |
---|---|---|
committer | Tudor Brindus <vulcainus@gmail.com> | 2021-09-02 13:13:40 -0400 |
commit | 9e58425cb3b61c4073f0789f23d0943bc87e424f (patch) | |
tree | 5c6739124385afd5368be1e4a8bad4b1943e053e /include/sway/input | |
parent | 57d6f6f19e3088dcb8e202acade8c39a80075b4a (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/sway/input')
-rw-r--r-- | include/sway/input/seat.h | 3 |
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); |