From 3775616a13293ddcd54c8c28caf9299f1795840a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sat, 14 May 2011 21:04:28 +0200 Subject: [PATCH] Do not deep copy the shadow pixmaps The deep copy does not work with raster as it creates a non-native pixmap. In fact the deep copy is not needed any more as it was a safety check during development when apps using raster could crash kwin. --- shadow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shadow.cpp b/shadow.cpp index 537f464f49..14bac5e562 100644 --- a/shadow.cpp +++ b/shadow.cpp @@ -103,7 +103,7 @@ bool Shadow::init(const QVector< long > &data) if (pix.isNull() || pix.depth() != 32) { return false; } - m_shadowElements[i] = pix.copy(0, 0, pix.width(), pix.height()); + m_shadowElements[i] = pix; } m_topOffset = data[ShadowElementsCount]; m_rightOffset = data[ShadowElementsCount+1];