windowManager: Fix shutdown signal connection

This signal relied on mutter changes that were withdrawn
and it was unintended to use here. Restore the usage of
good old MetaDisplay::x11-display-closing.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1056
This commit is contained in:
Carlos Garnacho 2020-02-29 23:42:29 +01:00
parent 12e14884ef
commit 104d1ae151

View File

@ -922,10 +922,9 @@ var WindowManager = class {
null);
return true;
});
global.display.connect('shutdown-xserver', (display, task) => {
global.display.connect('x11-display-closing', () => {
Shell.util_stop_systemd_unit('gsd-xsettings.target', 'fail');
IBusManager.getIBusManager().restartDaemon();
task.return_boolean(true);
});
Main.overview.connect('showing', () => {