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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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); |
|
|
|
} |
|
|
|
|
|
|
|
|