drop error about killing client already killed

This commit is contained in:
Julien Danjou 2008-02-08 16:05:35 +01:00
parent a4d4fedfac
commit 2eeeeaf7e4
1 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,8 @@ static int
xerror(Display *edpy, XErrorEvent *ee) xerror(Display *edpy, XErrorEvent *ee)
{ {
if(ee->error_code == BadWindow if(ee->error_code == BadWindow
|| (ee->error_code == BadMatch && ee->request_code == X_SetInputFocus)) || (ee->error_code == BadMatch && ee->request_code == X_SetInputFocus)
|| (ee->error_code == BadValue && ee->request_code == X_KillClient))
return 0; return 0;
warn("fatal error: request code=%d, error code=%d\n", ee->request_code, ee->error_code); warn("fatal error: request code=%d, error code=%d\n", ee->request_code, ee->error_code);
return xerrorxlib(edpy, ee); /* may call exit */ return xerrorxlib(edpy, ee); /* may call exit */