summaryrefslogtreecommitdiff
path: root/src/core/place.h
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.h
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.h')
-rw-r--r--src/core/place.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/place.h b/src/core/place.h
index 468e3a39..6a2d0ff4 100644
--- a/src/core/place.h
+++ b/src/core/place.h
@@ -34,4 +34,7 @@ void meta_window_place (MetaWindow *window,
int *new_x,
int *new_y);
+void center_rect_in_area (MetaRectangle *rect,
+ MetaRectangle *work_area);
+
#endif