Do not schedule further repaints when terminating

We'd hit a deleted options singleton and in any case it's not something
we need.
This commit is contained in:
Aleix Pol 2021-04-19 16:21:20 +02:00
parent 7a9676dc0a
commit 4c74a24059

View file

@ -32,7 +32,7 @@ RenderLoopPrivate::RenderLoopPrivate(RenderLoop *q)
void RenderLoopPrivate::scheduleRepaint() void RenderLoopPrivate::scheduleRepaint()
{ {
if (compositeTimer.isActive()) { if (compositeTimer.isActive() || kwinApp()->isTerminating()) {
return; return;
} }