Ensure that the X11Renderer doesn't render after reparente to Deleted
This commit is contained in:
parent
4c9744fe8e
commit
d81e5697bf
1 changed files with 5 additions and 2 deletions
|
@ -104,14 +104,17 @@ void X11Renderer::reparent(Deleted *deleted)
|
||||||
{
|
{
|
||||||
if (m_scheduleTimer->isActive()) {
|
if (m_scheduleTimer->isActive()) {
|
||||||
m_scheduleTimer->stop();
|
m_scheduleTimer->stop();
|
||||||
|
}
|
||||||
disconnect(m_scheduleTimer, &QTimer::timeout, this, &X11Renderer::render);
|
disconnect(m_scheduleTimer, &QTimer::timeout, this, &X11Renderer::render);
|
||||||
disconnect(this, &Renderer::renderScheduled, m_scheduleTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
|
disconnect(this, &Renderer::renderScheduled, m_scheduleTimer, static_cast<void (QTimer::*)()>(&QTimer::start));
|
||||||
}
|
|
||||||
Renderer::reparent(deleted);
|
Renderer::reparent(deleted);
|
||||||
}
|
}
|
||||||
|
|
||||||
void X11Renderer::render()
|
void X11Renderer::render()
|
||||||
{
|
{
|
||||||
|
if (!client()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const QRegion scheduled = getScheduled();
|
const QRegion scheduled = getScheduled();
|
||||||
if (scheduled.isEmpty()) {
|
if (scheduled.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue