[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed Apr 28 16:56:46 CEST 2004


CVS commit by staikos: 

flicker--


  M +9 -6      ksttoplevelview.cpp   1.36


--- kdeextragear-2/kst/kst/ksttoplevelview.cpp  #1.35:1.36
@@ -394,8 +394,5 @@ void KstTopLevelView::pressMove(const QP
   if (_pressTarget) {
     if (_pressDirection == 0) {
-      QPainter p;
-      p.begin(_w);
-      p.setRasterOp(Qt::NotROP);
-      p.drawWinFocusRect(_prevBand);
+      QRect old = _prevBand;
       QRect r;
       r = _pressTarget->geometry();
@@ -414,6 +411,12 @@ void KstTopLevelView::pressMove(const QP
       }
       _prevBand = r;
+      if (_prevBand != old) {
+        QPainter p;
+        p.begin(_w);
+        p.setRasterOp(Qt::NotROP);
+        p.drawWinFocusRect(old);
       p.drawWinFocusRect(r);
       p.end();
+      }
     } else {
       QRect old = _prevBand;





More information about the Kst mailing list