]> icculus.org git repositories - mikachu/openbox.git/blob - openbox/openbox.h
the --rc arg and rc_path var wasnt even being used so just rm it
[mikachu/openbox.git] / openbox / openbox.h
1 #ifndef __openbox_h
2 #define __openbox_h
3
4 #include "misc.h"
5
6 #include "render/render.h"
7 #include "render/theme.h"
8
9 #ifdef USE_LIBSN
10 #  define SN_API_NOT_YET_FROZEN
11 #  include <libsn/sn.h>
12 #endif
13
14 #include <glib.h>
15 #include <X11/Xlib.h>
16
17 extern RrInstance *ob_rr_inst;
18 extern RrTheme    *ob_rr_theme;
19
20 /*! The X display */
21 extern Display *ob_display; 
22
23 #ifdef USE_LIBSN
24 SnDisplay *ob_sn_display;
25 #endif
26
27 /*! The number of the screen on which we're running */
28 extern int      ob_screen;
29 /*! The root window */
30 extern Window   ob_root;
31
32 /* The state of execution of the window manager */
33 extern ObState ob_state;
34
35 /*! Runtime option to specify running on a remote display */
36 extern gboolean ob_remote;
37 /*! Runtime option to run in synchronous mode */
38 extern gboolean ob_sync;
39
40 void ob_restart_other(const gchar *path);
41 void ob_restart();
42 void ob_exit();
43
44 Cursor ob_cursor(ObCursor cursor);
45
46 KeyCode ob_keycode(ObKey key);
47
48 /* cuz i have nowhere better to put it right now... */
49 gboolean ob_pointer_pos(int *x, int *y);
50
51 #endif