diff --git a/EmoTracker/ApplicationModel.cs b/EmoTracker/ApplicationModel.cs index b3307cf..f3fc3f0 100644 --- a/EmoTracker/ApplicationModel.cs +++ b/EmoTracker/ApplicationModel.cs @@ -199,10 +199,10 @@ private void ShowBroadcastView(object obj) mBroadcastView = new BroadcastView(); mBroadcastView.Closing += (_, _) => mBroadcastView = null; - var mainWindow = (Avalonia.Application.Current?.ApplicationLifetime - as Avalonia.Controls.ApplicationLifetimes.IClassicDesktopStyleApplicationLifetime)?.MainWindow; - - mBroadcastView.Show(mainWindow); + // Show without an owner so the broadcast view is an independent + // top-level window. Passing the main window as owner causes the + // OS to force the broadcast view above the main window at all times. + mBroadcastView.Show(); } else {