From: Dana Jansens Date: Wed, 6 Nov 2002 10:39:50 +0000 (+0000) Subject: dont show badwindow errors X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=83322ce3be2e22772f8b0669e393a07ecb78ab68;p=chaz%2Fopenbox dont show badwindow errors --- diff --git a/otk/display.cc b/otk/display.cc index b6fcab07..37203643 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -54,8 +54,10 @@ 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;