Re: [PATCH weston] tests: check for NULL surface in keyboard and pointer handlers

2016-04-22 Thread Pekka Paalanen
On Thu, 21 Apr 2016 12:06:49 -0700 Bryce Harrington wrote: > On Thu, Apr 21, 2016 at 05:12:47PM +0300, Pekka Paalanen wrote: > > From: Pekka Paalanen > > > > When a test destroys a wl_surface, it is still possible to get events > > referring to the destroyed surface. The surface in such cases w

Re: [PATCH weston] tests: check for NULL surface in keyboard and pointer handlers

2016-04-21 Thread Bryce Harrington
On Thu, Apr 21, 2016 at 05:12:47PM +0300, Pekka Paalanen wrote: > From: Pekka Paalanen > > 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 poin

[PATCH weston] tests: check for NULL surface in keyboard and pointer handlers

2016-04-21 Thread Pekka Paalanen
From: Pekka Paalanen 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