dan's patch for maximize bug! fix! :)

SVN revision: 23920
This commit is contained in:
Carsten Haitzler 2006-07-14 20:01:48 +00:00
parent 9fc7c4ad64
commit 33567d9f56
2 changed files with 8 additions and 4 deletions

2
TODO
View File

@ -32,8 +32,6 @@ Some of the things (in very short form) that need to be done to E17...
* BUG: Hiding the label of e_widget_slider causes the slider line to disappear
* BUG: Window locks should be honored by the pager (e.g. Lock me from
changing position)
* BUG: Doing an action to vertically maximize/minimize a window results in
in the window being horizontally maximized/minimized as well (& vice versa)
* BUG: in screen resolution change dialog the flip config is a pair of raidio
buttons. it should be a pair of checkboxes to turn that flip bit on or
off etc. etc. this means adding check icon widgets too liek radio icons too

View File

@ -1691,8 +1691,14 @@ e_border_maximize(E_Border *bd, E_Maximize max)
x1 = bd->zone->x + (bd->zone->w - w) / 2;
/* center y-direction */
y1 = bd->zone->y + (bd->zone->h - h) / 2;
e_border_move_resize(bd, x1, y1, w, h);
/* FULLSCREEN doesn't work with VERTICAL/HORIZONTAL */
if ((max & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_BOTH)
e_border_move_resize(bd, x1, y1, w, h);
else if ((max & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_VERTICAL)
e_border_move_resize(bd, bd->x, y1, bd->w, h);
else if ((max & E_MAXIMIZE_DIRECTION) == E_MAXIMIZE_HORIZONTAL)
e_border_move_resize(bd, x1, bd->y, w, bd->h);
max |= E_MAXIMIZE_BOTH;
break;
case E_MAXIMIZE_SMART: