Fix badAtom issues introduced by behavior changes between Xlib and xcb.
authorGatis Paeglis <gatis.paeglis@nokia.com>
Mon, 30 Jul 2012 09:31:54 +0000 (11:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Aug 2012 18:38:54 +0000 (20:38 +0200)
commit7781e95623c0c86dc8b1fa5659cd26f29471818c
treecb392a309f15983906af16640e97841f3c2f779e
parent95bba3802b71532b656c277406ee802db099ed2f
Fix badAtom issues introduced by behavior changes between Xlib and xcb.

In Xlib, the 'length' variable gets updated with the the actual number
of 8-bit, 16-bit, or 32-bit items stored in the returned data, but xcb
returns the actual number of bytes read through xcb_get_property_value_length,
therefore the logic of calculating offset was broken.

Task-number: QTBUG-26709
Change-Id: I04de3b5c5631cfaf9b3c2c3d4513be73c569f61f
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/xcb/qxcbclipboard.cpp