Fixed resizing of ImGui windows with shared mouse input.

This commit is contained in:
Sebastian 2019-07-28 20:20:28 +01:00
parent 5e4b7084de
commit e651b0f88f

View File

@ -377,7 +377,8 @@ void SImGuiWidget::UpdateInputState()
auto& Properties = ModuleManager->GetProperties(); auto& Properties = ModuleManager->GetProperties();
auto* ContextPropxy = ModuleManager->GetContextManager().GetContextProxy(ContextIndex); 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) if (bTransparentMouseInput != bEnableTransparentMouseInput)
{ {
bTransparentMouseInput = bEnableTransparentMouseInput; bTransparentMouseInput = bEnableTransparentMouseInput;