Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
eriforce committed Aug 31, 2024
1 parent 3961ec1 commit 87a6781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magpie.Core/ScalingWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ int ScalingWindow::_CheckSrcState() const noexcept {

// 在 3D 游戏模式下打开叠加层则全屏窗口可以接收焦点
if (!_options.Is3DGameMode() || !_renderer->IsOverlayVisible() || hwndForeground != _hWnd) {
if (hwndForeground && hwndForeground != _hwndSrc && hwndForeground != _hWnd && !_CheckForeground(hwndForeground)) {
if (hwndForeground && hwndForeground != _hwndSrc && !_CheckForeground(hwndForeground)) {
Logger::Get().Info("前台窗口已改变");
return 1;
}
Expand Down

0 comments on commit 87a6781

Please sign in to comment.