diff --git a/decorations/decorationrenderer.cpp b/decorations/decorationrenderer.cpp index c4655e04ae..d5e9f744a1 100644 --- a/decorations/decorationrenderer.cpp +++ b/decorations/decorationrenderer.cpp @@ -104,14 +104,17 @@ void X11Renderer::reparent(Deleted *deleted) { if (m_scheduleTimer->isActive()) { m_scheduleTimer->stop(); - disconnect(m_scheduleTimer, &QTimer::timeout, this, &X11Renderer::render); - disconnect(this, &Renderer::renderScheduled, m_scheduleTimer, static_cast(&QTimer::start)); } + disconnect(m_scheduleTimer, &QTimer::timeout, this, &X11Renderer::render); + disconnect(this, &Renderer::renderScheduled, m_scheduleTimer, static_cast(&QTimer::start)); Renderer::reparent(deleted); } void X11Renderer::render() { + if (!client()) { + return; + } const QRegion scheduled = getScheduled(); if (scheduled.isEmpty()) { return;