aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c5
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,
seat_end_mouse_operation(seat);
seat_pointer_notify_button(seat, time_msec, button, state);
}
+ if (state == WLR_BUTTON_PRESSED) {
+ state_add_button(cursor, button);
+ } else {
+ state_erase_button(cursor, button);
+ }
return;
}