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.
This commit is contained in:
discomfitor 2013-08-25 17:15:19 +01:00
parent 26a6b01369
commit 42fb964592
1 changed files with 2 additions and 0 deletions

View File

@ -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;