Skip to content

Commit

Permalink
win32 - fix window size and position for border only window when maxi…
Browse files Browse the repository at this point in the history
…mized through os
  • Loading branch information
emmauss committed Jul 12, 2024
1 parent ab02e25 commit 168d561
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 @@ -657,6 +657,11 @@ protected virtual unsafe IntPtr AppWndProc(IntPtr hWnd, uint msg, IntPtr wParam,

UpdateWindowProperties(newWindowProperties);

if (windowState == WindowState.Maximized)
{
MaximizeWithoutCoveringTaskbar();
}

WindowStateChanged?.Invoke(windowState);

if (_isClientAreaExtended)
Expand Down

0 comments on commit 168d561

Please sign in to comment.