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.
This commit is contained in:
Martin Gräßlin 2011-05-14 21:04:28 +02:00
parent 911b037fe8
commit 3775616a13

View file

@ -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];