From d16845d5f0f7ea0316fb9d5e2b7d20b78ca41991 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 6 Mar 2019 18:54:41 +1000 Subject: 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. --- sway/input/seatop_down.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/input/seatop_down.c') 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, -- cgit v1.2.3