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);
|
||||
output->updateCursorLayer();
|
||||
}
|
||||
if (cursorLayer->isVisible()) {
|
||||
cursorLayer->setVisible(false);
|
||||
cursorLayer->addRepaintFull();
|
||||
}
|
||||
return;
|
||||
}
|
||||
const auto renderHardwareCursor = [&]() {
|
||||
|
|
|
@ -237,6 +237,7 @@ void RenderLayer::updateEffectiveVisibility()
|
|||
} else {
|
||||
if (m_outputLayer) {
|
||||
m_outputLayer->addRepaint(mapToGlobal(boundingRect()).toAlignedRect());
|
||||
m_loop->scheduleRepaint();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue