Properly handle position in non-synthetic ConfigureNotify with xcb
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Sat, 5 Nov 2011 12:00:53 +0000 (14:00 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 15 Nov 2011 00:05:49 +0000 (01:05 +0100)
commitfc659979e6552efc1360e17e193b44ec2e2df529
treeca35b650258cf8ed2d2e25d768ae705ac60bbde9
parentf5b9982805d70a767208c0fedbb20cc6aa8930b6
Properly handle position in non-synthetic ConfigureNotify with xcb

The received window position cannot be trusted blindly, e.g. in case
of resizing a window via the mouse or calling showMaximized() the
position is bogus (for our purposes). Instead, it needs to be queried.

Before 37f338e5edc6d7b70b5a4eaf63326f2a22d7bfbd an incomplete
workaround was in place however it got removed in that commit,
resulting in weird off-by-a-certain-amount mouse position issues in
certain use cases. This patch aims to fix the issue similarly to how
it was done in Qt4.

Change-Id: I2d2a69b81a2782117b700fe366fae4c102aca1f4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp