Prevented Xlib sequence errors in xcb plugin.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 29 Nov 2011 09:16:57 +0000 (10:16 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 Nov 2011 13:00:01 +0000 (14:00 +0100)
commit3aeeb53d737798923b73bc99d43c0e84cf28eebe
tree60a8507cb759ad1b199c48791e6fd9eef18cd81d
parent6366a3186a02d155ad1621377188cbbed41402bc
Prevented Xlib sequence errors in xcb plugin.

Prevent Xlib errors of the form
"Xlib: sequence lost (0x2716a > 0x1717c) in reply type 0x11!" from
being printed. We know the cause of these is because we're manually
calling the XESetWireToEvent handlers since those are not handled by
XCB, and this confuses Xlib since it's then seeing events with old
sequence numbers. We simply set the sequence number to the latest
sequence number and the errors go away.

Change-Id: I2a9e7a7cfd0ba8692e43ce61f796a8189305e0d3
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
src/plugins/platforms/xcb/qxcbconnection.cpp