diff --git a/src/Magpie.Core/OverlayDrawer.cpp b/src/Magpie.Core/OverlayDrawer.cpp index f7bfe687..390c8230 100644 --- a/src/Magpie.Core/OverlayDrawer.cpp +++ b/src/Magpie.Core/OverlayDrawer.cpp @@ -159,7 +159,7 @@ static SmallVector GenerateTimelineColors(const std::vectorIsOverlayVisible() && hwndForeground == _hwndSrc) { - // _renderer->SetOverlayVisibility(false, true); - // } + if (_options.Is3DGameMode() && _renderer->IsOverlayVisible() && hwndForeground == _hwndSrc) { + _renderer->SetOverlayVisibility(false, true); + } // 在 3D 游戏模式下打开叠加层则全屏窗口可以接收焦点 if (!_options.Is3DGameMode() || !_renderer->IsOverlayVisible() || hwndForeground != _hWnd) {