libkwineffects: Make OffscreenQuickView opaque

OffscreenQuickView replaces the contents of the default scene. Nothing
will be repainted beneath it.

On the other hand, if the OffscreenQuickView contains translucent region,
there might be visual glitches. To prevent that, this change makes
scene effect views opaque.
This commit is contained in:
Vlad Zahorodnii 2023-10-23 19:43:57 +03:00
parent 7478c81a48
commit 7b5ac472c9

View file

@ -84,7 +84,8 @@ bool QuickSceneEffectPrivate::isItemOnScreen(QQuickItem *item, Output *screen) c
}
QuickSceneView::QuickSceneView(QuickSceneEffect *effect, Output *screen)
: m_effect(effect)
: OffscreenQuickView(ExportMode::Texture, false)
, m_effect(effect)
, m_screen(screen)
{
setGeometry(screen->geometry());