From 966f20d305345b3042dc1d37a1dd8833f3a4783b Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sat, 7 Mar 2026 16:13:34 +0300 Subject: renderer: refactor resources and flags (#13471) --- src/debug/HyprCtl.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/debug/HyprCtl.cpp') diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 3f51e8df..31c22ac9 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -1304,11 +1304,12 @@ static std::string dispatchKeyword(eHyprCtlOutputFormat format, std::string in) Layout::Supplementary::algoMatcher()->updateWorkspaceLayouts(); if (COMMAND.contains("decoration:screen_shader") || COMMAND == "source") - g_pHyprOpenGL->m_reloadScreenShader = true; + g_pHyprRenderer->m_reloadScreenShader = true; if (COMMAND.contains("blur") || COMMAND == "source") { - for (auto& [m, rd] : g_pHyprOpenGL->m_monitorRenderResources) { - rd.blurFBDirty = true; + for (auto const& m : g_pCompositor->m_monitors) { + if (m) + m->m_blurFBDirty = true; } } @@ -2189,10 +2190,11 @@ std::string CHyprCtl::getReply(std::string request) { g_pInputManager->setTouchDeviceConfigs(); // update touch device cfgs g_pInputManager->setTabletConfigs(); // update tablets - g_pHyprOpenGL->m_reloadScreenShader = true; + g_pHyprRenderer->m_reloadScreenShader = true; - for (auto& [m, rd] : g_pHyprOpenGL->m_monitorRenderResources) { - rd.blurFBDirty = true; + for (auto const& m : g_pCompositor->m_monitors) { + if (m) + m->m_blurFBDirty = true; } for (auto const& w : g_pCompositor->m_windows) { -- cgit v1.2.3