mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
don't allow window additions for multi-monitor windows
This commit is contained in:
parent
a690ccbeef
commit
27b6dfcbea
1 changed files with 10 additions and 0 deletions
|
|
@ -378,6 +378,16 @@ public abstract class Window
|
||||||
{
|
{
|
||||||
ImGuiNativeAdditions.igCustom_WindowSetInheritNoInputs(this.internalIsClickthrough);
|
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
|
// Draw the actual window contents
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue