From e651b0f88f56d4eca6d4fa05b731a4ddeedd46d2 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 28 Jul 2019 20:20:28 +0100 Subject: [PATCH] Fixed resizing of ImGui windows with shared mouse input. --- Source/ImGui/Private/Widgets/SImGuiWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/ImGui/Private/Widgets/SImGuiWidget.cpp b/Source/ImGui/Private/Widgets/SImGuiWidget.cpp index 1fa872f..bfc617e 100644 --- a/Source/ImGui/Private/Widgets/SImGuiWidget.cpp +++ b/Source/ImGui/Private/Widgets/SImGuiWidget.cpp @@ -377,7 +377,8 @@ void SImGuiWidget::UpdateInputState() auto& Properties = ModuleManager->GetProperties(); auto* ContextPropxy = ModuleManager->GetContextManager().GetContextProxy(ContextIndex); - const bool bEnableTransparentMouseInput = Properties.IsMouseInputShared() && !ContextPropxy->IsMouseHoveringAnyWindow(); + const bool bEnableTransparentMouseInput = Properties.IsMouseInputShared() + && !(ContextPropxy->IsMouseHoveringAnyWindow() || ContextPropxy->HasActiveItem()); if (bTransparentMouseInput != bEnableTransparentMouseInput) { bTransparentMouseInput = bEnableTransparentMouseInput;