[PATCH weston v2] input: check if the focus surface has a valid resource

2013-06-20 Thread Giulio Camuffo
the resource can be NULL in some cases, like when the focus is taken by the black_surface used in shell.c as fullscreen background. --- sorry for the noise, v1 has spaces instead of tabs src/input.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/input.c b/src/input.c index

Re: [PATCH weston v2] input: check if the focus surface has a valid resource

2013-06-20 Thread Jason Ekstrand
All, This looks good as far as I'm concerned. --Jason Ekstrand On Jun 20, 2013 11:15 AM, Giulio Camuffo giuliocamu...@gmail.com wrote: the resource can be NULL in some cases, like when the focus is taken by the black_surface used in shell.c as fullscreen background. --- sorry for the noise,

Re: [PATCH weston v2] input: check if the focus surface has a valid resource

2013-06-20 Thread Kristian Høgsberg
On Thu, Jun 20, 2013 at 06:13:07PM +0200, Giulio Camuffo wrote: the resource can be NULL in some cases, like when the focus is taken by the black_surface used in shell.c as fullscreen background. Yes, that looks right, it's something that would regress silently with the wl_resource changes.