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

Bryce Harrington bryce at osg.samsung.com
Fri Oct 23 12:47:31 PDT 2015


On Thu, Aug 27, 2015 at 09:23:33PM -0700, Bryce Harrington wrote:
> 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>

Pushed both patches, sorry it took so long.

remote: I: patch #58059 updated using rev 5d13548c7e0da6bbd9a5ee2edc1b94f6b36133ec
remote: I: patch #58058 updated using rev 46812b6e71e43c8593969d609111e4935f7d6c4e
remote: I: 2 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/wayland/weston
   fa41eec..46812b6  master -> master
 
> > ---
> >  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
> _______________________________________________
> 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