Disable Shadow System for porting

Shadow system needs to change to not pass XPixmap handles around. That
was handy in Qt 4 but is difficult in both Widget Style and KWin in Qt5.
This commit is contained in:
Martin Gräßlin 2013-07-23 06:37:29 +02:00
parent 65321cf4e5
commit f210d42d14

View file

@ -94,6 +94,7 @@ QVector< long > Shadow::readX11ShadowProperty(WId id)
bool Shadow::init(const QVector< long > &data)
{
#if KWIN_QT5_PORTING
for (int i=0; i<ShadowElementsCount; ++i) {
QPixmap pix = QPixmap::fromX11Pixmap(data[i], QPixmap::ExplicitlyShared);
if (pix.isNull() || pix.depth() != 32) {
@ -111,6 +112,10 @@ bool Shadow::init(const QVector< long > &data)
}
buildQuads();
return true;
#else
#warning Shadow system needs porting
return false;
#endif
}
void Shadow::updateShadowRegion()