summaryrefslogtreecommitdiffstats
path: root/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch
diff options
context:
space:
mode:
Diffstat (limited to 'trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch')
-rw-r--r--trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch b/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch
new file mode 100644
index 00000000..094708cc
--- /dev/null
+++ b/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch
@@ -0,0 +1,16 @@
+diff --git a/kdeui/ksharedpixmap.cpp b/kdeui/ksharedpixmap.cpp
+index 29c6702..64c54e1 100644
+--- a/kdeui/ksharedpixmap.cpp
++++ b/kdeui/ksharedpixmap.cpp
+@@ -160,9 +160,8 @@ bool KSharedPixmap::x11Event(XEvent *event)
+ void *drawable_id = (void *) pixmap_id;
+ Drawable pixmap = *(Drawable*) drawable_id;
+
+- Status status = XGetGeometry(qt_xdisplay(), pixmap, &root, &dummy, &dummy, &width, &height, &udummy, &udummy);
+-
+- if (status == BadDrawable)
++ if (!XGetGeometry(qt_xdisplay(), pixmap, &root, &dummy, &dummy,
++ &width, &height, &udummy, &udummy))
+ return false;
+
+ if (d->rect.isEmpty())