diff --git a/src/Riverside.Toolkit/Controls/TitleBar/TitleBarEx.WndProc.cs b/src/Riverside.Toolkit/Controls/TitleBar/TitleBarEx.WndProc.cs index b018400..acd505e 100644 --- a/src/Riverside.Toolkit/Controls/TitleBar/TitleBarEx.WndProc.cs +++ b/src/Riverside.Toolkit/Controls/TitleBar/TitleBarEx.WndProc.cs @@ -112,6 +112,8 @@ private async void WndProc(object? sender, WindowMessageEventArgs args) // Extend drag area buttonDownHeight = 25; + InvokeChecks(); + // Minimize if (IsInMinButton() && CurrentCaption is SelectedCaptionButton.Minimize or SelectedCaptionButton.None) { @@ -152,6 +154,8 @@ private async void WndProc(object? sender, WindowMessageEventArgs args) // Restore drag area buttonDownHeight = 0; + InvokeChecks(); + // Minimize if (IsInMinButton() && CurrentCaption != SelectedCaptionButton.Minimize) CurrentCaption = SelectedCaptionButton.None; if (IsInMinButton() && CurrentCaption == SelectedCaptionButton.Minimize && IsMinimizable)