main.h File Reference

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.


Enumeration Type Documentation

Enumerator:
META_EXIT_SUCCESS 
META_EXIT_ERROR 

Definition at line 29 of file main.h.


Function Documentation

void meta_exit ( MetaExitCode  code  ) 

Definition at line 474 of file util.c.

Referenced by main(), and meta_fatal().

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.

Parameters:
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().


Generated on Sat Aug 23 22:04:22 2008 for metacity by  doxygen 1.5.5