diff options
author | Martin Gräßlin <mgraesslin@kde.org> | 2015-02-16 15:50:11 +0100 |
---|---|---|
committer | Martin Gräßlin <mgraesslin@kde.org> | 2015-02-17 09:55:10 +0000 |
commit | 1e32e71403a6a9cb117343464fbc34564598e831 (patch) | |
tree | 7b9a720aa14557e3b3138439f2edddb63149858d /src/hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxintegration.cpp | |
parent | 8458e06b25c07ebc8cf6b210fc1ea4cc9aeb42eb (diff) |
Run eventDispatcher in QWaylandDisplay::forceRoundTrip
If the application uses QCoreApplication::setEventDispatcher before
the QGuiApplication is created the blocking roundtrip might block the
application indefinitely. This can happen if the application starts a
Wayland server in the same process before the QGuiApplication is
created. And the QtWayland plugin connects to this server. In this case
a roundtrip blocks as the Wayland server cannot process the events
the QWaylandDisplay is waiting for.
By running the event dispatcher manually and using the pending
variant for dispatching the Wayland event queue, the application can
be kept alive.
Change-Id: I9c36fccbae8921e1ae9a0a8b7f460520b1b65d5c
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Diffstat (limited to 'src/hardwareintegration/client/xcomposite-glx/qwaylandxcompositeglxintegration.cpp')
0 files changed, 0 insertions, 0 deletions