diff options
author | emersion <contact@emersion.fr> | 2018-10-04 13:29:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 13:29:09 +0200 |
commit | 192ec7d6c8843b18aafce70eefe322e6db11e5b9 (patch) | |
tree | 0d4a9d77e5c3112cc9ba9494dd496a33beab1da2 | |
parent | Merge pull request #2759 from minus7/fix-view-container-null (diff) | |
parent | Ignore unrelated cursor buttons while doing seat operations (diff) | |
download | sway-192ec7d6c8843b18aafce70eefe322e6db11e5b9.tar.gz sway-192ec7d6c8843b18aafce70eefe322e6db11e5b9.tar.zst sway-192ec7d6c8843b18aafce70eefe322e6db11e5b9.zip |
Merge pull request #2761 from RyanDwyer/seat-op-ignore-buttons
Ignore unrelated cursor buttons while doing seat operations
-rw-r--r-- | sway/input/cursor.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 3c62acb9..331c6c7e 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -754,11 +754,12 @@ void dispatch_cursor_button(struct sway_cursor *cursor, | |||
754 | } | 754 | } |
755 | struct sway_seat *seat = cursor->seat; | 755 | struct sway_seat *seat = cursor->seat; |
756 | 756 | ||
757 | // Handle ending seat operation | 757 | // Handle existing seat operation |
758 | if (cursor->seat->operation != OP_NONE && | 758 | if (cursor->seat->operation != OP_NONE) { |
759 | button == cursor->seat->op_button && state == WLR_BUTTON_RELEASED) { | 759 | if (button == cursor->seat->op_button && state == WLR_BUTTON_RELEASED) { |
760 | seat_end_mouse_operation(seat); | 760 | seat_end_mouse_operation(seat); |
761 | seat_pointer_notify_button(seat, time_msec, button, state); | 761 | seat_pointer_notify_button(seat, time_msec, button, state); |
762 | } | ||
762 | return; | 763 | return; |
763 | } | 764 | } |
764 | 765 | ||