Browse Source

macOS: Don't bring invisible window to front.

Check that a window is visible before bringing it to front, as bringing to front also shows the window.
pull/8618/head
Steven Kirk 4 years ago
parent
commit
9d356894bc
  1. 2
      native/Avalonia.Native/src/OSX/WindowImpl.mm

2
native/Avalonia.Native/src/OSX/WindowImpl.mm

@ -121,7 +121,7 @@ void WindowImpl::BringToFront()
{
if(Window != nullptr)
{
if (![Window isMiniaturized])
if ([Window isVisible] && ![Window isMiniaturized])
{
if(IsDialog())
{

Loading…
Cancel
Save