mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
wayland/inhibit-shortcuts-dialog: Just hide the dialog when hiding
The meta_wayland_surface_hide_inhibit_shortcuts_dialog() function disconnected the "destroy" handler, but we'd still be listening on response events. Change this to just hide the dialog, leaving the data intact with the proper life time signal in place. https://bugzilla.gnome.org/show_bug.cgi?id=786385
This commit is contained in:
parent
c1439e141e
commit
2f45e88f06
@ -164,7 +164,10 @@ meta_wayland_surface_hide_inhibit_shortcuts_dialog (MetaWaylandSurface *surface)
|
||||
|
||||
/* The closure notify will take care of actually hiding the dialog */
|
||||
data = surface_inhibit_shortcuts_data_get (surface);
|
||||
g_signal_handlers_disconnect_by_data (surface, data);
|
||||
g_return_if_fail (data);
|
||||
|
||||
if (data->dialog)
|
||||
meta_inhibit_shortcuts_dialog_hide (data->dialog);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user