Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        size.c 


Log Message:
Inhibit unmaximizing in various situations, e.g. when shaded.

===================================================================
RCS file: /cvs/e/e16/e/src/size.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- size.c      13 Jan 2007 19:14:28 -0000      1.53
+++ size.c      16 Mar 2007 03:48:48 -0000      1.54
@@ -44,6 +44,11 @@
    if (!ewin)
       return;
 
+   if (ewin->state.inhibit_max_hor && (direction & MAX_HOR))
+      return;
+   if (ewin->state.inhibit_max_ver && (direction & MAX_VER))
+      return;
+
    if (ewin->state.maximized_horz || ewin->state.maximized_vert)
      {
        EwinMoveResize(ewin, ewin->lx, ewin->ly, ewin->lw, ewin->lh);
@@ -55,11 +60,6 @@
        ewin->state.maximized_vert = 0;
        goto done;
      }
-
-   if (ewin->state.inhibit_max_hor && (direction & MAX_HOR))
-      return;
-   if (ewin->state.inhibit_max_ver && (direction & MAX_VER))
-      return;
 
    type = MAX_ABSOLUTE;                /* Select default */
    if (!resize_type)



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to