Merge pull request #87465 from bruvzg/macos_demini_vis_state

[macOS] Update window visible state on deminiaturize.
This commit is contained in:
Rémi Verschelde 2024-02-13 17:23:51 +01:00
commit 937fa7b04a
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@
}
DisplayServerMacOS::WindowData &wd = ds->get_window(window_id);
wd.is_visible = ([wd.window_object occlusionState] & NSWindowOcclusionStateVisible) && [wd.window_object isVisible];
if ([wd.window_object isKeyWindow]) {
wd.focused = true;
ds->set_last_focused_window(window_id);