mirror of
https://github.com/swaywm/sway.git
synced 2026-04-29 06:46:22 -04:00
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.
This commit is contained in:
parent
20c4d242f6
commit
0ee891d2df
4 changed files with 11 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue