Browse Source

Merge pull request #12593 from AvaloniaUI/fixes/win32-show-in-taskbar-on-owner-window

ShowInTaskBar with Owned window: make consistent with WPF
release/11.0.4
Dan Walmsley 3 years ago
committed by GitHub
parent
commit
708151f2f9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/Windows/Avalonia.Win32/WindowImpl.cs

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

@ -683,9 +683,10 @@ namespace Avalonia.Win32
if (parentHwnd == IntPtr.Zero && !_windowProperties.ShowInTaskbar)
{
parentHwnd = OffscreenParentWindow.Handle;
_hiddenWindowIsParent = true;
}
_hiddenWindowIsParent = parentHwnd == OffscreenParentWindow.Handle;
SetWindowLongPtr(_hwnd, (int)WindowLongParam.GWL_HWNDPARENT, parentHwnd);
}

Loading…
Cancel
Save