diff options
author | 2021-08-02 16:54:50 +0200 | |
---|---|---|
committer | 2021-09-02 13:13:40 -0400 | |
commit | 9e58425cb3b61c4073f0789f23d0943bc87e424f (patch) | |
tree | 5c6739124385afd5368be1e4a8bad4b1943e053e /include | |
parent | Add `output modeline` command (diff) | |
download | sway-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')
-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); | |||
241 | void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, | 241 | void 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 | ||
244 | void seatop_begin_down_on_layer_surface(struct sway_seat *seat, | ||
245 | struct wlr_surface *surface, uint32_t time_msec, double sx, double sy); | ||
246 | |||
244 | void seatop_begin_move_floating(struct sway_seat *seat, | 247 | void seatop_begin_move_floating(struct sway_seat *seat, |
245 | struct sway_container *con); | 248 | struct sway_container *con); |
246 | 249 | ||