mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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:
parent
304fae9369
commit
40ec58787f
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user