]> icculus.org git repositories - dana/openbox.git/blob - openbox/openbox.h
using the ObMainLoop, which rulz the planet
[dana/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 struct _ObMainLoop;
18
19 extern RrInstance *ob_rr_inst;
20 extern RrTheme    *ob_rr_theme;
21
22 extern struct _ObMainLoop *ob_main_loop;
23
24 /*! The X display */
25 extern Display *ob_display; 
26
27 #ifdef USE_LIBSN
28 SnDisplay *ob_sn_display;
29 #endif
30
31 /*! The number of the screen on which we're running */
32 extern gint     ob_screen;
33
34 extern gchar   *ob_sm_id;
35 extern gboolean ob_sm_use;
36 extern gboolean ob_replace_wm;
37
38 /* The state of execution of the window manager */
39 ObState ob_state();
40
41 void ob_restart_other(const gchar *path);
42 void ob_restart();
43 void ob_exit();
44
45 void ob_exit_with_error(gchar *msg);
46
47 Cursor ob_cursor(ObCursor cursor);
48
49 KeyCode ob_keycode(ObKey key);
50
51 #endif