[mutter] wayland/inhibit-shortcuts-dialog: Destroy the dialog after response



commit 66996dee4bf2ab9bf8a1b6aee798e33f5587d83a
Author: Jonas Ådahl <jadahl gmail com>
Date:   Sat Aug 19 00:28:00 2017 +0800

    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

 .../meta-wayland-inhibit-shortcuts-dialog.c        |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-inhibit-shortcuts-dialog.c 
b/src/wayland/meta-wayland-inhibit-shortcuts-dialog.c
index 5c3be71..da897b9 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 *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]