From 5c0d24c7bff00905b1fee3c6072bfedf2c5bec27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 3 Jul 2011 11:07:27 +0200 Subject: [PATCH] Fix a rendering glitch caused by the reflections in CoverSwitch Seems like we need to use drawWindow instead of paintWindow or KWin will keep some parts of the paint data. BUG: 276810 FIXED-IN: 4.7.0 --- effects/coverswitch/coverswitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/coverswitch/coverswitch.cpp b/effects/coverswitch/coverswitch.cpp index 9f462f172c..352236033f 100644 --- a/effects/coverswitch/coverswitch.cpp +++ b/effects/coverswitch/coverswitch.cpp @@ -752,7 +752,7 @@ void CoverSwitchEffect::paintWindowCover(EffectWindow* w, bool reflectedWindow, } else if (stop) { data.opacity *= 1.0 - timeLine.currentValue(); } - effects->paintWindow(w, + effects->drawWindow(w, PAINT_WINDOW_TRANSFORMED, infiniteRegion(), data); shader->setUniform("screenTransformation", origMatrix);