<p dir="ltr">Looks good to me.<br>
--Jason Ekstrand</p>
<div class="gmail_quote">On Jul 7, 2013 10:41 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">
seat->pointer->focus->resource can be NULL, if the surface was<br>
created with weston_surface_create.<br>
---<br>
 src/input.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/input.c b/src/input.c<br>
index 644487a..a7a37e5 100644<br>
--- a/src/input.c<br>
+++ b/src/input.c<br>
@@ -1181,7 +1181,7 @@ seat_get_pointer(struct wl_client *client, struct wl_resource *resource,<br>
        wl_resource_set_implementation(cr, &pointer_interface, seat->pointer,<br>
                                       unbind_resource);<br>
<br>
-       if (seat->pointer->focus &&<br>
+       if (seat->pointer->focus && seat->pointer->focus->resource &&<br>
            wl_resource_get_client(seat->pointer->focus->resource) == client) {<br>
                struct weston_surface *surface;<br>
                wl_fixed_t sx, sy;<br>
--<br>
1.8.3.2<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>