diff options
author | Ryan Dwyer <[email protected]> | 2019-03-06 18:54:41 +1000 |
---|---|---|
committer | emersion <[email protected]> | 2019-03-11 14:55:54 +0100 |
commit | d16845d5f0f7ea0316fb9d5e2b7d20b78ca41991 (patch) | |
tree | 3db6efe184aa5c311ecc89140f3f340f25db0687 /sway/input/seatop_down.c | |
parent | 00570c139e037d5d88f1683bb71b42a7f34139b8 (diff) |
Don't send button events to surfaces when dragging or resizing
It turns out sending button events during all seat operations is not
desirable. This patch introduces a new property
`seatop_impl.allows_events` which allows each operation to define
whether button events should be passed to the surface or not.
The `down` seat operation is the only one that supports this. As all the
other seatops don't support it, the calls to seat_pointer_notify_button
prior to starting them have been removed.
Diffstat (limited to 'sway/input/seatop_down.c')
-rw-r--r-- | sway/input/seatop_down.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/seatop_down.c b/sway/input/seatop_down.c index 7f394095..895571b1 100644 --- a/sway/input/seatop_down.c +++ b/sway/input/seatop_down.c @@ -58,6 +58,7 @@ static const struct sway_seatop_impl seatop_impl = { .finish = handle_finish, .abort = handle_abort, .unref = handle_unref, + .allows_events = true, }; void seatop_begin_down(struct sway_seat *seat, struct sway_container *con, |