Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        moveresize.c 


Log Message:
Hack to fix problem with composite opacity during non-opaque move/resize.

===================================================================
RCS file: /cvs/e/e16/e/src/moveresize.c,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -3 -r1.64 -r1.65
--- moveresize.c        2 Apr 2006 09:45:40 -0000       1.64
+++ moveresize.c        7 Apr 2006 19:48:10 -0000       1.65
@@ -98,10 +98,12 @@
    for (i = 0; i < num; i++)
      {
        EwinShapeSet(gwins[i]);
-       ewin->state.moving = 1;
        EwinFloatAt(gwins[i], EoGetX(gwins[i]), EoGetY(gwins[i]));
        if (Mode_mr.mode == 0)
-          EwinUpdateOpacity(gwins[i]);
+         {
+            ewin->state.moving = 1;
+            EwinUpdateOpacity(gwins[i]);
+         }
      }
    Efree(gwins);
 
@@ -155,9 +157,11 @@
           EwinUnfloatAt(ewin, d2,
                         ewin->shape_x - (EoGetX(d2) - EoGetX(d1)),
                         ewin->shape_y - (EoGetY(d2) - EoGetY(d1)));
-       ewin->state.moving = 0;
        if (Mode_mr.mode == 0)
-          EwinUpdateOpacity(ewin);
+         {
+            ewin->state.moving = 0;
+            EwinUpdateOpacity(ewin);
+         }
      }
 
    Efree(gwins);
@@ -271,7 +275,6 @@
 
    SoundPlay("SOUND_RESIZE_START");
 
-   ewin->state.resizing = 1;
    if (Conf.movres.mode_resize < 0 || Conf.movres.mode_resize > 4)
       Conf.movres.mode_resize = 0;
    if (Conf.movres.mode_resize > 0)
@@ -283,6 +286,7 @@
      }
    else
      {
+       ewin->state.resizing = 1;
        EwinUpdateOpacity(ewin);
      }
 
@@ -388,13 +392,13 @@
    if (!ewin)
       goto done;
 
-   ewin->state.resizing = 0;
    ewin->state.show_coords = 0;
    DrawEwinShape(ewin, Conf.movres.mode_resize, ewin->shape_x, ewin->shape_y,
                 ewin->client.w, ewin->client.h, 2);
 
    if (Conf.movres.mode_resize == 0)
      {
+       ewin->state.resizing = 0;
        EwinUpdateOpacity(ewin);
      }
    else




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to