From 9e65b121782ec13bff9cfdaa4d21125b3740341d Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 18 Sep 2023 15:45:03 +0200 Subject: [PATCH] renderlayer: also schedule a repaint when hiding the layer --- src/compositor.cpp | 5 +---- src/core/renderlayer.cpp | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compositor.cpp b/src/compositor.cpp index b9ff67a197..ba18ff18e4 100644 --- a/src/compositor.cpp +++ b/src/compositor.cpp @@ -392,10 +392,7 @@ void Compositor::addOutput(Output *output) outputLayer->setEnabled(false); output->updateCursorLayer(); } - if (cursorLayer->isVisible()) { - cursorLayer->setVisible(false); - cursorLayer->addRepaintFull(); - } + cursorLayer->setVisible(false); return; } const auto renderHardwareCursor = [&]() { diff --git a/src/core/renderlayer.cpp b/src/core/renderlayer.cpp index 564698af76..5b2ca2e2c9 100644 --- a/src/core/renderlayer.cpp +++ b/src/core/renderlayer.cpp @@ -237,6 +237,7 @@ void RenderLayer::updateEffectiveVisibility() } else { if (m_outputLayer) { m_outputLayer->addRepaint(mapToGlobal(boundingRect()).toAlignedRect()); + m_loop->scheduleRepaint(); } }