2003-09-17 07:44:49 +00:00
|
|
|
/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
|
2003-09-17 07:32:52 +00:00
|
|
|
|
|
|
|
openbox.h for the Openbox window manager
|
2007-04-23 17:56:35 +00:00
|
|
|
Copyright (c) 2003-2007 Dana Jansens
|
2003-09-17 07:32:52 +00:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
See the COPYING file for a copy of the GNU General Public License.
|
|
|
|
*/
|
|
|
|
|
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-03-16 21:11:39 +00:00
|
|
|
#include <glib.h>
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
|
2003-08-30 07:20:16 +00:00
|
|
|
struct _ObMainLoop;
|
|
|
|
|
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-08-30 07:20:16 +00:00
|
|
|
extern struct _ObMainLoop *ob_main_loop;
|
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
/*! The X display */
|
|
|
|
extern Display *ob_display;
|
2003-05-18 02:10:26 +00:00
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
/*! The number of the screen on which we're running */
|
2003-07-10 18:54:54 +00:00
|
|
|
extern gint ob_screen;
|
2003-03-16 21:11:39 +00:00
|
|
|
|
2003-07-24 18:19:26 +00:00
|
|
|
extern gboolean ob_sm_use;
|
2007-05-06 05:19:19 +00:00
|
|
|
extern gchar *ob_sm_id;
|
|
|
|
/* This save_file will get pass to ourselves if we restart too! So we won't
|
|
|
|
make a new file every time, yay. */
|
|
|
|
extern gchar *ob_sm_save_file;
|
2007-05-22 00:05:28 +00:00
|
|
|
extern gboolean ob_sm_restore;
|
2003-07-22 18:09:41 +00:00
|
|
|
extern gboolean ob_replace_wm;
|
2007-05-14 00:28:16 +00:00
|
|
|
extern gboolean ob_debug_xinerama;
|
2003-07-22 18:09:41 +00:00
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
/* The state of execution of the window manager */
|
2003-07-10 19:06:00 +00:00
|
|
|
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();
|
2003-09-17 02:50:20 +00:00
|
|
|
void ob_exit(gint code);
|
2007-03-04 09:01:52 +00:00
|
|
|
void ob_exit_replace();
|
2003-07-10 18:50:47 +00:00
|
|
|
|
2003-09-03 18:11:39 +00:00
|
|
|
void ob_reconfigure();
|
|
|
|
|
2007-03-18 15:07:30 +00:00
|
|
|
void ob_exit_with_error(const gchar *msg);
|
2003-07-31 16:56:35 +00:00
|
|
|
|
2003-07-10 06:18:47 +00:00
|
|
|
Cursor ob_cursor(ObCursor cursor);
|
|
|
|
|
|
|
|
KeyCode ob_keycode(ObKey key);
|
|
|
|
|
2003-03-16 21:11:39 +00:00
|
|
|
#endif
|