summaryrefslogtreecommitdiff
path: root/clients/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/window.c')
-rw-r--r--clients/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/window.c b/clients/window.c
index 0e73f5bd..47a79aa6 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -4738,7 +4738,7 @@ menu_button_handler(struct widget *widget,
/* Either relase after press-drag-release or
* click-motion-click. */
menu->func(menu->user_data, input, menu->current);
- input_ungrab(input);
+ input_ungrab(menu->input);
menu_destroy(menu);
} else if (state == WL_POINTER_BUTTON_STATE_RELEASED) {
menu->release_count++;