summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp13
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);
}