Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        ewins.c menus.c 


Log Message:
Fix menu opacity and stacking.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ewins.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -3 -r1.35 -r1.36
--- ewins.c     31 Mar 2005 19:22:40 -0000      1.35
+++ ewins.c     31 Mar 2005 19:53:01 -0000      1.36
@@ -98,7 +98,7 @@
    ewin->client.mwm_func_maximize = 1;
    ewin->client.mwm_func_close = 1;
 
-   ewin->ewmh.opacity = 0xFFFFFFFF;
+   ewin->ewmh.opacity = 0;     /* If 0, ignore */
 
    EoSetWin(ewin, ECreateWindow(VRoot.win, -10, -10, 1, 1, 1));
    ewin->win_container = ECreateWindow(EoGetWin(ewin), 0, 0, 1, 1, 0);
@@ -530,6 +530,8 @@
    if (Mode.wm.startup)
       EHintsGetInfo(ewin);     /* E restart hints */
 
+   if (ewin->ewmh.opacity == 0)
+      ewin->ewmh.opacity = 0xffffffff;
    EoSetOpacity(ewin, ewin->ewmh.opacity);
    if (!ewin->no_button_grabs)
       GrabButtonGrabs(ewin);
@@ -582,6 +584,8 @@
    WindowMatchEwinOps(ewin);   /* Window matches */
    SnapshotEwinMatch(ewin);    /* Saved settings */
 
+   if (ewin->ewmh.opacity == 0)
+      ewin->ewmh.opacity = 0xffffffff;
    EoSetOpacity(ewin, ewin->ewmh.opacity);
    GrabButtonGrabs(ewin);
 
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/menus.c,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -3 -r1.179 -r1.180
--- menus.c     29 Mar 2005 22:51:31 -0000      1.179
+++ menus.c     31 Mar 2005 19:53:02 -0000      1.180
@@ -255,7 +255,7 @@
    EoSetSticky(ewin, 1);
    EoSetLayer(ewin, 3);
    EoSetFloating(ewin, 1);
-   EoSetOpacity(ewin, OpacityExt(Conf.menus.opacity));
+   ewin->ewmh.opacity = OpacityExt(Conf.menus.opacity);
 }
 
 static void         MenuShowMasker(Menu * m);
@@ -1686,6 +1686,7 @@
    Mode.move.check = 0;                /* Bypass on-screen checks */
    MoveEwin(ewin2, EoGetX(ewin) + xo, EoGetY(ewin) + yo);
    Mode.move.check = 1;
+   FloatEwinAt(ewin2, EoGetX(ewin2), EoGetY(ewin2));
    RaiseEwin(ewin2);
    ShowEwin(ewin2);
 




-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to