feat(new_editor): wire project, inspector, and viewport runtime
This commit is contained in:
@@ -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 '" +
|
||||
|
||||
Reference in New Issue
Block a user