Skip to content

Commit

Permalink
Merge pull request #82357 from bruvzg/mac_fix_bl
Browse files Browse the repository at this point in the history
[macOS] Fix borderless mode on macOS 13.6+.
  • Loading branch information
akien-mga committed Oct 3, 2023
2 parents 0358abb + 873d407 commit 124f898
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/macos/display_server_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3225,7 +3225,9 @@
} break;
case WINDOW_FLAG_BORDERLESS: {
// OrderOut prevents a lose focus bug with the window.
bool was_visible = false;
if ([wd.window_object isVisible]) {
was_visible = true;
[wd.window_object orderOut:nil];
}
wd.borderless = p_enabled;
Expand All @@ -3240,7 +3242,7 @@
[wd.window_object setFrame:frameRect display:NO];
}
_update_window_style(wd);
if ([wd.window_object isVisible]) {
if (was_visible || [wd.window_object isVisible]) {
if ([wd.window_object isMiniaturized]) {
return;
} else if (wd.no_focus) {
Expand Down

0 comments on commit 124f898

Please sign in to comment.