Skip to content

Commit

Permalink
Update TitleBarEx.WndProc.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
IviriusMain authored Jan 4, 2025
1 parent 0783c86 commit 2991df4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Riverside.Toolkit/Controls/TitleBar/TitleBarEx.WndProc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2991df4

Please sign in to comment.