window: Disregard motion events outside our current surface dimensions
authorRob Bradford <rob@linux.intel.com>
Thu, 11 Jul 2013 18:41:27 +0000 (19:41 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 13 Jul 2013 04:00:49 +0000 (00:00 -0400)
commit5f087746ee00573fb8e067d3c25ec2b608e1ffe1
tree32529c42182916871f99947e915e6fc5bef9e737
parent7000283741394f7ccf01e9358e0d559a5007e4b7
window: Disregard motion events outside our current surface dimensions

It is possible to receive a motion event that was generated by the
compositor based on a pick of a surface of old dimensions. This was
triggerable on toytoolkit clients when minimising. The new window
dimensions were propagated through the widget hierarchy before the event
was dispatched.

This issue was triggering a segfault due to the focussed widget being
lost as the client code tried to identify which widget should have the
focus using co-ordinates outside the dimensions of the surface.

https://bugs.freedesktop.org/show_bug.cgi?id=66795
clients/window.c