From 3aee846869a50dc423a8f1a8cef8936368dd1dcd Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 15 Sep 2010 21:30:45 +0200 Subject: [PATCH] Error handling: Use libxcb's defines Since libxcb-event is deprecated, we should stop using its defines. Signed-off-by: Uli Schlachter --- event.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/event.c b/event.c index f1393341..7ad40e42 100644 --- a/event.c +++ b/event.c @@ -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",