layers: check monitor is not null on animation update (#11267)
This commit is contained in:
parent
66a6ef3859
commit
f51be7f201
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ PHLLS CLayerSurface::create(SP<CLayerShellResource> resource) {
|
||||||
|
|
||||||
void CLayerSurface::registerCallbacks() {
|
void CLayerSurface::registerCallbacks() {
|
||||||
m_alpha->setUpdateCallback([this](auto) {
|
m_alpha->setUpdateCallback([this](auto) {
|
||||||
if (m_dimAround)
|
if (m_dimAround && m_monitor)
|
||||||
g_pHyprRenderer->damageMonitor(m_monitor.lock());
|
g_pHyprRenderer->damageMonitor(m_monitor.lock());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue