diff --git a/Tweaks/HighResScreenshots.cs b/Tweaks/HighResScreenshots.cs index 2172161b..65e0afc0 100644 --- a/Tweaks/HighResScreenshots.cs +++ b/Tweaks/HighResScreenshots.cs @@ -182,6 +182,8 @@ protected override void Enable() { // IsInputIDClicked is called from Client::UI::UIInputModule.CheckScreenshotState, which is polled // We change the res when the button is pressed and tell it to take a screenshot the next time it is polled private byte IsInputIDClickedDetour(nint a1, int a2) { + if (a2 == ScreenshotButton && Config.UseReShade && Framework.Instance()->WindowInactive) return 0; + var orig = isInputIDClickedHook.Original(a1, a2); if (AgentModule.Instance()->GetAgentByInternalId(AgentId.Configkey)->IsAgentActive()) return orig; @@ -271,7 +273,7 @@ private byte IsInputIDClickedDetour(nint a1, int a2) { SendInput.KeyUp(Config.ReShadeMainKey); }, delayTicks: 1); - return 1; + return 0; } return 1;