summaryrefslogtreecommitdiff
path: root/otk/display.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-09 22:54:31 +0000
committerDana Jansens <danakj@orodu.net>2003-01-09 22:54:31 +0000
commit345d957e1ea577480f807b892b73c3f52fe913d2 (patch)
tree489dd8d159f22bbc3828ad094ced5288eb582628 /otk/display.cc
parentb1739374a61d0c33270bafe84da9d787e79c0686 (diff)
new python callbacks data, infrastructure. going to rework bindings code. cvs wont work for shit now. but thats life.
Diffstat (limited to 'otk/display.cc')
-rw-r--r--otk/display.cc11
1 files changed, 11 insertions, 0 deletions
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 <X11/keysym.h>
+#ifdef XKB
+#include <X11/XKBlib.h>
+#endif // XKB
+
#ifdef SHAPE
#include <X11/extensions/shape.h>
#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