summaryrefslogtreecommitdiff
path: root/extra/kdebase-workspace/fix-krunner-crash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/kdebase-workspace/fix-krunner-crash.patch')
-rw-r--r--extra/kdebase-workspace/fix-krunner-crash.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/kdebase-workspace/fix-krunner-crash.patch b/extra/kdebase-workspace/fix-krunner-crash.patch
new file mode 100644
index 000000000..2bdf0b512
--- /dev/null
+++ b/extra/kdebase-workspace/fix-krunner-crash.patch
@@ -0,0 +1,13 @@
+diff --git a/libs/plasmagenericshell/panelshadows.cpp b/libs/plasmagenericshell/panelshadows.cpp
+index ee55571..2f45153 100644
+--- a/libs/plasmagenericshell/panelshadows.cpp
++++ b/libs/plasmagenericshell/panelshadows.cpp
+@@ -122,7 +122,7 @@ void PanelShadows::Private::initPixmap(const QString &element)
+ {
+ #ifdef Q_WS_X11
+ QPixmap pix = q->pixmap(element);
+- if (pix.handle() == 0) {
++ if (!pix.isNull() && pix.handle() == 0) {
+ Pixmap xPix = XCreatePixmap(QX11Info::display(), QX11Info::appRootWindow(), pix.width(), pix.height(), 32);
+ QPixmap tempPix = QPixmap::fromX11Pixmap(xPix, QPixmap::ExplicitlyShared);
+ tempPix.fill(Qt::transparent);