Take into account input shaping in findRealWindow
authorAlbert Astals Cid <albert.astals@canonical.com>
Wed, 22 Feb 2012 09:33:09 +0000 (10:33 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Mar 2012 18:00:15 +0000 (19:00 +0100)
commite51e7b851f6452ed19ae960179963559ab0b78ea
tree1c42e9b4deb00e6931a988f4b32e7cf26c81f5bc
parent4494ddfec7e4a74ae1192eed25edf8e3ee294755
Take into account input shaping in findRealWindow

In previous commits we took into account bound shaping, but X also
supports input shaping, so make sure it's inside both input and bounding
shaping to consider the position as inside a window

My tests show that when unset Bound Shaping and Input Shaping return the
rectangle of the window itself, so we need to be inside both of the
rectangle sets to consider the position as a dragabble position for the
window

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