summaryrefslogtreecommitdiff
path: root/src/debug/HyprCtl.cpp
diff options
context:
space:
mode:
authorUjinT34 <41110182+UjinT34@users.noreply.github.com>2026-03-07 16:13:34 +0300
committerGitHub <noreply@github.com>2026-03-07 13:13:34 +0000
commit966f20d305345b3042dc1d37a1dd8833f3a4783b (patch)
tree3e8515b7a0f6fde7bf3137aac7124ae90e5951ec /src/debug/HyprCtl.cpp
parent32e75e3e320fb66ab517a378df645f3d29b3a209 (diff)
renderer: refactor resources and flags (#13471)
Diffstat (limited to 'src/debug/HyprCtl.cpp')
-rw-r--r--src/debug/HyprCtl.cpp14
1 files changed, 8 insertions, 6 deletions
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) {