feat(new_editor): wire project, inspector, and viewport runtime

This commit is contained in:
2026-04-19 00:03:25 +08:00
parent 8257403036
commit a57b322bc7
168 changed files with 14829 additions and 2507 deletions

View File

@@ -336,9 +336,7 @@ void EditorWindowWorkspaceCoordinator::EndGlobalTabDragSession() {
if (EditorWindow* ownerWindow = m_hostRuntime.FindWindow(m_globalTabDragSession.panelWindowId);
ownerWindow != nullptr) {
if (GetCapture() == ownerWindow->GetHwnd()) {
ReleaseCapture();
}
ownerWindow->ReleasePointerCapture(EditorWindowPointerCaptureOwner::GlobalTabDrag);
if (!ownerWindow->IsClosing()) {
ownerWindow->ResetInteractionState();
}
@@ -491,7 +489,8 @@ bool EditorWindowWorkspaceCoordinator::TryStartGlobalTabDrag(
request.screenPoint,
dragHotspot);
UpdateGlobalTabDragOwnerWindowPosition();
SetCapture(detachedWindow->GetHwnd());
detachedWindow->AcquirePointerCapture(
EditorWindowPointerCaptureOwner::GlobalTabDrag);
SetForegroundWindow(detachedWindow->GetHwnd());
LogRuntimeTrace(
"drag",
@@ -539,9 +538,7 @@ bool EditorWindowWorkspaceCoordinator::TryStartGlobalTabDrag(
request.screenPoint,
dragHotspot);
UpdateGlobalTabDragOwnerWindowPosition();
if (sourceWindow.GetHwnd() != nullptr) {
SetCapture(sourceWindow.GetHwnd());
}
sourceWindow.AcquirePointerCapture(EditorWindowPointerCaptureOwner::GlobalTabDrag);
LogRuntimeTrace(
"drag",
"started global tab drag from detached window '" +