31f525d566
Closing a GdkDisplay during an event handler is not currently supported by Gdk and it will result in a crash when doing e.g. 'mutter --replace'. Using an idle function will close it safely in a subsequent main loop iteration. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/595