abort() on X errors that aren't BadWindow errors

This commit is contained in:
Dana Jansens 2003-01-07 07:24:39 +00:00
parent 13f1f39f01
commit 19eb13679d

View file

@ -65,6 +65,8 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
{ {
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);
if (e->error_code != BadWindow)
abort();
} }
#else #else
(void)d; (void)d;