1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 extensions.h for the Openbox window manager
4 Copyright (c) 2003 Ben Jansens
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.
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.
16 See the COPYING file for a copy of the GNU General Public License.
19 #ifndef __extensions_h
20 #define __extensions_h
25 #include <X11/Xutil.h> /* shape.h uses Region which is in here */
27 #include <X11/XKBlib.h>
30 #include <X11/extensions/shape.h>
33 #include <X11/extensions/Xinerama.h>
36 #include <X11/extensions/Xrandr.h>
39 #include <X11/extensions/xf86vmode.h>
44 /*! Does the display have the XKB extension? */
45 extern gboolean extensions_xkb
;
46 /*! Base for events for the XKB extension */
47 extern int extensions_xkb_event_basep
;
49 /*! Does the display have the Shape extension? */
50 extern gboolean extensions_shape
;
51 /*! Base for events for the Shape extension */
52 extern int extensions_shape_event_basep
;
54 /*! Does the display have the Xinerama extension? */
55 extern gboolean extensions_xinerama
;
56 /*! Base for events for the Xinerama extension */
57 extern int extensions_xinerama_event_basep
;
59 /*! Does the display have the RandR extension? */
60 extern gboolean extensions_randr
;
61 /*! Base for events for the Randr extension */
62 extern int extensions_randr_event_basep
;
64 /*! Does the display have the VidMode extension? */
65 extern gboolean extensions_vidmode
;
66 /*! Base for events for the VidMode extension */
67 extern int extensions_vidmode_event_basep
;
69 void extensions_query_all();
71 void extensions_xinerama_screens(Rect
**areas
, guint
*nxin
);