diff --git a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs index 5a64c502b..b19a20215 100644 --- a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs +++ b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs @@ -95,6 +95,7 @@ namespace Ryujinx.Ava.UI.Views.Main if (VisualRoot is MainWindow window) { + Window = window; DataContext = ViewModel = window.ViewModel; } } diff --git a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs index b299912b3..0bbfeba66 100644 --- a/src/Ryujinx/UI/Windows/MainWindow.axaml.cs +++ b/src/Ryujinx/UI/Windows/MainWindow.axaml.cs @@ -80,8 +80,8 @@ namespace Ryujinx.Ava.UI.Windows ViewModel.Title = App.FormatTitle(); - //TitleBar.ExtendsContentIntoTitleBar = true; - //TitleBar.TitleBarHitTestType = TitleBarHitTestType.Complex; + TitleBar.ExtendsContentIntoTitleBar = true; + TitleBar.TitleBarHitTestType = TitleBarHitTestType.Complex; // NOTE: Height of MenuBar and StatusBar is not usable here, since it would still be 0 at this point.