mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
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:
parent
caaad4449c
commit
afee4a4251
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user