2003-03-16 21:11:39 +00:00
|
|
|
#ifndef __openbox_h
|
|
|
|
#define __openbox_h
|
|
|
|
|
2003-07-10 06:18:47 +00:00
|
|
|
#include "misc.h"
|
|
|
|
|
2003-06-21 00:42:47 +00:00
|
|
|
#include "render/render.h"
|
2003-06-21 01:53:26 +00:00
|
|
|
#include "render/theme.h"
|
2003-06-21 00:42:47 +00:00
|
|
|
|
2003-05-18 02:10:26 +00:00
|
|
|
#ifdef USE_LIBSN
|
|
|
|
# define SN_API_NOT_YET_FROZEN
|
|
|
|
# include <libsn/sn.h>
|
|
|
|
#endif
|
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
2003-06-21 00:42:47 +00:00
|
|
|
extern RrInstance *ob_rr_inst;
|
2003-06-21 01:53:26 +00:00
|
|
|
extern RrTheme *ob_rr_theme;
|
2003-06-21 00:42:47 +00:00
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
/*! The X display */
|
|
|
|
extern Display *ob_display;
|
2003-05-18 02:10:26 +00:00
|
|
|
|
|
|
|
#ifdef USE_LIBSN
|
|
|
|
SnDisplay *ob_sn_display;
|
|
|
|
#endif
|
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
/*! The number of the screen on which we're running */
|
|
|
|
extern int ob_screen;
|
|
|
|
/*! The root window */
|
|
|
|
extern Window ob_root;
|
|
|
|
|
|
|
|
/* The state of execution of the window manager */
|
2003-07-10 06:18:47 +00:00
|
|
|
extern ObState ob_state;
|
2003-03-16 21:11:39 +00:00
|
|
|
|
2003-07-10 18:50:47 +00:00
|
|
|
void ob_restart_other(const gchar *path);
|
|
|
|
void ob_restart();
|
|
|
|
void ob_exit();
|
|
|
|
|
2003-07-10 06:18:47 +00:00
|
|
|
Cursor ob_cursor(ObCursor cursor);
|
|
|
|
|
|
|
|
KeyCode ob_keycode(ObKey key);
|
|
|
|
|
2003-04-17 06:17:06 +00:00
|
|
|
/* cuz i have nowhere better to put it right now... */
|
|
|
|
gboolean ob_pointer_pos(int *x, int *y);
|
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
#endif
|