From 577ccc4d561449c0cb367c3deb273261ed070d3e Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 17 Oct 2011 15:19:46 -0400 Subject: [PATCH] Unmanage the screen before reexecing This ensures a 'clean shutdown' of mutter. https://bugzilla.gnome.org/show_bug.cgi?id=660848 --- src/shell-global.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell-global.c b/src/shell-global.c index bf7b5a794..6aafcdbdf 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -1122,6 +1122,10 @@ shell_global_reexec_self (ShellGlobal *global) */ pre_exec_close_fds (); + meta_display_unmanage_screen (shell_global_get_display (global), + shell_global_get_screen (global), + shell_global_get_current_time (global)); + execvp (arr->pdata[0], (char**)arr->pdata); g_warning ("failed to reexec: %s", g_strerror (errno)); g_ptr_array_free (arr, TRUE);