Revert adding toggle for drm scanout flags

This reverts commit 12697d2b72.

Stupid idea.
This commit is contained in:
vaxerski 2022-11-06 14:23:28 +00:00
parent 082f439db2
commit 5295244026
2 changed files with 0 additions and 6 deletions

View file

@ -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;

View file

@ -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);