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>
dev
Derek Foreman 9 years ago committed by Bryce Harrington
parent fa41eec4f7
commit 5d13548c7e
  1. 4
      clients/window.c

@ -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;

Loading…
Cancel
Save