summaryrefslogtreecommitdiff
path: root/src/desktop/LayerSurface.cpp
diff options
context:
space:
mode:
authorJS Deck <xz.ca.cn@gmail.com>2025-07-29 13:02:29 -0300
committerGitHub <noreply@github.com>2025-07-29 18:02:29 +0200
commitf51be7f20109cd8eae87db96641aead843a3ef0b (patch)
treee78b269c3473f0a4159030cc93b513ce0083b110 /src/desktop/LayerSurface.cpp
parent66a6ef3859255f2a21c1e902a4b5f56562e87041 (diff)
layers: check monitor is not null on animation update (#11267)
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
-rw-r--r--src/desktop/LayerSurface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 0faa47d2..de808e2a 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -53,7 +53,7 @@ PHLLS CLayerSurface::create(SP<CLayerShellResource> resource) {
void CLayerSurface::registerCallbacks() {
m_alpha->setUpdateCallback([this](auto) {
- if (m_dimAround)
+ if (m_dimAround && m_monitor)
g_pHyprRenderer->damageMonitor(m_monitor.lock());
});
}