Work around Bug 1161

(cherry picked from commit 1c14fecac3)
v3.5.13-sru
Timothy Pearson 12 years ago committed by Slávek Banko
parent 7e2b38bcdd
commit 5359dcf36f

@ -162,6 +162,13 @@ bool KSharedPixmap::x11Event(XEvent *event)
Status status = XGetGeometry(qt_xdisplay(), pixmap, &root, &dummy, &dummy, &width, &height, &udummy, &udummy); Status status = XGetGeometry(qt_xdisplay(), pixmap, &root, &dummy, &dummy, &width, &height, &udummy, &udummy);
// HACK
// XGetGeometry can return bogus values on some systems, leading to a SIGFPE
// See http://bugs.trinitydesktop.org/show_bug.cgi?id=1161 for details
// Work around that here...
if ((width < 1) || (height < 1))
return false;
if (status == BadDrawable) if (status == BadDrawable)
return false; return false;

Loading…
Cancel
Save