dont show badwindow errors

This commit is contained in:
Dana Jansens 2002-11-06 10:39:50 +00:00
parent 395b9e155a
commit 83322ce3be

View file

@ -54,8 +54,10 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
#ifdef DEBUG #ifdef DEBUG
char errtxt[128]; char errtxt[128];
XGetErrorText(d, e->error_code, errtxt, 128); if (e->error_code != BadWindow) {
printf("X Error: %s\n", errtxt); XGetErrorText(d, e->error_code, errtxt, 128);
printf("X Error: %s\n", errtxt);
}
#else #else
(void)d; (void)d;
(void)e; (void)e;