layers: check monitor is not null on animation update (#11267)

This commit is contained in:
JS Deck
2025-07-29 18:02:29 +02:00
committed by GitHub
parent 66a6ef3859
commit f51be7f201
+1 -1
View File
@@ -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());
});
}