|
|
|
@ -245,6 +245,11 @@ namespace Avalonia.Win32 |
|
|
|
{ |
|
|
|
get |
|
|
|
{ |
|
|
|
if (!IsWindowVisible(_hwnd)) |
|
|
|
{ |
|
|
|
return _showWindowState; |
|
|
|
} |
|
|
|
|
|
|
|
if (_isFullScreenActive) |
|
|
|
{ |
|
|
|
return WindowState.FullScreen; |
|
|
|
@ -511,6 +516,9 @@ namespace Avalonia.Win32 |
|
|
|
|
|
|
|
public void Resize(Size value, PlatformResizeReason reason) |
|
|
|
{ |
|
|
|
if (WindowState != WindowState.Normal) |
|
|
|
return; |
|
|
|
|
|
|
|
int requestedClientWidth = (int)(value.Width * RenderScaling); |
|
|
|
int requestedClientHeight = (int)(value.Height * RenderScaling); |
|
|
|
|
|
|
|
@ -856,11 +864,10 @@ namespace Avalonia.Win32 |
|
|
|
|
|
|
|
var window_rect = monitor_info.rcMonitor.ToPixelRect(); |
|
|
|
|
|
|
|
_isFullScreenActive = true; |
|
|
|
SetWindowPos(_hwnd, IntPtr.Zero, window_rect.X, window_rect.Y, |
|
|
|
window_rect.Width, window_rect.Height, |
|
|
|
SetWindowPosFlags.SWP_NOZORDER | SetWindowPosFlags.SWP_NOACTIVATE | SetWindowPosFlags.SWP_FRAMECHANGED); |
|
|
|
|
|
|
|
_isFullScreenActive = true; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
|