[macOS] Update window visible state on deminiaturize.
(cherry picked from commit 7e5bce7090
)
This commit is contained in:
parent
592fda3a8d
commit
31bdc32b4d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue