summaryrefslogtreecommitdiff
path: root/src/meta/main.h
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2014-05-08 18:35:49 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2014-07-16 18:09:25 -0400
commit3a57f843d5c72986587eda1cd802455864f5ce09 (patch)
tree7fdbbc3cd76f7f87cc6971afbb5031223b85590f /src/meta/main.h
parent182a267f69d353c82f829fb93ccf9e4592d2e648 (diff)
downloadmutter-3a57f843d5c72986587eda1cd802455864f5ce09.tar.gz
Add a framework for restarting the compositor with nice visuals
The current GNOME Shell Alt-F2 restart looks very messy and also provides no indication to the user what is going on. We need to restart the compositor to switch in and out of stereo mode, so add a framework for doing this more cleanly: Additions: meta_restart(): restarts the compositor with a message MetaDisplay::show-restart-message: signal the embedding shell to show a message MetaDisplay::restart: signal the embedding shell to restart itself. meta_is_restart(): indicates whether the current instance is a restart so we can suppress login animations. A helper program meta-restart-helper holds the composite overlay window up during the restart to avoid visual artifacts. https://bugzilla.gnome.org/show_bug.cgi?id=733026
Diffstat (limited to 'src/meta/main.h')
-rw-r--r--src/meta/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/meta/main.h b/src/meta/main.h
index 5c17bd763..d79ddcccc 100644
--- a/src/meta/main.h
+++ b/src/meta/main.h
@@ -34,6 +34,9 @@ gboolean meta_get_replace_current_wm (void); /* Actually defined in util
void meta_set_wm_name (const char *wm_name);
void meta_set_gnome_wm_keybindings (const char *wm_keybindings);
+void meta_restart (const char *message);
+gboolean meta_is_restart (void);
+
/**
* MetaExitCode:
* @META_EXIT_SUCCESS: Success