fix: 修复最小化时候截图失败导致截图器没法正常截图,导致主界面卡顿的问题 #2939 #2851

This commit is contained in:
辉鸭蛋
2026-03-22 02:13:55 +08:00
parent b0b13cb36d
commit cd978327fc
2 changed files with 12 additions and 0 deletions

View File

@@ -90,6 +90,11 @@ public class SystemControl
return hWnd == TaskContext.Instance().GameHandle;
}
public static bool IsGenshinImpactMinimized()
{
return User32.IsIconic(TaskContext.Instance().GameHandle);
}
public static nint GetForegroundWindowHandle()
{
return (nint)User32.GetForegroundWindow();