Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_cursor.c Log Message: Fix updating an animated cursor handle on an embed. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_cursor.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_cursor.c 8 Nov 2006 06:38:55 -0000 1.3 +++ ewl_cursor.c 15 Nov 2006 16:21:55 -0000 1.4 @@ -67,7 +67,6 @@ int handle; int width, height; Ewl_Widget *parent; - int old = 0; Ewl_Cursor *cursor = EWL_CURSOR(w); DENTER_FUNCTION(DLEVEL_UNSTABLE); @@ -87,13 +86,14 @@ if (!parent) DRETURN(DLEVEL_UNSTABLE); - old = EWL_EMBED(parent)->cursor; - if (cursor->handle) ewl_engine_pointer_free(EWL_EMBED(parent), cursor->handle); handle = ewl_engine_pointer_data_new(EWL_EMBED(parent), EWL_EMBED(cursor)->evas_window, width, height); + + if (EWL_EMBED(parent)->cursor == cursor->handle) + ewl_engine_pointer_set(EWL_EMBED(parent), handle); cursor->handle = handle; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs