|
|
|
@ -1051,6 +1051,12 @@ namespace Avalonia.Win32 |
|
|
|
_extendedMargins = new Thickness(); |
|
|
|
|
|
|
|
Resize(new Size(rcWindow.Width / RenderScaling, rcWindow.Height / RenderScaling), PlatformResizeReason.Layout); |
|
|
|
|
|
|
|
unsafe |
|
|
|
{ |
|
|
|
int cornerPreference = (int)DwmWindowCornerPreference.DWMWCP_DEFAULT; |
|
|
|
DwmSetWindowAttribute(_hwnd, (int)DwmWindowAttribute.DWMWA_WINDOW_CORNER_PREFERENCE, &cornerPreference, sizeof(int)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (!_isClientAreaExtended || (_extendChromeHints.HasAllFlags(ExtendClientAreaChromeHints.SystemChrome) && |
|
|
|
|