From 4640531eb1cfeeb0654853f51e48ed62f0bd94f8 Mon Sep 17 00:00:00 2001 From: niuzhaosen <59213694+niuzhaosen@users.noreply.github.com> Date: Mon, 13 Jan 2025 17:27:22 +0800 Subject: [PATCH] Update SukiWindow.axaml.cs Fix: Unable to change window size with mouse after switching between full screen and normal mode --- SukiUI/Controls/SukiWindow.axaml.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SukiUI/Controls/SukiWindow.axaml.cs b/SukiUI/Controls/SukiWindow.axaml.cs index a4b0902ac..5d34322e0 100644 --- a/SukiUI/Controls/SukiWindow.axaml.cs +++ b/SukiUI/Controls/SukiWindow.axaml.cs @@ -353,8 +353,7 @@ static int ToInt32(IntPtr ptr) => IntPtr.Size == 4 private void OnWindowStateChanged(WindowState state) { - if (state == WindowState.FullScreen) - CanMaximize = CanResize = CanMove = false; + if (state == WindowState.Maximized) Margin = new Thickness(7); else @@ -366,4 +365,4 @@ private void OnTitleBarPointerPressed(object? sender, PointerPressedEventArgs e) base.OnPointerPressed(e); BeginMoveDrag(e); } -} \ No newline at end of file +}