dont show badwindow errors
This commit is contained in:
parent
395b9e155a
commit
83322ce3be
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue