diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp index 0faa47d29..de808e2aa 100644 --- a/src/desktop/LayerSurface.cpp +++ b/src/desktop/LayerSurface.cpp @@ -53,7 +53,7 @@ PHLLS CLayerSurface::create(SP resource) { void CLayerSurface::registerCallbacks() { m_alpha->setUpdateCallback([this](auto) { - if (m_dimAround) + if (m_dimAround && m_monitor) g_pHyprRenderer->damageMonitor(m_monitor.lock()); }); }