Skip to content

Commit

Permalink
feat(ui/window): center window (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Gorez <[email protected]>
  • Loading branch information
tony-go authored Nov 21, 2024
1 parent 4d51db6 commit d5af99b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/window/appkit/window_appkit.mm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ auto show() -> void {
NSWindowController *controller = [window_ windowController];
[controller showWindow:nil];
[window_ makeKeyAndOrderFront:controller];
[window_ center];
}

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

0 comments on commit d5af99b

Please sign in to comment.