From 01aa8a6a29f7dce22e7fe31a3ad508e38698467a Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Thu, 17 Oct 2024 12:03:56 -0500 Subject: [PATCH] UI: I may be stupid. --- src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs | 1 + src/Ryujinx/UI/Windows/MainWindow.axaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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.