3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-05 09:25:43 +00:00

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

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