window: Disregard motion events outside our current surface dimensions
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

krezovic/weston,giucam/weston,Gnurou/weston,udoprog/weston,eyolfson/weston,sir-murray/weston,Fantu/compositor-spice,krezovic/weston,Gnurou/weston,sir-murray/weston,jonnylamb/weston,jonnylamb/weston,Fantu/compositor-spice,udoprog/weston,Tarnyko/weston-xdg_surface_present,eyolfson/weston,mchalupa/weston,mchalupa/weston,xorgy/weston,kwm81/weston,giucam/weston,xorgy/weston,Fantu/compositor-spice,Tarnyko/weston-xdg_surface_present,kwm81/weston