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
|
#ifdef DEBUG
|
||||||
char errtxt[128];
|
char errtxt[128];
|
||||||
|
|
||||||
|
if (e->error_code != BadWindow) {
|
||||||
XGetErrorText(d, e->error_code, errtxt, 128);
|
XGetErrorText(d, e->error_code, errtxt, 128);
|
||||||
printf("X Error: %s\n", errtxt);
|
printf("X Error: %s\n", errtxt);
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
(void)d;
|
(void)d;
|
||||||
(void)e;
|
(void)e;
|
||||||
|
|
Loading…
Reference in a new issue