486d042c96b319f2f15e7fe10c80c1a3166991ba
[framework/uifw/ecore.git] / src / lib / ecore_x / xlib / ecore_x_composite.c
1 /*
2  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3  */
4
5 #include "ecore_x_private.h"
6 #include "Ecore_X.h"
7
8 static int _composite_available;
9
10 void
11 _ecore_x_composite_init(void)
12 {
13    _composite_available = 0;
14
15 #ifdef ECORE_XCOMPOSITE
16    int major, minor;
17
18    if (XCompositeQueryVersion(_ecore_x_disp, &major, &minor))
19      _composite_available = 1;
20 #endif
21 }
22
23 EAPI int
24 ecore_x_composite_query(void)
25 {
26    return _composite_available;
27 }