Functions | |
int | mb_exec (const char *cmd) |
Exec a command similar to how a shell would, mainly passing quotes. | |
Window | mb_single_instance_get_window (Display *dpy, const char *bin_name) |
Get window ID of app with specified binary name. | |
Bool | mb_single_instance_is_starting (Display *dpy, const char *bin_name) |
Test to see if an app is in 'startup' phase. | |
char * | mb_util_get_homedir (void) |
Safely returns the current HOME directory or /tmp if not set. | |
void | mb_util_window_activate (Display *dpy, Window win) |
Raise/Activate an existing window. | |
Pixmap | mb_util_get_root_pixmap (Display *dpy) |
Get root pixmap if set. | |
char * | mb_util_get_theme_full_path (const char *theme_name) |
Get a full theme path from its name. | |
void | mb_util_animate_startup (Display *dpy, int x, int y, int width, int height) |
XXX To document XXX. |
int mb_exec | ( | const char * | cmd | ) |
Exec a command similar to how a shell would, mainly passing quotes.
cmd | command string. |
Window mb_single_instance_get_window | ( | Display * | dpy, | |
const char * | bin_name | |||
) |
Get window ID of app with specified binary name.
dpy | X11 Display | |
bin_name | name of executable ( argv[0] ) |
Bool mb_single_instance_is_starting | ( | Display * | dpy, | |
const char * | bin_name | |||
) |
Test to see if an app is in 'startup' phase.
dpy | X11 Display | |
bin_name | name of executable ( argv[0] ) |
char* mb_util_get_homedir | ( | void | ) |
Safely returns the current HOME directory or /tmp if not set.
You should not free the value returned.
Pixmap mb_util_get_root_pixmap | ( | Display * | dpy | ) |
Get root pixmap if set.
dpy | X11 Display |
char* mb_util_get_theme_full_path | ( | const char * | theme_name | ) |
Get a full theme path from its name.
The function allocates memory for the returned data, this should be freed by the caller.
theme_name | Theme name. |
void mb_util_window_activate | ( | Display * | dpy, | |
Window | win | |||
) |
Raise/Activate an existing window.
dpy | X11 Display | |
win | Window ID to 'activate' |