discomfitor pushed a commit to branch master.

commit 42fb96459295e8825ac1ac68f0d657023ca62dce
Author: discomfitor <[email protected]>
Date:   Sun Aug 25 17:15:19 2013 +0100

    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 3695341..ad3d322 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;

-- 

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk

Reply via email to