[macOS] Fix embedded window position when host control is moved, but not resized.

This commit is contained in:
Pāvels Nadtočajevs 2025-05-13 14:17:45 +03:00
parent af62a09b42
commit ddefe73c41
No known key found for this signature in database
GPG key ID: 8413210218EF35D2

View file

@ -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;