diff --git a/src/Starward/MainWindow.xaml.cs b/src/Starward/MainWindow.xaml.cs index 7fc7c4c40..b914ed901 100644 --- a/src/Starward/MainWindow.xaml.cs +++ b/src/Starward/MainWindow.xaml.cs @@ -300,6 +300,14 @@ public void ChangeAccentColor(Color? backColor = null, Color? foreColor = null) public IntPtr SUBCLASSPROC(HWND hWnd, uint uMsg, IntPtr wParam, IntPtr lParam, nuint uIdSubclass, IntPtr dwRefData) { + if (uMsg == ((uint)User32.WindowMessage.WM_SYSCOMMAND)) + { + // SC_MAXIMIZE + if (wParam == 0xF030) + { + return IntPtr.Zero; + } + } return ComCtl32.DefSubclassProc(hWnd, uMsg, wParam, lParam); }