Skip to content

Commit 1e91d0a

Browse files
authored
Fix dialog shown behind deactivated window with Topmost="True" (#2443) (#2444)
1 parent e7f415b commit 1e91d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaterialDesignThemes.Wpf/PopupEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private void HostWindow_Activated(object? sender, EventArgs e)
104104
=> SetTopmostState(true);
105105

106106
private void HostWindow_Deactivated(object? sender, EventArgs e)
107-
=> SetTopmostState(false);
107+
=> SetTopmostState(_hostWindow?.Topmost ?? false);
108108

109109
private void PopupEx_Unloaded(object? sender, RoutedEventArgs e)
110110
{

0 commit comments

Comments
 (0)