Browse Source

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

Don't activate window when extending client area.
pull/6014/head
Dan Walmsley 5 years ago
committed by GitHub
parent
commit
40e41e8e37
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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