Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: pager.c Log Message: Remove more unnecessary pager updates. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/pager.c,v retrieving revision 1.138 retrieving revision 1.139 diff -u -3 -r1.138 -r1.139 --- pager.c 14 May 2005 20:00:39 -0000 1.138 +++ pager.c 14 May 2005 20:48:29 -0000 1.139 @@ -835,26 +835,15 @@ if (!Conf.pagers.enable) return; - if (EoIsSticky(ewin)) - { - int i; - - for (i = 0; i < Conf.desks.num; i++) - RedrawPagersForDesktop(i, 0); - ForceUpdatePagersForDesktop(EoGetDesk(ewin)); - } - else if (EoGetDesk(ewin) != DesksGetCurrent()) - { - RedrawPagersForDesktop(EoGetDesk(ewin), 0); - ForceUpdatePagersForDesktop(EoGetDesk(ewin)); - } - else - { - if ((EoGetX(ewin) < 0) || (EoGetY(ewin) < 0) - || ((EoGetX(ewin) + EoGetW(ewin)) > VRoot.w) - || ((EoGetY(ewin) + EoGetH(ewin)) > VRoot.h)) - RedrawPagersForDesktop(EoGetDesk(ewin), 3); - } +#if 0 + /* We could save a bit of time by checking if other areas are affected */ + if ((EoGetX(ewin) < 0) || (EoGetY(ewin) < 0) + || ((EoGetX(ewin) + EoGetW(ewin)) > VRoot.w) + || ((EoGetY(ewin) + EoGetH(ewin)) > VRoot.h)) + RedrawPagersForDesktop(EoGetDesk(ewin), 3); +#else + RedrawPagersForDesktop(EoGetDesk(ewin), 3); +#endif ForceUpdatePagersForDesktop(EoGetDesk(ewin)); } ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs