[PATCH weston] desktop-shell: don't allow negative values in drag resize
Bryce Harrington
bryce at osg.samsung.com
Wed Mar 18 10:35:46 PDT 2015
On Wed, Mar 18, 2015 at 10:21:59AM -0700, Jasper St. Pierre wrote:
> Yeah, this is obviously correct.
>
> Reviewed-by: Jasper St. Pierre <jstpierre at mecheye.net>
Thanks, applied:
561662b..70ac0ed master -> master
> On Wed, Mar 18, 2015 at 9:16 AM, Derek Foreman <derekf at osg.samsung.com>
> wrote:
>
> > Now clamping width and height to a minimum of 1, 1 when drag resizing.
> >
> > Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
> > ---
> > desktop-shell/shell.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
> > index 826692f..aca91eb 100644
> > --- a/desktop-shell/shell.c
> > +++ b/desktop-shell/shell.c
> > @@ -1838,6 +1838,10 @@ resize_grab_motion(struct weston_pointer_grab
> > *grab, uint32_t time,
> > height += wl_fixed_to_int(to_y - from_y);
> > }
> >
> > + if (width < 1)
> > + width = 1;
> > + if (height < 1)
> > + height = 1;
> > shsurf->client->send_configure(shsurf->surface, width, height);
> > }
> >
> > --
> > 2.1.4
> >
> > _______________________________________________
> > wayland-devel mailing list
> > wayland-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/wayland-devel
> >
>
>
>
> --
> Jasper
> _______________________________________________
> 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