Go to the source code of this file.
Enumerations | |
| enum | MetaExitCode { META_EXIT_SUCCESS, META_EXIT_ERROR } |
Functions | |
| void | meta_exit (MetaExitCode code) |
| void | meta_quit (MetaExitCode code) |
| Stops Metacity. | |
| void | meta_restart (void) |
| Restarts Metacity. | |
| enum MetaExitCode |
| void meta_exit | ( | MetaExitCode | code | ) |
| void meta_quit | ( | MetaExitCode | code | ) |
Stops Metacity.
This tells the event loop to stop processing; it is rather dangerous to use this rather than meta_restart() because this will leave the user with no window manager. We generally do this only if, for example, the session manager asks us to; we assume the session manager knows what it's talking about.
| code | The success or failure code to return to the calling process. |
Definition at line 521 of file main.c.
References meta_exit_code, and meta_main_loop.
Referenced by die_callback(), meta_display_close(), and meta_restart().
| void meta_restart | ( | void | ) |
Restarts Metacity.
In practice, this tells the event loop to stop processing, having first set the meta_restart_after_quit flag which tells Metacity to spawn an identical copy of itself before quitting. This happens on receipt of a _METACITY_RESTART_MESSAGE client event.
Definition at line 536 of file main.c.
References META_EXIT_SUCCESS, meta_quit(), meta_restart_after_quit, and TRUE.
Referenced by event_callback().
1.5.5