Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_error.c Log Message: only handle errors for ecore's display handle - not others :) =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_error.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ecore_x_error.c 2 Mar 2005 07:06:44 -0000 1.4 +++ ecore_x_error.c 22 Jun 2005 06:47:44 -0000 1.5 @@ -73,17 +73,23 @@ } static void -_ecore_x_error_handle(Display *d __UNUSED__, XErrorEvent *ev) +_ecore_x_error_handle(Display *d, XErrorEvent *ev) { - _error_request_code = ev->request_code; - _error_code = ev->error_code; - if (_error_func) _error_func(_error_data); + if (d == _ecore_x_disp) + { + _error_request_code = ev->request_code; + _error_code = ev->error_code; + if (_error_func) _error_func(_error_data); + } } static int -_ecore_x_io_error_handle(Display *d __UNUSED__) +_ecore_x_io_error_handle(Display *d) { - if (_io_error_func) _io_error_func(_io_error_data); - else exit(-1); + if (d == _ecore_x_disp) + { + if (_io_error_func) _io_error_func(_io_error_data); + else exit(-1); + } return 0; } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs