diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2026-03-07 16:13:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-07 13:13:34 +0000 |
| commit | 966f20d305345b3042dc1d37a1dd8833f3a4783b (patch) | |
| tree | 3e8515b7a0f6fde7bf3137aac7124ae90e5951ec /src/Compositor.cpp | |
| parent | 32e75e3e320fb66ab517a378df645f3d29b3a209 (diff) | |
renderer: refactor resources and flags (#13471)
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index b0fc1545..400c595d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -32,6 +32,7 @@ #include <unordered_set> #include "debug/HyprCtl.hpp" #include "debug/crash/CrashReporter.hpp" +#include "render/ShaderLoader.hpp" #ifdef USES_SYSTEMD #include <helpers/SdDaemon.hpp> // for SdNotify #endif @@ -587,6 +588,7 @@ void CCompositor::cleanup() { g_pProtocolManager.reset(); g_pHyprRenderer.reset(); g_pHyprOpenGL.reset(); + Render::g_pShaderLoader.reset(); g_pConfigManager.reset(); g_layoutManager.reset(); g_pHyprError.reset(); @@ -1323,8 +1325,11 @@ void CCompositor::cleanupFadingOut(const MONITORID& monid) { continue; // mark blur for recalc - if (ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) - g_pHyprOpenGL->markBlurDirtyForMonitor(getMonitorFromID(monid)); + if (ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND || ls->m_layer == ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM) { + auto mon = getMonitorFromID(monid); + if (mon) + mon->m_blurFBDirty = true; + } if (ls->m_fadingOut && ls->m_readyToDelete && ls->isFadedOut()) { for (auto const& m : m_monitors) { @@ -2513,8 +2518,8 @@ void CCompositor::performUserChecks() { g_pHyprNotificationOverlay->addNotification(I18n::i18nEngine()->localize(I18n::TXT_KEY_NOTIF_NO_GUIUTILS), CHyprColor{}, 15000, ICON_WARNING); } - if (g_pHyprOpenGL->m_failedAssetsNo > 0) { - g_pHyprNotificationOverlay->addNotification(I18n::i18nEngine()->localize(I18n::TXT_KEY_NOTIF_FAILED_ASSETS, {{"count", std::to_string(g_pHyprOpenGL->m_failedAssetsNo)}}), + if (g_pHyprRenderer->m_failedAssetsNo > 0) { + g_pHyprNotificationOverlay->addNotification(I18n::i18nEngine()->localize(I18n::TXT_KEY_NOTIF_FAILED_ASSETS, {{"count", std::to_string(g_pHyprRenderer->m_failedAssetsNo)}}), CHyprColor{1.0, 0.1, 0.1, 1.0}, 15000, ICON_ERROR); } |
