diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-13 17:23:51 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-13 17:23:51 +0100 |
commit | 937fa7b04a35343cb2fac907af666607b5b85b41 (patch) | |
tree | 817b3c3dac477b1789753e886d956220d180929a /platform/macos | |
parent | bd57d2de18347fb24b13798ecc5d8f147c3106ce (diff) | |
parent | 7e5bce7090c6a7860b62185b4f0c97c38c33b76d (diff) | |
download | redot-engine-937fa7b04a35343cb2fac907af666607b5b85b41.tar.gz |
Merge pull request #87465 from bruvzg/macos_demini_vis_state
[macOS] Update window visible state on deminiaturize.
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/godot_window_delegate.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/macos/godot_window_delegate.mm b/platform/macos/godot_window_delegate.mm index 93396b0e01..2d83b46007 100644 --- a/platform/macos/godot_window_delegate.mm +++ b/platform/macos/godot_window_delegate.mm @@ -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); |