From: <enl...@li...> - 2002-11-04 19:08:46
|
Enlightenment CVS committal Author : rephorm Project : e17 Module : libs/eprog Dir : e17/libs/eprog/src Modified Files: Tag: SPLIT eprog.c Log Message: oops. make sure we call the resize handler even if we aren't shaped... =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/eprog/src/Attic/eprog.c,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -3 -r1.1.2.4 -r1.1.2.5 --- eprog.c 4 Nov 2002 17:57:32 -0000 1.1.2.4 +++ eprog.c 4 Nov 2002 19:08:43 -0000 1.1.2.5 @@ -246,6 +246,14 @@ eprog_resize(epg, event->w, event->h); } + /* call the resize handler */ + if (epg->flags.resized) + { + (epg->resize_handler)(epg, epg->resize_data); + if (!(epg->flags.shaped)) + epg->flags.resized = 0; + } + /* shape the beast */ if (epg->flags.shaped ) { @@ -259,14 +267,10 @@ epg->pmap = ecore_pixmap_new(epg->win, epg->size.w, epg->size.h, 0); epg->mask = ecore_pixmap_new(epg->win, epg->size.w, epg->size.h, 1); - /* call the resize handler */ - if (epg->flags.resized) - (epg->resize_handler)(epg, epg->resize_data); - - epg->flags.resized = 0; epg->flags.shaped = 2; } + epg->einfo = (Evas_Engine_Info_Software_X11 *) evas_engine_info_get(epg->evas); |