do northwest resize when maximizing and fullscreening to avoid potential

2003-08-20  Rob Adams  <robadams@ucla.edu>

	* src/constraints.c (meta_window_constrain): do northwest resize
	when maximizing and fullscreening to avoid potential "off-by-one"
	problems.
This commit is contained in:
Rob Adams 2003-08-21 04:27:11 +00:00 committed by Rob Adams
parent 23b5ea0eee
commit a644753073
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2003-08-20 Rob Adams <robadams@ucla.edu>
* src/constraints.c (meta_window_constrain): do northwest resize
when maximizing and fullscreening to avoid potential "off-by-one"
problems.
2003-08-19 Rob Adams <robadams@uclu.edu>
* src/stack.c (get_standalone_layer): put windows with

View File

@ -1371,9 +1371,9 @@ meta_window_constrain (MetaWindow *window,
current = *new;
constrain_resize_hcenter (window, &info, &current,
(info.xinerama->width - OUTER_WIDTH (current)) / 2,
new);
constrain_resize_right (window, &info, &current,
info.xinerama->width - OUTER_WIDTH (current),
new);
current = *new;
constrain_move (window, &info, &current,
@ -1389,9 +1389,9 @@ meta_window_constrain (MetaWindow *window,
current = *new;
constrain_resize_hcenter (window, &info, &current,
(info.work_area_xinerama.width - OUTER_WIDTH (current)) / 2,
new);
constrain_resize_right (window, &info, &current,
info.work_area_xinerama.width - OUTER_WIDTH (current),
new);
current = *new;
constrain_move (window, &info, &current,