Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        iconify.c timestamp.h 


Log Message:
Wed Jul 23 20:03:28 CEST 2003
(Kim)

Fix "premature" commit of fix to deiconification problem :)

===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/iconify.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -3 -r1.68 -r1.69
--- iconify.c   20 Jul 2003 18:02:16 -0000      1.68
+++ iconify.c   23 Jul 2003 18:09:41 -0000      1.69
@@ -274,7 +274,7 @@
 {
    static int          call_depth = 0;
    Iconbox            *ib;
-   int                 x1, y1, x2, y2, dx, dy;
+   int                 x, y, dx, dy;
 
    EDBUG(6, "DeIconifyEwin");
    call_depth++;
@@ -288,31 +288,25 @@
        ib = SelectIconboxForEwin(ewin);
        RemoveMiniIcon(ewin);
 
-       ScreenGetGeometry(ewin->x, ewin->y, &x1, &y1, &x2, &y2);
-       /* Allow 75% of client (container) offscreen */
-       dx = 3 * ewin->w / 4;
-       dy = 3 * ewin->h / 4;
-       x2 = x1 + x2 - (ewin->w - dx);
-       y2 = y1 + y2 - (ewin->h - dy);
-       x1 -= dx;
-       y1 -= dy;
-       dx = dy = 0;
-       if (ewin->x < x1)
-          dx = x1 - ewin->x;
-       if (ewin->x > x2)
-          dx = x2 - ewin->x;
-       if (ewin->y < y1)
-          dy = y1 - ewin->y;
-       if (ewin->y > y2)
-          dy = y2 - ewin->y;
+       dx = ewin->w / 2;
+       dy = ewin->h / 2;
+       x = (ewin->x + dx) % root.w;
+       if (x < 0)
+          x += root.w;
+       x -= dx;
+       y = (ewin->y + dy) % root.h;
+       if (y < 0)
+          y += root.h;
+       y -= dy;
+
+       dx = x - ewin->x;
+       dy = y - ewin->y;
 
        if (!ewin->sticky)
-         {
-            MoveEwinToDesktopAt(ewin, desks.current,
-                                ewin->x + dx, ewin->y + dy);
-         }
+          MoveEwinToDesktopAt(ewin, desks.current, ewin->x + dx, ewin->y + dy);
        else
-          ConformEwinToDesktop(ewin);
+          MoveEwin(ewin, ewin->x + dx, ewin->y + dy);
+
        AUDIO_PLAY("SOUND_DEICONIFY");
        if (ib)
          {
@@ -326,7 +320,7 @@
        mode.destroy = 1;
        if (ewin->has_transients)
          {
-            EWin              **lst;
+            EWin              **lst, *e;
             int                 i, num;
 
             lst = ListTransientsFor(ewin->client.win, &num);
@@ -334,20 +328,19 @@
               {
                  for (i = 0; i < num; i++)
                    {
-                      if (lst[i]->iconified == 4)
-                        {
-                           if (!lst[i]->sticky)
-                             {
-                                MoveEwinToDesktopAt(lst[i], desks.current,
-                                                    lst[i]->x + dx,
-                                                    lst[i]->y + dy);
-                             }
-                           else
-                              ConformEwinToDesktop(lst[i]);
-                           RaiseEwin(lst[i]);
-                           ShowEwin(lst[i]);
-                           lst[i]->iconified = 0;
-                        }
+                      e = lst[i];
+
+                      if (e->iconified != 4)
+                         continue;
+
+                      if (!e->sticky)
+                         MoveEwinToDesktopAt(e, desks.current,
+                                             e->x + dx, e->y + dy);
+                      else
+                         MoveEwin(e, e->x + dx, e->y + dy);
+                      RaiseEwin(e);
+                      ShowEwin(e);
+                      e->iconified = 0;
                    }
                  HintsSetClientList();
                  Efree(lst);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/timestamp.h,v
retrieving revision 1.519
retrieving revision 1.520
diff -u -3 -r1.519 -r1.520
--- timestamp.h 20 Jul 2003 18:17:08 -0000      1.519
+++ timestamp.h 23 Jul 2003 18:09:41 -0000      1.520
@@ -1 +1 @@
-#define E_CHECKOUT_DATE "$Date: 2003/07/20 18:17:08 $"
+#define E_CHECKOUT_DATE "$Date: 2003/07/23 18:09:41 $"




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to