<div dir="ltr">Functionally Reviewed-By: Mike Blumenkrantz <<a href="mailto:zmike@osg.samsung.com">zmike@osg.samsung.com</a>> but the commit message is a bit confusing</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 20, 2016 at 11:11 PM Jonas Ådahl <<a href="mailto:jadahl@gmail.com">jadahl@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We miss to NULL check the focus_client, which is only non-NULL when<br>
there the focused client has any resources.<br>
<br>
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=94899" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=94899</a><br>
<br>
Signed-off-by: Jonas Ådahl <<a href="mailto:jadahl@gmail.com" target="_blank">jadahl@gmail.com</a>><br>
---<br>
src/input.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/input.c b/src/input.c<br>
index c881792..8fe898c 100644<br>
--- a/src/input.c<br>
+++ b/src/input.c<br>
@@ -367,6 +367,9 @@ weston_pointer_send_axis_source(struct weston_pointer *pointer, uint32_t source)<br>
struct wl_resource *resource;<br>
struct wl_list *resource_list;<br>
<br>
+ if (!pointer->focus_client)<br>
+ return;<br>
+<br>
resource_list = &pointer->focus_client->pointer_resources;<br>
wl_resource_for_each(resource, resource_list) {<br>
if (wl_resource_get_version(resource) >=<br>
--<br>
2.5.5<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</blockquote></div>