<p dir="ltr">All,<br>
This looks good as far as I'm concerned.<br>
--Jason Ekstrand</p>
<div class="gmail_quote">On Jun 20, 2013 11:15 AM, "Giulio Camuffo" <<a href="mailto:giuliocamuffo@gmail.com">giuliocamuffo@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
the resource can be NULL in some cases, like when the focus is<br>
taken by the black_surface used in shell.c as fullscreen background.<br>
---<br>
<br>
sorry for the noise, v1 has spaces instead of tabs<br>
<br>
 src/input.c | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/src/input.c b/src/input.c<br>
index e670eb6..ad4512d 100644<br>
--- a/src/input.c<br>
+++ b/src/input.c<br>
@@ -1110,6 +1110,11 @@ pointer_set_cursor(struct wl_client *client, struct wl_resource *resource,<br>
<br>
        if (pointer->focus == NULL)<br>
                return;<br>
+       /* pointer->focus->resource can be NULL. Surfaces like the<br>
+       black_surface used in shell.c for fullscreen don't have<br>
+       a resource, but can still have focus */<br>
+       if (pointer->focus->resource == NULL)<br>
+               return;<br>
        if (wl_resource_get_client(pointer->focus->resource) != client)<br>
                return;<br>
        if (pointer->focus_serial - serial > UINT32_MAX / 2)<br>
--<br>
1.8.3.1<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div>