Browse Source
Merge branch 'master' into SplitView-StyledProperty
pull/10138/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
16 additions and
2 deletions
-
native/Avalonia.Native/src/OSX/AvnWindow.mm
-
tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs
|
|
|
@ -292,12 +292,14 @@ |
|
|
|
{ |
|
|
|
if (_parent == nullptr) |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
_parent->BringToFront(); |
|
|
|
|
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{ |
|
|
|
@try { |
|
|
|
[self invalidateShadow]; |
|
|
|
[self invalidateShadow]; |
|
|
|
if (self->_parent != nullptr) |
|
|
|
self->_parent->BringToFront(); |
|
|
|
} |
|
|
|
@finally{ |
|
|
|
} |
|
|
|
|
|
|
|
@ -150,6 +150,18 @@ namespace Avalonia.IntegrationTests.Appium |
|
|
|
windowState = mainWindow.FindElementByAccessibilityId("MainWindowState"); |
|
|
|
Assert.Equal("Normal", windowState.Text); |
|
|
|
} |
|
|
|
|
|
|
|
[PlatformFact(TestPlatforms.MacOS)] |
|
|
|
public void WindowOrder_Owned_Dialog_Stays_InFront_Of_Parent_After_Modal_Closed() |
|
|
|
{ |
|
|
|
using (OpenWindow(new PixelSize(200, 300), ShowWindowMode.Owned, WindowStartupLocation.Manual)) |
|
|
|
{ |
|
|
|
OpenWindow(null, ShowWindowMode.Modal, WindowStartupLocation.Manual).Dispose(); |
|
|
|
|
|
|
|
var secondaryWindowIndex = GetWindowOrder("SecondaryWindow"); |
|
|
|
Assert.Equal(1, secondaryWindowIndex); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[PlatformFact(TestPlatforms.MacOS)] |
|
|
|
public void Does_Not_Switch_Space_From_FullScreen_To_Main_Desktop_When_FullScreen_Window_Clicked() |
|
|
|
|