Harden editor app windowing boundary

This commit is contained in:
2026-04-26 16:01:07 +08:00
parent f4afaf184e
commit ac626d48c4
31 changed files with 473 additions and 553 deletions

View File

@@ -2,7 +2,6 @@
#include "Bootstrap/EditorResources.h"
#include "System/SystemInteractionService.h"
#include "Composition/EditorContext.h"
#include "Windowing/Content/EditorWindowContentFactory.h"
#include "Windowing/EditorWindowManager.h"
#include "Platform/Win32/System/Win32SystemInteractionHost.h"
#include "Platform/Win32/Windowing/EditorWindow.h"
@@ -141,13 +140,10 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
hostConfig.windowStyle = kBorderlessWindowStyle;
hostConfig.primaryWindowTitle = kWindowTitle;
hostConfig.windowUserData = this;
m_windowContentFactory =
App::CreateDefaultEditorWindowContentFactory(*m_windowSystem);
m_windowHostRuntime = std::make_unique<App::EditorWindowHostRuntime>(
hostConfig,
m_repoRoot,
*m_editorContext,
*m_windowContentFactory);
m_editorContext->GetShellAsset().captureRootPath);
m_windowManager = std::make_unique<App::EditorWindowManager>(
*m_editorContext,
*m_windowSystem,
@@ -228,7 +224,6 @@ void Application::Shutdown() {
m_windowManager.reset();
}
m_windowHostRuntime.reset();
m_windowContentFactory.reset();
m_windowSystem.reset();
if (m_editorContext != nullptr) {