[PATCH weston 1/2] clients: try harder to discard motion after resize

Bryce Harrington bryce at osg.samsung.com
Thu Aug 27 21:23:33 PDT 2015


On Wed, Aug 26, 2015 at 05:13:26PM -0500, Derek Foreman wrote:
> 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 at osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>

> ---
>  clients/window.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index 0e73f5b..52de248 100644
> --- a/clients/window.c
> +++ b/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;
>  
> -- 
> 2.4.6
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list