Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        icccm.c 


Log Message:
Fix clients resizing while having bogus max size hint (KDE info windows).

===================================================================
RCS file: /cvs/e/e16/e/src/icccm.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -3 -r1.127 -r1.128
--- icccm.c     7 Aug 2006 20:20:15 -0000       1.127
+++ icccm.c     9 Aug 2006 02:45:02 -0000       1.128
@@ -489,8 +489,8 @@
 
        if (hint.flags & PMaxSize)
          {
-            ewin->icccm.width.max = MAX(hint.max_width, ewin->client.w);
-            ewin->icccm.height.max = MAX(hint.max_height, ewin->client.h);
+            ewin->icccm.width.max = MIN(hint.max_width, 65535);
+            ewin->icccm.height.max = MIN(hint.max_height, 65535);
          }
        else
          {
@@ -551,6 +551,11 @@
           ewin->icccm.width.min = ewin->icccm.base_w;
        if (ewin->icccm.height.min < ewin->icccm.base_h)
           ewin->icccm.height.min = ewin->icccm.base_h;
+
+       if (ewin->icccm.width.max < ewin->icccm.base_w)
+          ewin->icccm.width.max = ewin->icccm.base_w;
+       if (ewin->icccm.height.max < ewin->icccm.base_h)
+          ewin->icccm.height.max = ewin->icccm.base_h;
      }
 
    ewin->props.no_resize_h = (ewin->icccm.width.min == ewin->icccm.width.max);



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to