chore: Move to chimeraos.patch

This commit is contained in:
Kyle Gospodnetich 2024-07-02 14:23:28 -07:00
parent 70c5d6eb54
commit 5a3d586ee8
3 changed files with 1 additions and 24 deletions

View File

@ -129,7 +129,7 @@ index 97ef446..85e5126 100644
( m_Mutable.szMakePNP == "VLV"sv && m_Mutable.szModel == "Jupiter"sv ) || ( m_Mutable.szMakePNP == "VLV"sv && m_Mutable.szModel == "Jupiter"sv ) ||
( m_Mutable.szMakePNP == "VLV"sv && m_Mutable.szModel == "Galileo"sv ); ( m_Mutable.szMakePNP == "VLV"sv && m_Mutable.szModel == "Galileo"sv );
+ if ( g_customRefreshRates.size() > 0 ) { + if ( g_customRefreshRates.size() > 0 && GetScreenType() == GAMESCOPE_SCREEN_TYPE_INTERNAL ) {
+ m_Mutable.ValidDynamicRefreshRates = std::span(g_customRefreshRates); + m_Mutable.ValidDynamicRefreshRates = std::span(g_customRefreshRates);
+ return; + return;
+ } + }

View File

@ -1,22 +0,0 @@
From 508e697c8038cd947405850aa86d121b51bdeb72 Mon Sep 17 00:00:00 2001
From: Kyle Gospodnetich <me@kylegospodneti.ch>
Date: Tue, 2 Jul 2024 14:12:47 -0700
Subject: [PATCH] Only change refresh rates on internal displays
---
src/drm.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drm.cpp b/src/drm.cpp
index 8309140f5..5defb305e 100644
--- a/src/drm.cpp
+++ b/src/drm.cpp
@@ -2138,7 +2138,7 @@ namespace gamescope
( m_Mutable.szMakePNP == "VLV"sv && m_Mutable.szModel == "Jupiter"sv ) ||
( m_Mutable.szMakePNP == "VLV"sv && m_Mutable.szModel == "Galileo"sv );
- if ( g_customRefreshRates.size() > 0 ) {
+ if ( g_customRefreshRates.size() > 0 && GetScreenType() == GAMESCOPE_SCREEN_TYPE_INTERNAL ) {
m_Mutable.ValidDynamicRefreshRates = std::span(g_customRefreshRates);
return;
}

View File

@ -18,7 +18,6 @@ Source0: stb.pc
Patch0: chimeraos.patch Patch0: chimeraos.patch
Patch1: disable-steam-touch-click-atom.patch Patch1: disable-steam-touch-click-atom.patch
Patch2: deckhd.patch Patch2: deckhd.patch
Patch3: external-fix.patch
BuildRequires: meson >= 0.54.0 BuildRequires: meson >= 0.54.0
BuildRequires: ninja-build BuildRequires: ninja-build