From 27b6dfcbea30c94ff65361883f61cf9bd3de2b9f Mon Sep 17 00:00:00 2001 From: goat Date: Thu, 9 Jan 2025 21:58:23 +0100 Subject: [PATCH] don't allow window additions for multi-monitor windows --- Dalamud/Interface/Windowing/Window.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dalamud/Interface/Windowing/Window.cs b/Dalamud/Interface/Windowing/Window.cs index 6219de852..79bb63685 100644 --- a/Dalamud/Interface/Windowing/Window.cs +++ b/Dalamud/Interface/Windowing/Window.cs @@ -378,6 +378,16 @@ public abstract class Window { ImGuiNativeAdditions.igCustom_WindowSetInheritNoInputs(this.internalIsClickthrough); + // Not supported yet on non-main viewports + if ((this.internalIsPinned || this.internalIsClickthrough || this.internalAlpha.HasValue) && + ImGui.GetWindowViewport().ID != ImGui.GetMainViewport().ID) + { + this.internalAlpha = null; + this.internalIsPinned = false; + this.internalIsClickthrough = false; + this.presetDirty = true; + } + // Draw the actual window contents try {