mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -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
|
||||
|
@ -377,9 +377,9 @@ center_tile_rect_in_area (MetaRectangle *rect,
|
||||
* 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