Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Only bring window to front if it's on the currently active space
- Ensure correct order of child windows after fullscreen transition
  • Loading branch information
grokys committed Nov 29, 2022
1 parent ffe74ce commit 5fa4da3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion native/Avalonia.Native/src/OSX/WindowImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@

for(auto iterator = _children.begin(); iterator != _children.end(); iterator++)
{
(*iterator)->BringToFront();
auto window = (*iterator)->Window;

// #9565: Only bring window to front if it's on the currently active space
if ([window isOnActiveSpace])
(*iterator)->BringToFront();
}
}
}
Expand All @@ -160,6 +164,9 @@

void WindowImpl::EndStateTransition() {
_transitioningWindowState = false;

// Ensure correct order of child windows after fullscreen transition.
BringToFront();
}

SystemDecorations WindowImpl::Decorations() {
Expand Down

0 comments on commit 5fa4da3

Please sign in to comment.