summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengine_x11.cpp
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-06-21 17:04:43 +0200
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-07-02 12:25:31 +0200
commitde7a1e3780c145b8721f42bb9477224b5a8ae93f (patch)
tree627fcb38c1d867286a3b78a13417163a09f572e4 /src/gui/text/qfontengine_x11.cpp
parent48ecc50d1d5cb698749df97e4ecee0f096904618 (diff)
Enable glyph uploads from a thread in the X11 font engine.
Note: this doesn't necessarily mean it's thread-safe yet.
Diffstat (limited to 'src/gui/text/qfontengine_x11.cpp')
-rw-r--r--src/gui/text/qfontengine_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_x11.cpp b/src/gui/text/qfontengine_x11.cpp
index b7e4be2c9a..aee21f6e46 100644
--- a/src/gui/text/qfontengine_x11.cpp
+++ b/src/gui/text/qfontengine_x11.cpp
@@ -992,7 +992,7 @@ QFontEngineX11FT::QFontEngineX11FT(FcPattern *pattern, const QFontDef &fd, int s
face_id.filename = file_name;
face_id.index = face_index;
- canUploadGlyphsToServer = qApp->thread() == QThread::currentThread();
+ canUploadGlyphsToServer = QApplication::testAttribute(Qt::AA_X11InitThreads) || (qApp->thread() == QThread::currentThread());
subpixelType = Subpixel_None;
if (antialias) {