mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[macOS] Update window visible state on deminiaturize.
This commit is contained in:
parent
0bcc0e92b3
commit
7e5bce7090
1 changed files with 1 additions and 0 deletions
|
@ -362,6 +362,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
DisplayServerMacOS::WindowData &wd = ds->get_window(window_id);
|
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]) {
|
if ([wd.window_object isKeyWindow]) {
|
||||||
wd.focused = true;
|
wd.focused = true;
|
||||||
ds->set_last_focused_window(window_id);
|
ds->set_last_focused_window(window_id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue