aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rootston/cursor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index d8753f44..717a3da8 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -261,7 +261,9 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
}
}
- if (view && surface) {
+ if ((view && surface) ||
+ (state == WLR_BUTTON_RELEASED &&
+ seat->seat->pointer_state.button_count != 0)) {
if (!is_touch) {
wlr_seat_pointer_notify_button(seat->seat, time, button, state);
}