mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 02:05:58 +01:00
added toggle for drm scanout flags
This commit is contained in:
parent
976b44443a
commit
12697d2b72
2 changed files with 6 additions and 0 deletions
|
@ -59,6 +59,7 @@ void CConfigManager::setDefaultVars() {
|
||||||
configValues["misc:swallow_regex"].strValue = STRVAL_EMPTY;
|
configValues["misc:swallow_regex"].strValue = STRVAL_EMPTY;
|
||||||
configValues["misc:focus_on_activate"].intValue = 0;
|
configValues["misc:focus_on_activate"].intValue = 0;
|
||||||
configValues["misc:no_direct_scanout"].intValue = 0;
|
configValues["misc:no_direct_scanout"].intValue = 0;
|
||||||
|
configValues["misc:enable_drm_scanout_flags"].intValue = 0;
|
||||||
|
|
||||||
configValues["debug:int"].intValue = 0;
|
configValues["debug:int"].intValue = 0;
|
||||||
configValues["debug:log_damage"].intValue = 0;
|
configValues["debug:log_damage"].intValue = 0;
|
||||||
|
|
|
@ -613,6 +613,11 @@ void CHyprRenderer::setWindowScanoutMode(CWindow* pWindow) {
|
||||||
if (!g_pCompositor->m_sWLRLinuxDMABuf)
|
if (!g_pCompositor->m_sWLRLinuxDMABuf)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
static auto *const PENABLED = &g_pConfigManager->getConfigValuePtr("misc:enable_drm_scanout_flags")->intValue;
|
||||||
|
|
||||||
|
if (!*PENABLED)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!pWindow->m_bIsFullscreen) {
|
if (!pWindow->m_bIsFullscreen) {
|
||||||
wlr_linux_dmabuf_v1_set_surface_feedback(g_pCompositor->m_sWLRLinuxDMABuf, g_pXWaylandManager->getWindowSurface(pWindow), nullptr);
|
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);
|
Debug::log(LOG, "Scanout mode OFF set for %x", pWindow);
|
||||||
|
|
Loading…
Reference in a new issue