Skip to content
Commit d6d9d5b8 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

The weirdest patch ever

There is a bug in Qt/X11 which prevents the QPainter::drawText() call
be used in any non-gui thread, even when
QFontDatabase::supportsThreadedFontRendering() returns true. It seems
like some function in the font rendering routine eats the X11 replies
which are awaited by the GUI thread, effectively making the GUI thread
to hang up. The hangup happens in xcb_wait_for_reply().

This dirty workaround makes the text brush be initialized in the
GUI thread, saved to a global singleton and then fetched by the
threaded code in the paintop.  Yes, that is weird, but this is the
best thing we can do right now :(

BUG:330492
parent eb403a14
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment