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>
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
;
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
;
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
;
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
;
61 void extensions_query_all();
63 void extensions_xinerama_screens(Rect
**areas
, guint
*nxin
);