[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Wed Nov 23 00:06:39 CET 2005


SVN commit 482442 by staikos:

don't cache regions from X11 events due to broken drivers or X11 implementations


 M  +5 -1      ksttoplevelview.cpp  


--- trunk/extragear/graphics/kst/kst/ksttoplevelview.cpp #482441:482442
@@ -149,12 +149,16 @@
   QTime t;
   t.start();
 #endif
+  QRegion cr = clipRegion();
   if (bounds.isNull()) {
-    p.setClipRegion(clipRegion());
+    p.setClipRegion(cr);
   } else {
     p.setClipRegion(bounds);
   }
   KstViewObject::paint(type, p, bounds);
+  if (!bounds.isNull()) {
+    p.setClipRegion(cr);
+  }
 #ifdef BENCHMARK
   int x = t.elapsed();
   kstdDebug() << " -> Parent class took " << x << "ms" << endl;


More information about the Kst mailing list