abort() on X errors that aren't BadWindow errors
This commit is contained in:
parent
13f1f39f01
commit
19eb13679d
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
|
|||
{
|
||||
XGetErrorText(d, e->error_code, errtxt, 128);
|
||||
printf("X Error: %s\n", errtxt);
|
||||
if (e->error_code != BadWindow)
|
||||
abort();
|
||||
}
|
||||
#else
|
||||
(void)d;
|
||||
|
|
Loading…
Reference in a new issue