layerSurface: check for monitor validity in startAnimation
ref #11168 sometimes on exit monitor might be null
This commit is contained in:
parent
5c8d675eed
commit
e1fff05d0d
1 changed files with 7 additions and 2 deletions
|
|
@ -470,9 +470,14 @@ void CLayerSurface::startAnimation(bool in, bool instant) {
|
||||||
|
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromVector(MIDDLE);
|
const auto PMONITOR = g_pCompositor->getMonitorFromVector(MIDDLE);
|
||||||
|
|
||||||
int force = -1;
|
if (!PMONITOR) { // can rarely happen on exit
|
||||||
|
m_alpha->setValueAndWarp(in ? 1.F : 0.F);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CVarList args(ANIMSTYLE, 0, 's');
|
int force = -1;
|
||||||
|
|
||||||
|
CVarList args(ANIMSTYLE, 0, 's');
|
||||||
if (args.size() > 1) {
|
if (args.size() > 1) {
|
||||||
const auto ARG2 = args[1];
|
const auto ARG2 = args[1];
|
||||||
if (ARG2 == "top")
|
if (ARG2 == "top")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue