mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-22 15:57:44 +01:00
fix: always set IsFocused to false when closing a window
This commit is contained in:
parent
395328eb17
commit
3f927ee7f0
4 changed files with 21 additions and 7 deletions
|
|
@ -76,6 +76,8 @@ namespace Dalamud.Game.Internal
|
|||
|
||||
private IntPtr AtkUnitBaseReceiveGlobalEventDetour(AtkUnitBase* thisPtr, ushort cmd, uint a3, IntPtr a4, uint* a5)
|
||||
{
|
||||
Log.Information("{0}: cmd#{1} a3#{2} - HasAnyFocus:{3}", Marshal.PtrToStringAnsi(new IntPtr(thisPtr->Name)), cmd, a3, WindowSystem.HasAnyWindowSystemFocus);
|
||||
|
||||
// "Close Addon"
|
||||
if (cmd == 12 && WindowSystem.HasAnyWindowSystemFocus)
|
||||
return IntPtr.Zero;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue