diff options
author | Rob Adams <readams@readams.net> | 2004-08-15 17:32:45 +0000 |
---|---|---|
committer | Rob Adams <readams@src.gnome.org> | 2004-08-15 17:32:45 +0000 |
commit | afee4a42518b5e164ecbfb870c5acce0e0ea077c (patch) | |
tree | 3b2fa9c85dc58acc1e6dc652f71f8c735b65da0b | |
parent | caaad4449c89cfc8f6741677f8227e23b063532e (diff) | |
download | metacity-afee4a42518b5e164ecbfb870c5acce0e0ea077c.tar.gz |
use height and top/bottom struts to compute gap (copy/paste bug).
2004-08-15 Rob Adams <readams@readams.net>
* src/windows.c (meta_window_update_struts): use height and
top/bottom struts to compute gap (copy/paste bug).
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/window.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2004-08-15 Rob Adams <readams@readams.net> + * src/windows.c (meta_window_update_struts): use height and + top/bottom struts to compute gap (copy/paste bug). + +2004-08-15 Rob Adams <readams@readams.net> + * src/window.c (meta_window_update_struts): Allow struts larger than 1/2 the screen width/height, as long as there's a minimum sized gap between them. Patch from Bill Haneman <billh@gnome.org> diff --git a/src/window.c b/src/window.c index 478311b3..36efa5fe 100644 --- a/src/window.c +++ b/src/window.c @@ -5311,7 +5311,7 @@ meta_window_update_struts (MetaWindow *window) new_has_struts = TRUE; new_left.width = (int) struts[0] + MIN (0, gap/2); new_right.width = (int) struts[1] + MIN (0, gap/2); - gap = window->screen->width - struts[0] - struts[1]; + gap = window->screen->height - struts[2] - struts[3]; gap -= MIN_EMPTY; new_top.height = (int)struts[2] + MIN (0, gap/2); new_bottom.height = (int)struts[3] + MIN (0, gap/2); @@ -5364,7 +5364,7 @@ meta_window_update_struts (MetaWindow *window) new_has_struts = TRUE; new_left.width = (int) struts[0] + MIN (0, gap/2); new_right.width = (int) struts[1] + MIN (0, gap/2); - gap = window->screen->width - struts[0] - struts[1]; + gap = window->screen->height - struts[2] - struts[3]; gap -= MIN_EMPTY; new_top.height = (int)struts[2] + MIN (0, gap/2); new_bottom.height = (int)struts[3] + MIN (0, gap/2); |