fix(rendering): survive display topology handoff

Model active-monitor refresh telemetry as optional so GLFW display replacement during console/RDP transitions cannot escape the native move callback and terminate the client. Preserve the existing software pacing fallback until a later monitor event succeeds.

Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
Erik 2026-07-25 13:15:24 +02:00
parent 10ccce3f2d
commit 14fbe92b08
4 changed files with 76 additions and 22 deletions

View file

@ -1171,13 +1171,16 @@ public sealed class RuntimeSettingsControllerTests
public int? ActiveMonitorRefreshHz
{
get
{
RefreshReadCount++;
return _refreshRate;
}
get => _refreshRate;
set => _refreshRate = value;
}
public bool TryGetActiveMonitorRefreshHz(out int refreshHz)
{
RefreshReadCount++;
refreshHz = _refreshRate.GetValueOrDefault();
return _refreshRate is > 0;
}
}
private sealed class NullKeyboardSource : IKeyboardSource