From 42fb96459295e8825ac1ac68f0d657023ca62dce Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sun, 25 Aug 2013 17:15:19 +0100 Subject: [PATCH] ecore-x xlib errors now only print when sync is enabled I give up. people continually complain about these and submit them as crashes, so now they're only visible if you set ECORE_X_SYNC. the next step is an #ifdef ISCOMFITOR. --- src/lib/ecore_x/xlib/ecore_x_error.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/ecore_x/xlib/ecore_x_error.c b/src/lib/ecore_x/xlib/ecore_x_error.c index 36953413cb..ad3d32257a 100644 --- a/src/lib/ecore_x/xlib/ecore_x_error.c +++ b/src/lib/ecore_x/xlib/ecore_x_error.c @@ -99,6 +99,7 @@ static int _ecore_x_error_handle(Display *d, XErrorEvent *ev) { + if (!_ecore_xlib_sync) goto skip; switch (ev->error_code) { case BadRequest: /* bad request code */ @@ -153,6 +154,7 @@ _ecore_x_error_handle(Display *d, ERR("BadImplementation"); break; } +skip: if (d == _ecore_x_disp) { _error_request_code = ev->request_code;