<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - VT switching crashes Xwayland and weston"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79609#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - VT switching crashes Xwayland and weston"
href="https://bugs.freedesktop.org/show_bug.cgi?id=79609">bug 79609</a>
from <span class="vcard"><a class="email" href="mailto:stu_dby@126.com" title="Boyan Ding <stu_dby@126.com>"> <span class="fn">Boyan Ding</span></a>
</span></b>
<pre>Ok, I think I have nearly found what causes the problem (thanks Tyler for the
detailed info).
When switching VTs back and forth, weston will reprobe input devices. So after
switching back from another VT, Xwayland, as a wayland client, will add new
device for the pointer (line 473 of hw/xwayland/xwayland-input.c). However, the
devPrivates field of the newly created device is not properly set (pointing to
NULL) thus cause the problem.
The field is set in xwl_realize_cursor in xwayland-cursor.c and that function
is passed into some functions as function pointer. However, from my debugging,
it is never called after the new pointer device was created.
So the problem may lie in forgetting to init something.</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>