layerSurface: check for monitor validity in startAnimation

ref #11168

sometimes on exit monitor might be null
This commit is contained in:
Vaxry 2025-07-26 11:46:00 +02:00
parent 5c8d675eed
commit e1fff05d0d
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -470,6 +470,11 @@ void CLayerSurface::startAnimation(bool in, bool instant) {
const auto PMONITOR = g_pCompositor->getMonitorFromVector(MIDDLE);
if (!PMONITOR) { // can rarely happen on exit
m_alpha->setValueAndWarp(in ? 1.F : 0.F);
return;
}
int force = -1;
CVarList args(ANIMSTYLE, 0, 's');