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:
@ -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());
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user