openbox/openbox/openbox.h

47 lines
860 B
C
Raw Normal View History

2003-03-16 21:11:39 +00:00
#ifndef __openbox_h
#define __openbox_h
#include "misc.h"
#include "render/render.h"
2003-06-21 01:53:26 +00:00
#include "render/theme.h"
#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>
extern RrInstance *ob_rr_inst;
2003-06-21 01:53:26 +00:00
extern RrTheme *ob_rr_theme;
2003-03-16 21:11:39 +00:00
/*! The X display */
extern Display *ob_display;
#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 */
extern ObState ob_state;
2003-03-16 21:11:39 +00:00
void ob_restart_other(const gchar *path);
void ob_restart();
void ob_exit();
Cursor ob_cursor(ObCursor cursor);
KeyCode ob_keycode(ObKey key);
/* 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