Skip to content

Commit d5af99b

Browse files
authored
feat(ui/window): center window (#47)
Signed-off-by: Tony Gorez <[email protected]>
1 parent 4d51db6 commit d5af99b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/ui/window/appkit/window_appkit.mm

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ auto show() -> void {
4747
NSWindowController *controller = [window_ windowController];
4848
[controller showWindow:nil];
4949
[window_ makeKeyAndOrderFront:controller];
50+
[window_ center];
5051
}
5152

5253
auto size(const unsigned int width, const unsigned int height) -> void {

0 commit comments

Comments
 (0)