mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
restart: Request to hide the restart message if not accepted
In case the shell ignores or can't accept the restart request we should hide the message that has been just requested to be shown. As per ::show-restart-message signal documentation, this has to be done by emitting the signal with a NULL message. So follow the API properly in such case Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1780>
This commit is contained in:
parent
6d9a2c1ca3
commit
42287a5f04
@ -59,7 +59,12 @@ static void
|
||||
restart_check_ready (void)
|
||||
{
|
||||
if (restart_helper_started && restart_message_shown)
|
||||
meta_display_request_restart (meta_get_display ());
|
||||
{
|
||||
MetaDisplay *display = meta_get_display ();
|
||||
|
||||
if (!meta_display_request_restart (display))
|
||||
meta_display_show_restart_message (display, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user