new_editor: make window sync rollback safe

This commit is contained in:
2026-04-17 22:32:58 +08:00
parent 6f6c8877fa
commit ba8437d919
7 changed files with 419 additions and 6 deletions

View File

@@ -559,6 +559,7 @@ EditorWindow* EditorWindowWorkspaceCoordinator::FindTopmostWindowAtScreenPoint(
const HWND rootWindow = GetAncestor(hitWindow, GA_ROOT);
if (EditorWindow* window = m_hostRuntime.FindWindow(rootWindow);
window != nullptr &&
!window->IsClosing() &&
window->GetWindowId() != excludedWindowId) {
return window;
}
@@ -568,6 +569,7 @@ EditorWindow* EditorWindowWorkspaceCoordinator::FindTopmostWindowAtScreenPoint(
EditorWindow* const window = it->get();
if (window == nullptr ||
window->GetHwnd() == nullptr ||
window->IsClosing() ||
window->GetWindowId() == excludedWindowId) {
continue;
}