[PATCH weston] tests: check for NULL surface in keyboard and pointer handlers
Pekka Paalanen
ppaalanen at gmail.com
Fri Apr 22 07:47:37 UTC 2016
On Thu, 21 Apr 2016 12:06:49 -0700
Bryce Harrington <bryce at osg.samsung.com> wrote:
> On Thu, Apr 21, 2016 at 05:12:47PM +0300, Pekka Paalanen wrote:
> > From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> >
> > When a test destroys a wl_surface, it is still possible to get events
> > referring to the destroyed surface. The surface in such cases will be
> > NULL.
> >
> > Handle NULL surface gracefully in keyboard and pointer enter/leave
> > handlers. Touch-down handler is already NULL-safe.
> >
> > This fixes a SEGV in a test I am writing for wp_viewport.
> >
> > Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
>
> LGTM,
> Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>
Pushed:
ed6014a..fd01ba0 master -> master
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160422/85b913a0/attachment.sig>
More information about the wayland-devel
mailing list