aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-11-06 14:23:28 +0000
committervaxerski <[email protected]>2022-11-06 14:25:53 +0000
commit5295244026f95e1d343f0f42be33b70d4c56dc7c (patch)
treeb08edd56f89eb94dfd7f9f55c2abedf458e115bf
parent082f439db2ccb58f2792a4885a0aa09ae666a6b0 (diff)
downloadHyprland-5295244026f95e1d343f0f42be33b70d4c56dc7c.tar.gz
Hyprland-5295244026f95e1d343f0f42be33b70d4c56dc7c.zip
Revert adding toggle for drm scanout flags
This reverts commit 12697d2b722ec0976ac6b2fc650f26ea61d36627. Stupid idea.
-rw-r--r--src/config/ConfigManager.cpp1
-rw-r--r--src/render/Renderer.cpp5
2 files changed, 0 insertions, 6 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 564c3ba7..e64fc86b 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -59,7 +59,6 @@ void CConfigManager::setDefaultVars() {
configValues["misc:swallow_regex"].strValue = STRVAL_EMPTY;
configValues["misc:focus_on_activate"].intValue = 0;
configValues["misc:no_direct_scanout"].intValue = 0;
- configValues["misc:enable_drm_scanout_flags"].intValue = 0;
configValues["debug:int"].intValue = 0;
configValues["debug:log_damage"].intValue = 0;
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index c9ae0a80..420b45be 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -616,11 +616,6 @@ void CHyprRenderer::setWindowScanoutMode(CWindow* pWindow) {
if (!g_pCompositor->m_sWLRLinuxDMABuf)
return;
- static auto *const PENABLED = &g_pConfigManager->getConfigValuePtr("misc:enable_drm_scanout_flags")->intValue;
-
- if (!*PENABLED)
- return;
-
if (!pWindow->m_bIsFullscreen) {
wlr_linux_dmabuf_v1_set_surface_feedback(g_pCompositor->m_sWLRLinuxDMABuf, g_pXWaylandManager->getWindowSurface(pWindow), nullptr);
Debug::log(LOG, "Scanout mode OFF set for %x", pWindow);