mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-22 07:47:45 +01:00
fix window focus for minimized windows
This commit is contained in:
parent
b763dd5368
commit
22810a1093
2 changed files with 13 additions and 13 deletions
|
|
@ -197,6 +197,7 @@ namespace Dalamud.Interface.Windowing
|
||||||
{
|
{
|
||||||
// Draw the actual window contents
|
// Draw the actual window contents
|
||||||
this.Draw();
|
this.Draw();
|
||||||
|
}
|
||||||
|
|
||||||
this.IsFocused = ImGui.IsWindowFocused(ImGuiFocusedFlags.RootAndChildWindows);
|
this.IsFocused = ImGui.IsWindowFocused(ImGuiFocusedFlags.RootAndChildWindows);
|
||||||
|
|
||||||
|
|
@ -211,7 +212,6 @@ namespace Dalamud.Interface.Windowing
|
||||||
{
|
{
|
||||||
wasEscPressedLastFrame = false;
|
wasEscPressedLastFrame = false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ImGui.End();
|
ImGui.End();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ namespace Dalamud.Interface.Windowing
|
||||||
ImGuiManagedAsserts.ReportProblems(source, snapshot);
|
ImGuiManagedAsserts.ReportProblems(source, snapshot);
|
||||||
}
|
}
|
||||||
|
|
||||||
var focusedWindow = this.windows.FirstOrDefault(x => x.IsFocused && x.RespectCloseHotkey);
|
var focusedWindow = this.windows.FirstOrDefault(window => window.IsFocused && window.RespectCloseHotkey);
|
||||||
this.HasAnyFocus = focusedWindow != default;
|
this.HasAnyFocus = focusedWindow != default;
|
||||||
|
|
||||||
if (this.HasAnyFocus)
|
if (this.HasAnyFocus)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue