Skip to content

Commit

Permalink
hiro: cocoa: make sure makeKeyAndOrderFront is called to make the mai…
Browse files Browse the repository at this point in the history
…n presentation window the key window
  • Loading branch information
JamesDunne committed Nov 9, 2024
1 parent 854cb9c commit 2d25572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiro/cocoa/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ auto pWindow::setTitle(const string& text) -> void {
auto pWindow::setVisible(bool visible) -> void {
@autoreleasepool {
if(visible) {
if ([cocoaWindow isVisible] == NO)
//if ([cocoaWindow isVisible] == NO)
[cocoaWindow makeKeyAndOrderFront:nil];
} else [cocoaWindow orderOut:nil];
}
Expand Down

0 comments on commit 2d25572

Please sign in to comment.