From 2991df41b8f4bb22491773c5a3090a6d11173c74 Mon Sep 17 00:00:00 2001 From: Ivirius <106150547+IviriusMain@users.noreply.github.com> Date: Sat, 4 Jan 2025 08:59:10 +0200 Subject: [PATCH] Update TitleBarEx.WndProc.cs --- src/Riverside.Toolkit/Controls/TitleBar/TitleBarEx.WndProc.cs | 4 ++++ 1 file changed, 4 insertions(+) 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)