diff options
| author | Victor Kareh <[email protected]> | 2025-09-09 15:52:30 -0400 |
|---|---|---|
| committer | Luke from DC <[email protected]> | 2025-11-01 18:55:54 +0000 |
| commit | b403cd0598e236825299050b665390e2aec32775 (patch) | |
| tree | 5c15fae1cc97b2fa19c494da0337fb0b12afeb0a /src/core/place.h | |
| parent | 3261bbdce6cc0fa494c257849cb69c640f1aeade (diff) | |
| download | marco-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.h | 3 |
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 |
