Enlightenment CVS committal Author : englebass Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_evas Modified Files: ecore_evas_fb.c Log Message: Check whether we have input devices (Thanks Lars Munch). =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_fb.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- ecore_evas_fb.c 26 Sep 2007 15:41:50 -0000 1.29 +++ ecore_evas_fb.c 19 Nov 2007 08:41:00 -0000 1.30 @@ -1,3 +1,6 @@ +/* + * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 + */ #include "config.h" #include "Ecore.h" #include "ecore_private.h" @@ -74,12 +77,12 @@ ee = (Ecore_Evas *)l; ee->visible = 0; } - ecore_list_first_goto(ecore_evas_input_devices); - dev = ecore_list_current(ecore_evas_input_devices); - do - { - ecore_fb_input_device_listen(dev, 0); - }while((dev = ecore_list_next(ecore_evas_input_devices))); + if (ecore_evas_input_devices) + { + ecore_list_first_goto(ecore_evas_input_devices); + while ((dev = ecore_list_next(ecore_evas_input_devices))) + ecore_fb_input_device_listen(dev, 0); + } } static void @@ -99,12 +102,12 @@ else evas_damage_rectangle_add(ee->evas, 0, 0, ee->w, ee->h); } - ecore_list_first_goto(ecore_evas_input_devices); - dev = ecore_list_current(ecore_evas_input_devices); - do - { - ecore_fb_input_device_listen(dev, 1); - }while((dev = ecore_list_next(ecore_evas_input_devices))); + if (ecore_evas_input_devices) + { + ecore_list_first_goto(ecore_evas_input_devices); + while ((dev = ecore_list_next(ecore_evas_input_devices))) + ecore_fb_input_device_listen(dev, 0); + } } static int ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs