X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.cc;h=4613b9ba9a5b5da75b8a5b5a43d5fdfeeb2c96e8;hb=633df648c9d04c6225fba3004c93e497301293bd;hp=c30855d6b865929e8916d01024cf8aa27e61c23d;hpb=c5f62494f14629797c109acc0b3048203a1adb6a;p=chaz%2Fopenbox diff --git a/otk/display.cc b/otk/display.cc index c30855d6..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 @@ -41,9 +45,9 @@ namespace otk { Display *OBDisplay::display = (Display*) 0; bool OBDisplay::_shape = false; -int OBDisplay::_shape_event_basep; +int OBDisplay::_shape_event_basep = 0; bool OBDisplay::_xinerama = false; -int OBDisplay::_xinerama_event_basep; +int OBDisplay::_xinerama_event_basep = 0; unsigned int OBDisplay::_mask_list[8]; OBDisplay::ScreenInfoList OBDisplay::_screenInfoList; BGCCache *OBDisplay::_gccache = (BGCCache*) 0; @@ -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;