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 <[email protected]>


Hi Derek,

This runs nicely.

Tested-by: Luis de Bethencourt <[email protected]>

> ---
>  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
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to