X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Fdisplay.cc;h=5bd282e6c66a5f434394f81bf5e46f6b7cb79473;hb=26d95a52860277c118efd95fb251fee28b502d8c;hp=6fc6117cd2e5a72af0a40de1523ff26201c2f642;hpb=9bfc9778271734e56e381afca74e7e50f6334f04;p=chaz%2Fopenbox diff --git a/otk/display.cc b/otk/display.cc index 6fc6117c..5bd282e6 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -11,6 +11,10 @@ extern "C" { #include +#ifdef XKB +#include +#endif // XKB + #ifdef SHAPE #include #endif // SHAPE @@ -44,6 +48,8 @@ namespace otk { Display *OBDisplay::display = (Display*) 0; +bool OBDisplay::_xkb = false; +int OBDisplay::_xkb_event_basep = 0; bool OBDisplay::_shape = false; int OBDisplay::_shape_event_basep = 0; bool OBDisplay::_xinerama = false; @@ -107,6 +113,11 @@ line argument.\n\n")); } // find the availability of X extensions we like to use +#ifdef XKB + _xkb = XkbQueryExtension(display, &junk, &_xkb_event_basep, &junk, NULL, + NULL); +#endif + #ifdef SHAPE _shape = XShapeQueryExtension(display, &_shape_event_basep, &junk); #endif