Skip to content

Commit

Permalink
Win32 - Apply extend client state when window visibility changes (#15566
Browse files Browse the repository at this point in the history
)

* win32 - apply extend client state when window visibility changes

* only apply extend client if window is extended.
  • Loading branch information
emmauss authored and maxkatz6 committed May 8, 2024
1 parent 1408253 commit 91525d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Windows/Avalonia.Win32/WindowImpl.AppWndProc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,11 @@ protected virtual unsafe IntPtr AppWndProc(IntPtr hWnd, uint msg, IntPtr wParam,

case WindowsMessage.WM_SHOWWINDOW:
_shown = wParam != default;

if (_isClientAreaExtended)
{
ExtendClientArea();
}
break;

case WindowsMessage.WM_SIZE:
Expand Down

0 comments on commit 91525d0

Please sign in to comment.