]> Dogcows Code - chaz/openbox/blobdiff - otk/display.cc
move screen.cc/hh to bbscreen.cc/hh
[chaz/openbox] / otk / display.cc
index b6fcab07e94df3b18e367a5ac42e5f0c41e88a72..4613b9ba9a5b5da75b8a5b5a43d5fdfeeb2c96e8 100644 (file)
 extern "C" {
 #include <X11/keysym.h>
 
+#ifdef    SHAPE
+#include <X11/extensions/shape.h>
+#endif // SHAPE
+
 #ifdef    HAVE_STDIO_H
 #  include <stdio.h>
 #endif // HAVE_STDIO_H
@@ -54,8 +58,11 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
 #ifdef DEBUG
   char errtxt[128];
 
-  XGetErrorText(d, e->error_code, errtxt, 128);
-  printf("X Error: %s\n", errtxt);
+  //if (e->error_code != BadWindow)
+  {
+    XGetErrorText(d, e->error_code, errtxt, 128);
+    printf("X Error: %s\n", errtxt);
+  }
 #else
   (void)d;
   (void)e;
This page took 0.020729 seconds and 4 git commands to generate.