]> icculus.org git repositories - dana/openbox.git/blob - openbox/openbox.h
client_update_protocols() doesnt change anything that would affect a client's decor...
[dana/openbox.git] / openbox / openbox.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3    openbox.h for the Openbox window manager
4    Copyright (c) 2003-2007   Dana Jansens
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    See the COPYING file for a copy of the GNU General Public License.
17 */
18
19 #ifndef __openbox_h
20 #define __openbox_h
21
22 #include "misc.h"
23
24 #include "obrender/render.h"
25 #include "obrender/theme.h"
26 #include "obt/mainloop.h"
27 #include "obt/display.h"
28
29 #include <glib.h>
30
31 extern RrInstance *ob_rr_inst;
32 extern RrImageCache *ob_rr_icons;
33 extern RrTheme    *ob_rr_theme;
34
35 extern ObtMainLoop *ob_main_loop;
36
37 /*! The number of the screen on which we're running */
38 extern gint     ob_screen;
39
40 extern gboolean ob_sm_use;
41 extern gchar   *ob_sm_id;
42 /* This save_file will get pass to ourselves if we restart too! So we won't
43  make a new file every time, yay. */
44 extern gchar   *ob_sm_save_file;
45 extern gboolean ob_sm_restore;
46 extern gboolean ob_replace_wm;
47 extern gboolean ob_debug_xinerama;
48
49 /*! The current locale for the LC_MESSAGES category */
50 extern const gchar *ob_locale_msg;
51
52 /* The state of execution of the window manager */
53 ObState ob_state(void);
54 void ob_set_state(ObState state);
55
56 void ob_restart_other(const gchar *path);
57 void ob_restart(void);
58 void ob_exit(gint code);
59 void ob_exit_replace(void);
60
61 void ob_reconfigure(void);
62
63 void ob_exit_with_error(const gchar *msg) G_GNUC_NORETURN;
64
65 Cursor ob_cursor(ObCursor cursor);
66
67 #endif