diff options
Diffstat (limited to 'gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch')
-rw-r--r-- | gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch b/gentoo/trinity-base/kdelibs/files/kdelibs-3.5.13.1-bug-1161.patch new file mode 100644 index 000000000..094708ccd --- /dev/null +++ b/gentoo/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()) |