1
0
Fork 0

wayland/inhibit-dialog: Drop duplicated hide call

the destroy and the response handler, already hide the dialog
themselves. The calls here were unnecessary.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3048
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4034>
(cherry picked from commit 3eb5381c46)
This commit is contained in:
Bilal Elmoussaoui 2024-09-17 17:03:45 +02:00 committed by Jonas Ådahl
parent 8e2c8611f6
commit 7c5bb5b8b2
2 changed files with 0 additions and 2 deletions

View file

@ -97,5 +97,4 @@ meta_inhibit_shortcuts_dialog_response (MetaInhibitShortcutsDialog *dial
MetaInhibitShortcutsDialogResponse response)
{
g_signal_emit (dialog, inhibit_dialog_signals[RESPONSE], 0, response);
meta_inhibit_shortcuts_dialog_hide (dialog);
}

View file

@ -99,7 +99,6 @@ inhibit_shortcuts_dialog_response_cb (MetaInhibitShortcutsDialog *dialog,
if (!data->request_canceled)
inhibit_shortcuts_dialog_response_apply (data);
meta_inhibit_shortcuts_dialog_hide (data->dialog);
surface_inhibit_shortcuts_data_destroy_dialog (data);
}