1
0
Fork 0

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).
This commit is contained in:
Rob Adams 2004-08-15 17:32:45 +00:00 committed by Rob Adams
parent caaad4449c
commit afee4a4251
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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);