浏览代码

Merge pull request #106349 from bruvzg/mac_resize

[macOS] Fix embedded window position when host control is moved, but not resized.
Rémi Verschelde 3 月之前
父节点
当前提交
209a446e36
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      platform/macos/editor/embedded_process_macos.mm

+ 4 - 1
platform/macos/editor/embedded_process_macos.mm

@@ -43,7 +43,10 @@
 
 void EmbeddedProcessMacOS::_notification(int p_what) {
 	switch (p_what) {
-		case NOTIFICATION_RESIZED:
+		case NOTIFICATION_ENTER_TREE: {
+			set_notify_transform(true);
+		} break;
+		case NOTIFICATION_TRANSFORM_CHANGED:
 		case NOTIFICATION_VISIBILITY_CHANGED: {
 			update_embedded_process();
 		} break;