Blob Blame History Raw
Index: plasma/containments/panel/panel.cpp
===================================================================
--- plasma/containments/panel/panel.cpp	(revision 866997)
+++ plasma/containments/panel/panel.cpp	(revision 866998)
@@ -443,6 +443,9 @@
     if (viewGeom != m_lastViewGeom) {
         m_lastViewGeom = viewGeom;
         updateBorders(viewGeom);
+        if (containmentOpt && containmentOpt->view) {
+            containmentOpt->view->setMask(m_background->mask());
+        }
     }
 
     // blit the background (saves all the per-pixel-products that blending does)
@@ -451,10 +454,6 @@
 
     m_background->paintPanel(painter, option->exposedRect);
 
-    if (containmentOpt && containmentOpt->view) {
-        containmentOpt->view->setMask(m_background->mask());
-    }
-
     // restore transformation and composition mode
     painter->restore();
 }