diff options
author | Alexander Volkov <a.volkov@rusbitech.ru> | 2019-01-24 15:53:28 +0300 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2019-01-25 15:59:51 +0000 |
commit | 730cbad8824bcfcb7ab60371a6563cfb6dd5658d (patch) | |
tree | 4e1d88c0662fb1b90f55758bfed92762a484a3ec /src/tools/moc/util/generate.sh | |
parent | c9b9a0ea2f274688da26af20102d349336fdb2a0 (diff) |
xcb: Avoid repaint lags with DnD
The lags can be seen when dragged data is requested for a
MIME type. This leads to calling QXcbClipboard::waitForClipboardEvent()
which runs a loop in the GUI thread and processes events from
QXcbEventQueue. The loop ends when a corresponding event is
received, otherwise it makes a delay of 50 ms before the next
iteration.
Sync with QXcbEventQueue thread by QWaitCondition instead
of using the delay. This way the loop will end as soon as
possible and Expose events will be processed with minimal
delay.
Task-number: QTBUG-44849
Fixes: QTBUG-55442
Fixes: QTBUG-62344
Fixes: QTBUG-73253
Change-Id: Ie18d63b51a7260c83d53ffe1169b25e5135dd73b
Reviewed-by: Mikhail Svetkin <mikhail.svetkin@qt.io>
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/tools/moc/util/generate.sh')
0 files changed, 0 insertions, 0 deletions