diff options
-rw-r--r-- | sway/input/cursor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index efc00754..22c5b075 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -825,6 +825,11 @@ void dispatch_cursor_button(struct sway_cursor *cursor, | |||
825 | seat_end_mouse_operation(seat); | 825 | seat_end_mouse_operation(seat); |
826 | seat_pointer_notify_button(seat, time_msec, button, state); | 826 | seat_pointer_notify_button(seat, time_msec, button, state); |
827 | } | 827 | } |
828 | if (state == WLR_BUTTON_PRESSED) { | ||
829 | state_add_button(cursor, button); | ||
830 | } else { | ||
831 | state_erase_button(cursor, button); | ||
832 | } | ||
828 | return; | 833 | return; |
829 | } | 834 | } |
830 | 835 | ||