From b403cd0598e236825299050b665390e2aec32775 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 9 Sep 2025 15:52:30 -0400 Subject: keybindings: Fix move-to-center calculation There was a 10px difference in the calculation between the (correct) center-new-windows placement and the (incorrect) move-to-center keybinding. By using the same function in both places we can make sure the calculation is consistent. --- src/core/place.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/place.c') diff --git a/src/core/place.c b/src/core/place.c index 1aafff79..854469a9 100644 --- a/src/core/place.c +++ b/src/core/place.c @@ -528,7 +528,7 @@ center_tile_rect_in_area (MetaRectangle *rect, rect->y = work_area->y + fluff; } -static void +void center_rect_in_area (MetaRectangle *rect, MetaRectangle *work_area) { -- cgit v1.2.1