summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop-shell/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 6915d9c2..5e34ddd5 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -3233,7 +3233,7 @@ popup_grab_button(struct weston_pointer_grab *grab,
}
} else if (state == WL_POINTER_BUTTON_STATE_RELEASED &&
(shseat->popup_grab.initial_up ||
- time - shseat->seat->pointer->grab_time > 500)) {
+ time - grab->pointer->grab_time > 500)) {
popup_grab_end(grab->pointer);
}