From a624768b2ae690135bef79e21e3dd8f2e4fe7e0c Mon Sep 17 00:00:00 2001 From: Coxxs <58-coxxs@users.noreply.git.ryujinx.app> Date: Mon, 27 Oct 2025 01:41:16 +0800 Subject: [PATCH] Do not calculate height delta when the window is maximized --- src/Ryujinx/UI/Windows/MainWindow.axaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs index 2d2c9c820..a6393ac25 100644 --- a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs @@ -474,6 +474,11 @@ namespace Ryujinx.Ava.UI.Windows private void SaveHeightCorrection() { + if (WindowState != WindowState.Normal) + { + return; + } + // Store the delta between the height we set (ViewModel.WindowHeight) and the actual height returned by Avalonia (Height). _heightCorrection = Height - ViewModel.WindowHeight; if (Math.Abs(_heightCorrection) > 50)