<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Weston crash when touch->focus null"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92736#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Weston crash when touch->focus null"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92736">bug 92736</a>
from <span class="vcard"><a class="email" href="mailto:starxforever@live.com" title="Guanghua Tan <starxforever@live.com>"> <span class="fn">Guanghua Tan</span></a>
</span></b>
<pre>After debug into weston codes, I find this crash issue is really caused by
following commit:
input: pass the global touch coordinates to the touch grab
in this commit, a call to "weston_view_from_global_fixed" is added but no check
to touch->focus.
weston will crash when touch->focus is null.
It do have the null check on touch->focus before call to "wl_touch_send_down".
this crash only happens in "default_grab_touch_down()".
so i solved it as attached patch file shows.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>