new_editor: reduce app shell capture plumbing
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#include <windowsx.h>
|
||||
#include "Composition/EditorShellPointerInteraction.h"
|
||||
#include <XCEngine/UI/DrawData.h>
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
@@ -730,13 +729,12 @@ void EditorWindow::SyncShellCapturedPointerButtonsFromSystemState() {
|
||||
}
|
||||
|
||||
void EditorWindow::ApplyShellRuntimePointerCapture() {
|
||||
const EditorShellPointerOwner owner = m_runtime->GetShellRuntime().GetPointerOwner();
|
||||
if (IsShellPointerOwner(owner)) {
|
||||
if (m_runtime->GetShellRuntime().HasShellInteractiveCapture()) {
|
||||
AcquirePointerCapture(EditorWindowPointerCaptureOwner::Shell);
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsHostedContentPointerOwner(owner)) {
|
||||
if (m_runtime->GetShellRuntime().HasHostedContentCapture()) {
|
||||
AcquirePointerCapture(EditorWindowPointerCaptureOwner::HostedContent);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user