Browse Source

[macOS] Update window visible state on deminiaturize.

bruvzg 1 year ago
parent
commit
7e5bce7090
1 changed files with 1 additions and 0 deletions
  1. 1 0
      platform/macos/godot_window_delegate.mm

+ 1 - 0
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);