path: root/src/plugins/platforms/windows/qwindowsnativeinterface.h
diff options
authorLukáš Turek <>2019-02-22 19:26:37 +0100
committerGatis Paeglis <>2019-03-14 12:14:30 +0000
commit036fe49580d7470eeaa4c168845bdf2483946f22 (patch)
treeab390ae3d3e215c64c0199f38cc8373d413a65b7 /src/plugins/platforms/windows/qwindowsnativeinterface.h
parent85250da09d91117141815db6aa88d77b03fbb436 (diff)
XCB: Fix clipboard breaking when timer wraps after 50 days
xcb_timestamp_t is a 32-bit unsigned value in miliseconds, so it wraps after 49.7 days. When it happens, QXcbConnection::m_time stops updating and copy & paste in an application would not work until the application is restarted. This patch detects the timer wrap and allows m_time to wrap too. The fix was verified in KDE desktop with applications running for 51 days. Fixes: QTBUG-65145 Change-Id: I328c4179c1b1f71914adda6f9a0ca3991a7e808e Reviewed-by: Uli Schlachter <> Reviewed-by: Milian Wolff <> Reviewed-by: Gatis Paeglis <>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsnativeinterface.h')
0 files changed, 0 insertions, 0 deletions