Browse Source

Merge pull request #5989 from AvaloniaUI/fixes/5988-showactivated-extendclientarea

Don't activate window when extending client area.
release/0.10.6
Dan Walmsley 5 years ago
parent
commit
dc83e78518
  1. 2
      src/Windows/Avalonia.Win32/WindowImpl.cs

2
src/Windows/Avalonia.Win32/WindowImpl.cs

@ -900,7 +900,7 @@ namespace Avalonia.Win32
IntPtr.Zero,
rcWindow.left, rcWindow.top,
rcClient.Width, rcClient.Height,
SetWindowPosFlags.SWP_FRAMECHANGED);
SetWindowPosFlags.SWP_FRAMECHANGED | SetWindowPosFlags.SWP_NOACTIVATE);
if (_isClientAreaExtended && WindowState != WindowState.FullScreen)
{

Loading…
Cancel
Save