From 47b81458095453e435a6c5530b9b2a7833df108a Mon Sep 17 00:00:00 2001
From: Luke Warner <65521430+LukeWarnut@users.noreply.github.com>
Date: Wed, 6 Nov 2024 18:36:30 -0500
Subject: [PATCH] Fix fullscreen when using 'Show Title Bar' (#150)
---
src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs | 2 ++
src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml | 14 +++++++-------
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs
index 88a24c34d..7fd1ad104 100644
--- a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs
+++ b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs
@@ -1776,6 +1776,7 @@ namespace Ryujinx.Ava.UI.ViewModels
if (WindowState is not WindowState.Normal)
{
WindowState = WindowState.Normal;
+ Window.TitleBar.ExtendsContentIntoTitleBar = !ConfigurationState.Instance.ShowTitleBar;
if (IsGameRunning)
{
@@ -1785,6 +1786,7 @@ namespace Ryujinx.Ava.UI.ViewModels
else
{
WindowState = WindowState.FullScreen;
+ Window.TitleBar.ExtendsContentIntoTitleBar = true;
if (IsGameRunning)
{
diff --git a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml
index fe8b64eb6..94e035022 100644
--- a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml
+++ b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml
@@ -12,13 +12,13 @@
-
-
-
+