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

This commit is contained in:
JS Deck 2025-07-29 13:02:29 -03:00 committed by GitHub
parent 66a6ef3859
commit f51be7f201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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());
});
}