aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2019-03-16 09:18:54 +1000
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-17 10:02:04 -0600
commitfb3475e291ea6be94131c19fdc006e9ad873ea5f (patch)
treeedf7a13eb1ee74f8efd14a8d7b5355f820a8b10a /sway/input/cursor.c
parentconfig/output: revamp identifier/name layering (diff)
downloadsway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.tar.gz
sway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.tar.zst
sway-fb3475e291ea6be94131c19fdc006e9ad873ea5f.zip
Replace seatup allows_events with button callback
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index d531a20e..011b4929 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -610,9 +610,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
610 } else { 610 } else {
611 state_erase_button(cursor, button); 611 state_erase_button(cursor, button);
612 } 612 }
613 if (seatop_allows_events(seat)) { 613 seatop_button(seat, time_msec, device, button, state);
614 seat_pointer_notify_button(seat, time_msec, button, state);
615 }
616 if (button == seat->seatop_button && state == WLR_BUTTON_RELEASED) { 614 if (button == seat->seatop_button && state == WLR_BUTTON_RELEASED) {
617 seatop_finish(seat, time_msec); 615 seatop_finish(seat, time_msec);
618 } 616 }