From 33567d9f5659ae0dda9ac033fd40ba3b85b3169a Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 14 Jul 2006 20:01:48 +0000 Subject: [PATCH] dan's patch for maximize bug! fix! :) SVN revision: 23920 --- TODO | 2 -- src/bin/e_border.c | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index 78d8655a4..63919e9a2 100644 --- a/TODO +++ b/TODO @@ -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 diff --git a/src/bin/e_border.c b/src/bin/e_border.c index b8d5b8bba..6d2460da4 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -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: