merge the C branch into HEAD
[openbox.git] / openbox / openbox.h
blobf8797d7fad2c24f05ed2754e1c0e9b31cfd982cc
1 #ifndef __openbox_h
2 #define __openbox_h
4 #include <glib.h>
5 #include <X11/Xlib.h>
7 /*! The X display */
8 extern Display *ob_display;
9 /*! The number of the screen on which we're running */
10 extern int ob_screen;
11 /*! The root window */
12 extern Window ob_root;
14 /*! States of execution for Openbox */
15 typedef enum {
16 State_Starting,
17 State_Exiting,
18 State_Running
19 } State;
21 /* The state of execution of the window manager */
22 State ob_state;
24 /*! When set to true, Openbox will exit */
25 extern gboolean ob_shutdown;
26 /*! When set to true, Openbox will restart instead of shutting down */
27 extern gboolean ob_restart;
28 /*! When restarting, if this is not NULL, it will be executed instead of
29 restarting Openbox. */
30 extern char *ob_restart_path;
32 /*! Runtime option to specify running on a remote display */
33 extern gboolean ob_remote;
34 /*! Runtime option to run in synchronous mode */
35 extern gboolean ob_sync;
37 typedef struct Cursors {
38 Cursor left_ptr;
39 Cursor ll_angle;
40 Cursor lr_angle;
41 } Cursors;
42 Cursors ob_cursors;
44 #endif