clients: try harder to discard motion after resize

If we're going to ignore motion below and to the right when coming
out of maximize, we should probably also ignore it above and to
the left.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Tested-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
Derek Foreman 2015-08-26 17:13:26 -05:00 committed by Bryce Harrington
parent fa41eec4f7
commit 5d13548c7e

View file

@ -2748,7 +2748,9 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer,
* still have a pending motion event that the compositor has picked
* based on the old surface dimensions
*/
if (sx > window->main_surface->allocation.width ||
if (sx < window->main_surface->allocation.x ||
sy < window->main_surface->allocation.y ||
sx > window->main_surface->allocation.width ||
sy > window->main_surface->allocation.height)
return;