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:
parent
65321cf4e5
commit
f210d42d14
1 changed files with 5 additions and 0 deletions
|
@ -94,6 +94,7 @@ QVector< long > Shadow::readX11ShadowProperty(WId id)
|
||||||
|
|
||||||
bool Shadow::init(const QVector< long > &data)
|
bool Shadow::init(const QVector< long > &data)
|
||||||
{
|
{
|
||||||
|
#if KWIN_QT5_PORTING
|
||||||
for (int i=0; i<ShadowElementsCount; ++i) {
|
for (int i=0; i<ShadowElementsCount; ++i) {
|
||||||
QPixmap pix = QPixmap::fromX11Pixmap(data[i], QPixmap::ExplicitlyShared);
|
QPixmap pix = QPixmap::fromX11Pixmap(data[i], QPixmap::ExplicitlyShared);
|
||||||
if (pix.isNull() || pix.depth() != 32) {
|
if (pix.isNull() || pix.depth() != 32) {
|
||||||
|
@ -111,6 +112,10 @@ bool Shadow::init(const QVector< long > &data)
|
||||||
}
|
}
|
||||||
buildQuads();
|
buildQuads();
|
||||||
return true;
|
return true;
|
||||||
|
#else
|
||||||
|
#warning Shadow system needs porting
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Shadow::updateShadowRegion()
|
void Shadow::updateShadowRegion()
|
||||||
|
|
Loading…
Reference in a new issue