From 66996dee4bf2ab9bf8a1b6aee798e33f5587d83a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sat, 19 Aug 2017 00:28:00 +0800 Subject: [PATCH] wayland/inhibit-shortcuts-dialog: Destroy the dialog after response We'll never actually show it again, but just use the last response, so we can just destroy it now already. https://bugzilla.gnome.org/show_bug.cgi?id=786385 --- src/wayland/meta-wayland-inhibit-shortcuts-dialog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-inhibit-shortcuts-dialog.c b/src/wayland/meta-wayland-inhibit-shortcuts-dialog.c index 5c3be7132..da897b9b3 100644 --- a/src/wayland/meta-wayland-inhibit-shortcuts-dialog.c +++ b/src/wayland/meta-wayland-inhibit-shortcuts-dialog.c @@ -94,7 +94,9 @@ inhibit_shortcuts_dialog_response_cb (MetaInhibitShortcutsDialog *dialog, data->last_response = response; data->has_last_response = TRUE; inhibit_shortcuts_dialog_response_apply (data); - meta_wayland_surface_hide_inhibit_shortcuts_dialog (data->surface); + + meta_inhibit_shortcuts_dialog_hide (data->dialog); + surface_inhibit_shortcuts_data_destroy_dialog (data); } static InhibitShortcutsData *