diff options
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 14 |
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) { |
