X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.cc;h=4613b9ba9a5b5da75b8a5b5a43d5fdfeeb2c96e8;hb=73f6bb1a7b6bb5f8b9cf22587722d713a1f15b59;hp=b6fcab07e94df3b18e367a5ac42e5f0c41e88a72;hpb=45c2589ef6e6576604543229dfa1582d471e6a94;p=chaz%2Fopenbox diff --git a/otk/display.cc b/otk/display.cc index b6fcab07..4613b9ba 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -11,6 +11,10 @@ extern "C" { #include +#ifdef SHAPE +#include +#endif // SHAPE + #ifdef HAVE_STDIO_H # include #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;