summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Adams <readams@readams.net>2004-08-15 17:32:45 +0000
committerRob Adams <readams@src.gnome.org>2004-08-15 17:32:45 +0000
commitafee4a42518b5e164ecbfb870c5acce0e0ea077c (patch)
tree3b2fa9c85dc58acc1e6dc652f71f8c735b65da0b
parentcaaad4449c89cfc8f6741677f8227e23b063532e (diff)
downloadmetacity-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--ChangeLog5
-rw-r--r--src/window.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 838c6288..1cc0203e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);