1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

macos: place windows in the center of the screen

previously we'd place relative to the top left of the screen,
but that looks ridiculous on a 49" ultrawide monitor.
This commit is contained in:
Wez Furlong 2019-11-08 20:24:26 -08:00
parent 6da7b3ecd0
commit ea75474650

View File

@ -297,7 +297,8 @@ impl Window {
);
window.setReleasedWhenClosed_(NO);
window.cascadeTopLeftFromPoint_(NSPoint::new(20.0, 20.0));
// window.cascadeTopLeftFromPoint_(NSPoint::new(20.0, 20.0));
window.center();
window.setTitle_(*nsstring(&name));
window.setAcceptsMouseMovedEvents_(YES);