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
This commit is contained in:
Jonas Ådahl 2017-08-19 00:28:00 +08:00
parent 2f45e88f06
commit 66996dee4b

View File

@ -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 *