Hello!
I'm attaching a patch for e_border.c (e17/apps/e/src/bin). The problem
it *should* solve is that when you get a window which has its max height
and width flags set, resizing it 'by hand' checks whether that
requirements are still met, but they are not checked when you maximize
the window. This patch calls _e_border_resize_limit before effective
resizement, so that the window is still moved to zone's x and y index,
but is resized to its max allowed width and height if set, or zone's
width and height if not set.
Can you please have a look at it?
Cheers!
--
ilLogict
Etudiant:1A, E.S.I.A.L., Nancy, France
Student: Y1, E.S.I.A.L., Nancy, France
Website: http://illogict.online.fr
E-Mail: [EMAIL PROTECTED]
ICQ: #74274856
AIM: illogict
MSN: [EMAIL PROTECTED]
Yahoo: illogict
Jabber: [EMAIL PROTECTED]
Mobile: +33 6 81921083
Message: Enlightenment DR17 oune ! Et honte à ceux qui ne sont pas
d'accord !
Message: Enlightenment DR17 rocks! Shame on whoever doesn't agree!
Index: e_border.c
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.151
diff -u -r1.151 e_border.c
--- e_border.c 24 Apr 2005 21:11:43 -0000 1.151
+++ e_border.c 25 Apr 2005 18:51:21 -0000
@@ -922,6 +922,8 @@
if ((bd->shaded) || (bd->shading)) return;
if (!bd->maximized)
{
+ int new_w, new_h;
+
// printf("MAXIMIZE!!\n");
bd->saved.x = bd->x;
bd->saved.y = bd->y;
@@ -932,7 +934,10 @@
/* FIXME maximize intelligently */
e_border_raise(bd);
- e_border_move_resize(bd, bd->zone->x, bd->zone->y, bd->zone->w,
bd->zone->h);
+ new_w = bd->zone->w;
+ new_h = bd->zone->h;
+ _e_border_resize_limit(bd, &new_w, &new_h);
+ e_border_move_resize(bd, bd->zone->x, bd->zone->y, new_w, new_h);
bd->maximized = 1;
bd->changes.pos = 1;
bd->changes.size = 1;