Fix a minor off-by-one error. See #110079.

2003-04-05  Rob Adams  <robadams@ucla.edu>

	* src/place.c (center_tile_rect_in_area):  Fix a minor off-by-one
	error.  See #110079.
This commit is contained in:
Rob Adams 2003-04-06 01:22:56 +00:00 committed by Rob Adams
parent 304fae9369
commit 40ec58787f
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-04-05 Rob Adams <robadams@ucla.edu>
* src/place.c (center_tile_rect_in_area): Fix a minor off-by-one
error. See #110079.
2003-03-30 Rob Adams <robadams@ucla.edu>
* src/window.c (meta_window_move_resize_internal): When passing

View File

@ -376,10 +376,10 @@ center_tile_rect_in_area (MetaRectangle *rect,
* of windows tiled this way would center the windows
* as a group)
*/
fluff = (work_area->width % rect->width) / 2;
fluff = (work_area->width % (rect->width+1)) / 2;
rect->x = work_area->x + fluff;
fluff = (work_area->height % rect->height) / 3;
fluff = (work_area->height % (rect->height+1)) / 3;
rect->y = work_area->y + fluff;
}