diff --git a/ChangeLog b/ChangeLog index 838c62883..1cc0203e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-08-15 Rob Adams + + * src/windows.c (meta_window_update_struts): use height and + top/bottom struts to compute gap (copy/paste bug). + 2004-08-15 Rob Adams * src/window.c (meta_window_update_struts): Allow struts larger diff --git a/src/window.c b/src/window.c index 478311b3e..36efa5fe5 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);