Fixed xdnd protocol-version detection code
authorGatis Paeglis <gatis.paeglis@digia.com>
Mon, 1 Oct 2012 10:13:10 +0000 (12:13 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 2 Oct 2012 11:22:49 +0000 (13:22 +0200)
commit03fd3a8f34679793b87a5d901202ea2805b89d84
tree7aae7489318f125bce171d110de41c8577c47f82
parentad4111116720bb03cd6da42e5f6448e511879d24
Fixed xdnd protocol-version detection code

Bug introduced when porting from Xlib to xcb. Xcb returns
actual number of bytes read while Xlib returns number
of 8-bit, 16-bit, or 32-bit items stored in the returned data.

Task-number: QTBUG-27403

Change-Id: Ia64da1953ec7be8d32cc591565cd1b41ce8d7dbb
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/plugins/platforms/xcb/qxcbdrag.cpp