From db86838ff7d8fe76f589ba5aeae807439d5e0bbd Mon Sep 17 00:00:00 2001 From: ferreo Date: Tue, 28 Jan 2025 11:48:13 +0100 Subject: [PATCH] Update debian/patches/surfaces.patch --- debian/patches/surfaces.patch | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/debian/patches/surfaces.patch b/debian/patches/surfaces.patch index f06f195..7a7c10d 100644 --- a/debian/patches/surfaces.patch +++ b/debian/patches/surfaces.patch @@ -1,15 +1,15 @@ -diff --git a/src/desktop/WLSurface.hpp b/src/desktop/WLSurface.hpp -index 5f8da715..aa3600a2 100644 ---- a/src/desktop/WLSurface.hpp -+++ b/src/desktop/WLSurface.hpp -@@ -88,7 +88,7 @@ class CWLSurface { +diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp +index ee5d9a86..88aa5f59 100644 +--- a/src/render/OpenGL.cpp ++++ b/src/render/OpenGL.cpp +@@ -875,7 +875,7 @@ void CHyprOpenGLImpl::begin(PHLMONITOR pMonitor, const CRegion& damage_, CFrameb - // used by the hyprland-surface protocol - float m_fOverallOpacity = 1.F; -- CRegion m_visibleRegion; -+ CRegion m_visibleRegion = CBox{0, 0, INT32_MAX, INT32_MAX}; + const auto PRBO = g_pHyprRenderer->getCurrentRBO(); + const bool FBPROPERSIZE = !fb || fb->m_vSize == pMonitor->vecPixelSize; +- const bool USERFORCEDINTROSPECTION = *PFORCEINTROSPECTION == 1 ? true : (*PFORCEINTROSPECTION == 2 ? g_pHyprRenderer->isNvidia() : false); // 0 - no, 1 - yes, 2 - nvidia only ++ const bool USERFORCEDINTROSPECTION = *PFORCEINTROSPECTION == 1 || *PFORCEINTROSPECTION == 2 ? true : false; // 0 - no, 1 - yes, 2 - yes - struct { - CSignal destroy; + if (USERFORCEDINTROSPECTION || m_RenderData.forceIntrospection || !FBPROPERSIZE || m_sFinalScreenShader.program > 0 || + (PRBO && pMonitor->vecPixelSize != PRBO->getFB()->m_vSize) || passRequiresIntrospection(pMonitor)) {