reduce errors list allowed

This commit is contained in:
Julien Danjou 2008-01-25 09:33:03 +01:00
parent 367b4d48fb
commit 475a9da7af
1 changed files with 1 additions and 10 deletions

View File

@ -175,17 +175,8 @@ exit_on_signal(int sig __attribute__ ((unused)))
static int
xerror(Display * edpy, XErrorEvent * ee)
{
warn("an XError occured, this may be bad\n");
if(ee->error_code == BadWindow
|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch)
|| (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable)
|| (ee->request_code == X_PolyFillRectangle
&& ee->error_code == BadDrawable)
|| (ee->request_code == X_PolySegment && ee->error_code == BadDrawable)
|| (ee->request_code == X_ConfigureWindow
&& ee->error_code == BadMatch) || (ee->request_code == X_GrabKey
&& ee->error_code == BadAccess)
|| (ee->request_code == X_CopyArea && ee->error_code == BadDrawable))
|| (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch))
return 0;
warn("fatal error: request code=%d, error code=%d\n", ee->request_code, ee->error_code);
return xerrorxlib(edpy, ee); /* may call exit */