Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        pager.c 


Log Message:
Fix pager sizing at startup.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/pager.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- pager.c     14 Dec 2003 17:24:34 -0000      1.51
+++ pager.c     21 Dec 2003 12:08:01 -0000      1.52
@@ -283,7 +283,7 @@
    if (ewin)
      {
        char                s[4096];
-       int                 ax, ay, pw, ph;
+       int                 ax, ay;
        Snapshot           *sn;
        double              aspect;
 
@@ -304,22 +304,15 @@
        /* get the size right damnit! */
        if (sn)
          {
-            if (sn->use_wh)
-               PagerRedraw(p, 1);
+            ResizeEwin(ewin, ewin->client.w, ewin->client.h);
          }
-       /* no snapshots ? first time ? make a row on the bottom left up */
        else
          {
-            MoveEwin(ewin, 0,
-                     root.h - ((mode.numdesktops - p->desktop) * ewin->h));
-            /* force a redraw & resize */
-            pw = p->w;
-            ph = p->h;
-            p->w = 0;
-            p->h = 0;
-            PagerResize(p, pw, ph);
-            PagerRedraw(p, 1);
+            /* no snapshots ? first time ? make a row on the bottom left up */
+            MoveResizeEwin(ewin, 0, root.h - (mode.numdesktops - p->desktop) * 
ewin->h,
+                           ewin->client.w, ewin->client.h);
          }
+       PagerRedraw(p, 1);
        /* show the pager ewin */
        ShowEwin(ewin);
        if (((sn) && (sn->use_sticky) && (sn->sticky)) || (!sn))




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to