summaryrefslogtreecommitdiff
path: root/src/core/place.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-09-09 15:52:30 -0400
committerLuke from DC <[email protected]>2025-11-01 18:55:54 +0000
commitb403cd0598e236825299050b665390e2aec32775 (patch)
tree5c15fae1cc97b2fa19c494da0337fb0b12afeb0a /src/core/place.c
parent3261bbdce6cc0fa494c257849cb69c640f1aeade (diff)
downloadmarco-b403cd0598e236825299050b665390e2aec32775.tar.bz2
marco-b403cd0598e236825299050b665390e2aec32775.tar.xz
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.
Diffstat (limited to 'src/core/place.c')
-rw-r--r--src/core/place.c2
1 files changed, 1 insertions, 1 deletions
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)
{