renderlayer: also schedule a repaint when hiding the layer

This commit is contained in:
Xaver Hugl 2023-09-18 15:45:03 +02:00
parent 4223b6ca72
commit 9e65b12178
2 changed files with 2 additions and 4 deletions

View file

@ -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 = [&]() {

View file

@ -237,6 +237,7 @@ void RenderLayer::updateEffectiveVisibility()
} else {
if (m_outputLayer) {
m_outputLayer->addRepaint(mapToGlobal(boundingRect()).toAlignedRect());
m_loop->scheduleRepaint();
}
}