#include "ecore_x_private.h"
#include "Ecore_X.h"
-static void _ecore_x_error_handle(Display *d, XErrorEvent *ev);
+static int _ecore_x_error_handle(Display *d, XErrorEvent *ev);
static int _ecore_x_io_error_handle(Display *d);
static void (*_error_func)(void *data) = NULL;
XSetIOErrorHandler((XIOErrorHandler)_ecore_x_io_error_handle);
} /* _ecore_x_error_handler_init */
-static void
+static int
_ecore_x_error_handle(Display *d, XErrorEvent *ev)
{
if (d == _ecore_x_disp)
if (_error_func)
_error_func(_error_data);
}
+ return 0;
} /* _ecore_x_error_handle */
static int
static int _ecore_x_image_shm_can = -1;
static int _ecore_x_image_err = 0;
-static void
+static int
_ecore_x_image_error_handler(Display *d __UNUSED__, XErrorEvent *ev __UNUSED__)
{
_ecore_x_image_err = 1;
+ return 0;
} /* _ecore_x_image_error_handler */
static void