]> icculus.org git repositories - dana/openbox.git/blob - openbox/extensions.h
rip out the VIDMODE extension stuff. this was only used to size fullscreen windows...
[dana/openbox.git] / openbox / extensions.h
1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
2
3    extensions.h for the Openbox window manager
4    Copyright (c) 2003        Ben 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 __extensions_h
20 #define __extensions_h
21
22 #include "geom.h"
23
24 #include <X11/Xlib.h>
25 #include <X11/Xutil.h> /* shape.h uses Region which is in here */
26 #ifdef    XKB
27 #include <X11/XKBlib.h>
28 #endif
29 #ifdef    SHAPE
30 #include <X11/extensions/shape.h>
31 #endif
32 #ifdef    XINERAMA
33 #include <X11/extensions/Xinerama.h>
34 #endif
35 #ifdef    XRANDR
36 #include <X11/extensions/Xrandr.h>
37 #endif
38
39 #include <glib.h>
40
41 /*! Does the display have the XKB extension? */
42 extern gboolean extensions_xkb;
43 /*! Base for events for the XKB extension */
44 extern gint extensions_xkb_event_basep;
45
46 /*! Does the display have the Shape extension? */
47 extern gboolean extensions_shape;
48 /*! Base for events for the Shape extension */
49 extern gint extensions_shape_event_basep;
50
51 /*! Does the display have the Xinerama extension? */
52 extern gboolean extensions_xinerama;
53 /*! Base for events for the Xinerama extension */
54 extern gint extensions_xinerama_event_basep;
55
56 /*! Does the display have the RandR extension? */
57 extern gboolean extensions_randr;
58 /*! Base for events for the Randr extension */
59 extern gint extensions_randr_event_basep;
60
61 void extensions_query_all();
62
63 void extensions_xinerama_screens(Rect **areas, guint *nxin);
64   
65 #endif