Error handling: Use libxcb's defines

Since libxcb-event is deprecated, we should stop using its defines.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-09-15 21:30:45 +02:00
parent b0f125a664
commit 3aee846869
1 changed files with 5 additions and 5 deletions

10
event.c
View File

@ -758,13 +758,13 @@ static void
xerror(xcb_generic_error_t *e)
{
/* ignore this */
if(e->error_code == XCB_EVENT_ERROR_BAD_WINDOW
|| (e->error_code == XCB_EVENT_ERROR_BAD_MATCH
if(e->error_code == XCB_WINDOW
|| (e->error_code == XCB_MATCH
&& e->major_code == XCB_SET_INPUT_FOCUS)
|| (e->error_code == XCB_EVENT_ERROR_BAD_VALUE
|| (e->error_code == XCB_VALUE
&& e->major_code == XCB_KILL_CLIENT)
|| (e->major_code == XCB_CONFIGURE_WINDOW
&& e->error_code == XCB_EVENT_ERROR_BAD_MATCH))
|| (e->error_code == XCB_MATCH
&& e->major_code == XCB_CONFIGURE_WINDOW))
return;
warn("X error: request=%s, error=%s",