mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +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:
parent
6da7b3ecd0
commit
ea75474650
@ -297,7 +297,8 @@ impl Window {
|
|||||||
);
|
);
|
||||||
|
|
||||||
window.setReleasedWhenClosed_(NO);
|
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.setTitle_(*nsstring(&name));
|
||||||
window.setAcceptsMouseMovedEvents_(YES);
|
window.setAcceptsMouseMovedEvents_(YES);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user