Browse Source

Merge pull request #5765 from MarchingCube/fix-owned-windows

Fix owned windows and dialogs not having a parent.
pull/5775/head
Steven Kirk 5 years ago
committed by GitHub
parent
commit
fb8210d142
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Windows/Avalonia.Win32/WindowImpl.cs

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

@ -580,7 +580,9 @@ namespace Avalonia.Win32
public void SetParent(IWindowImpl parent)
{
var parentHwnd = ((WindowImpl)parent)?._hwnd ?? IntPtr.Zero;
_parent = (WindowImpl)parent;
var parentHwnd = _parent?._hwnd ?? IntPtr.Zero;
if (parentHwnd == IntPtr.Zero && !_windowProperties.ShowInTaskbar)
{

Loading…
Cancel
Save