diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2014-05-08 18:35:49 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2014-07-16 18:09:25 -0400 |
commit | 3a57f843d5c72986587eda1cd802455864f5ce09 (patch) | |
tree | 7fdbbc3cd76f7f87cc6971afbb5031223b85590f /src/meta/main.h | |
parent | 182a267f69d353c82f829fb93ccf9e4592d2e648 (diff) | |
download | mutter-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.h | 3 |
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 |