Pass the correct window on to QWindowSystemInterface.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 14 Feb 2012 14:22:21 +0000 (15:22 +0100)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Tue, 14 Feb 2012 14:40:51 +0000 (15:40 +0100)
commit16c9a5b3eee986750dd7009f3e7795fb2ea58ba8
treeebb4989d0d2f1b43ce7d9bcc0418b2cc535ca620
parent2ed43741ab4106c6a1e9eb3a5cb9a6c5ff34f450
Pass the correct window on to QWindowSystemInterface.

Sometimes, the window's coordinate system is not bounded by
the coordinates of the QScreen (such as if the window uses a
landscape window orientation on a portrait screen).
QGuiApplication::topLevelAt() will fail to find this window, but since
we have the window already at the wayland plugin level we just use that.

We already did this for mouse events, so it's natural to do it here as
well.

Change-Id: Id086dd940aa1cf4eb4480117d243ab8a76da6cca
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/plugins/platforms/wayland/qwaylandtouch.cpp