renderlayer: also schedule a repaint when hiding the layer
This commit is contained in:
parent
4223b6ca72
commit
9e65b12178
2 changed files with 2 additions and 4 deletions
|
@ -392,10 +392,7 @@ void Compositor::addOutput(Output *output)
|
||||||
outputLayer->setEnabled(false);
|
outputLayer->setEnabled(false);
|
||||||
output->updateCursorLayer();
|
output->updateCursorLayer();
|
||||||
}
|
}
|
||||||
if (cursorLayer->isVisible()) {
|
|
||||||
cursorLayer->setVisible(false);
|
cursorLayer->setVisible(false);
|
||||||
cursorLayer->addRepaintFull();
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto renderHardwareCursor = [&]() {
|
const auto renderHardwareCursor = [&]() {
|
||||||
|
|
|
@ -237,6 +237,7 @@ void RenderLayer::updateEffectiveVisibility()
|
||||||
} else {
|
} else {
|
||||||
if (m_outputLayer) {
|
if (m_outputLayer) {
|
||||||
m_outputLayer->addRepaint(mapToGlobal(boundingRect()).toAlignedRect());
|
m_outputLayer->addRepaint(mapToGlobal(boundingRect()).toAlignedRect());
|
||||||
|
m_loop->scheduleRepaint();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue