Skip to content

Commit

Permalink
Merge pull request #12593 from AvaloniaUI/fixes/win32-show-in-taskbar…
Browse files Browse the repository at this point in the history
…-on-owner-window

ShowInTaskBar with Owned window: make consistent with WPF
  • Loading branch information
Dan Walmsley authored Aug 19, 2023
2 parents 283c3cd + 15290a3 commit 708151f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Windows/Avalonia.Win32/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,10 @@ public void SetParent(IWindowImpl? parent)
if (parentHwnd == IntPtr.Zero && !_windowProperties.ShowInTaskbar)
{
parentHwnd = OffscreenParentWindow.Handle;
_hiddenWindowIsParent = true;
}

_hiddenWindowIsParent = parentHwnd == OffscreenParentWindow.Handle;

SetWindowLongPtr(_hwnd, (int)WindowLongParam.GWL_HWNDPARENT, parentHwnd);
}

Expand Down

0 comments on commit 708151f

Please sign in to comment.