]> Dogcows Code - chaz/openbox/blob - openbox/extensions.c
center dock apps
[chaz/openbox] / openbox / extensions.c
1 #include "openbox.h"
2 #include "extensions.h"
3
4 gboolean extensions_xkb = FALSE;
5 int extensions_xkb_event_basep;
6 gboolean extensions_shape = FALSE;
7 int extensions_shape_event_basep;
8 gboolean extensions_xinerama = FALSE;
9 int extensions_xinerama_event_basep;
10 gboolean extensions_randr = FALSE;
11 int extensions_randr_event_basep;
12 gboolean extensions_vidmode = FALSE;
13 int extensions_vidmode_event_basep;
14
15 void extensions_query_all()
16 {
17 int junk;
18 (void)junk;
19
20 #ifdef XKB
21 extensions_xkb =
22 XkbQueryExtension(ob_display, &junk, &extensions_xkb_event_basep,
23 &junk, NULL, NULL);
24 #endif
25
26 #ifdef SHAPE
27 extensions_shape =
28 XShapeQueryExtension(ob_display, &extensions_shape_event_basep,
29 &junk);
30 #endif
31
32 #ifdef XINERAMA
33 extensions_xinerama =
34 XineramaQueryExtension(ob_display, &extensions_xinerama_event_basep,
35 &junk);
36 #endif
37
38 #ifdef XRANDR
39 extensions_randr =
40 XRRQueryExtension(ob_display, &extensions_randr_event_basep,
41 &junk);
42 #endif
43
44 #ifdef VIDMODE
45 extensions_vidmode =
46 XF86VidModeQueryExtension(ob_display, &extensions_vidmode_event_basep,
47 &junk);
48 #endif
49 }
This page took 0.038218 seconds and 4 git commands to generate.