From 18f8493dee7aa3399b182c1c344f8fb379ba4e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 3 Aug 2013 18:52:56 +0200 Subject: [PATCH] no layer repaints for the window geometry labels insufficient since there can be windows/content on top of the moved window and the labels are painted on top of the scene BUG: 318390 FIXED-IN: 4.11 REVIEW: 111861 --- effects/windowgeometry/windowgeometry.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/effects/windowgeometry/windowgeometry.cpp b/effects/windowgeometry/windowgeometry.cpp index 26a15d142f..fca5bda351 100644 --- a/effects/windowgeometry/windowgeometry.cpp +++ b/effects/windowgeometry/windowgeometry.cpp @@ -145,7 +145,7 @@ void WindowGeometry::slotWindowStepUserMovedResized(EffectWindow *w, const QRect { if (iAmActivated && iAmActive && w == myResizeWindow) { if (myExtraDirtyArea.isValid()) - w->addLayerRepaint(myExtraDirtyArea); + effects->addRepaint(myExtraDirtyArea); myExtraDirtyArea = QRect(); @@ -197,11 +197,9 @@ void WindowGeometry::slotWindowStepUserMovedResized(EffectWindow *w, const QRect myExtraDirtyArea |= myMeasure[1]->geometry(); myExtraDirtyArea |= myMeasure[2]->geometry(); myExtraDirtyArea.adjust(-6,-6,6,6); - if (w->expandedGeometry().contains(myExtraDirtyArea)) - myExtraDirtyArea = QRect(); if (myExtraDirtyArea.isValid()) - w->addLayerRepaint(myExtraDirtyArea); + effects->addRepaint(myExtraDirtyArea); } }