Main

Main — Program startup.

Synopsis

GOptionContext *    meta_get_option_context             (void);
void                meta_init                           (void);
int                 meta_run                            (void);
gboolean            meta_get_replace_current_wm         (void);
enum                MetaExitCode;
void                meta_exit                           (MetaExitCode code);
void                meta_quit                           (MetaExitCode code);

Description

Functions which parse the command-line arguments, create the display, kick everything off and then close down Muffin when it's time to go.

Muffin - a boring window manager for the adult in you

Many window managers are like Marshmallow Froot Loops; Muffin is like Cheerios.

The best way to get a handle on how the whole system fits together is discussed in doc/code-overview.txt; if you're looking for functions to investigate, read main(), meta_display_open(), and event_callback().

Details

meta_get_option_context ()

GOptionContext *    meta_get_option_context             (void);

Returns a GOptionContext initialized with muffin-related options. Parse the command-line args with this before calling meta_init().

Returns :

the GOptionContext

meta_init ()

void                meta_init                           (void);

Initialize muffin. Call this after meta_get_option_context() and meta_plugin_manager_set_plugin_type(), and before meta_run().


meta_run ()

int                 meta_run                            (void);

Runs muffin. Call this after completing your own initialization.

Returns :

muffin's exit status

meta_get_replace_current_wm ()

gboolean            meta_get_replace_current_wm         (void);

enum MetaExitCode

typedef enum {
  META_EXIT_SUCCESS,
  META_EXIT_ERROR
} MetaExitCode;

META_EXIT_SUCCESS

META_EXIT_ERROR


meta_exit ()

void                meta_exit                           (MetaExitCode code);

meta_quit ()

void                meta_quit                           (MetaExitCode code);