diff options
author | emersion <contact@emersion.fr> | 2019-02-28 19:22:47 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-28 23:02:06 -0500 |
commit | 88b283c55713c45968e2df5f8b89a40a0b32f720 (patch) | |
tree | 4fad7681ca82cf833920731624ce9f52df709bc0 /sway/input/seatop_move_tiling.c | |
parent | 416c6ecb99f90a7c84cce0b106401652692a4681 (diff) |
seat: don't send button release when not pressed
All seat operations except "down" eat the button pressed event and don't send
it to clients. Thus, when ending such seat operations we shouldn't send the
button released event.
This commit moves the logic used to send pressed/released into the "down"
operation.
Diffstat (limited to 'sway/input/seatop_move_tiling.c')
-rw-r--r-- | sway/input/seatop_move_tiling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_move_tiling.c b/sway/input/seatop_move_tiling.c index 1e548f5a..4b5aa81e 100644 --- a/sway/input/seatop_move_tiling.c +++ b/sway/input/seatop_move_tiling.c @@ -226,7 +226,7 @@ static bool is_parallel(enum sway_container_layout layout, return layout_is_horiz == edge_is_horiz; } -static void handle_finish(struct sway_seat *seat) { +static void handle_finish(struct sway_seat *seat, uint32_t time_msec) { struct seatop_move_tiling_event *e = seat->seatop_data; if (!e->target_node) { |