<div class="gmail_quote">On Thu, Oct 18, 2012 at 2:46 PM, Keller Alexander-B42067 <span dir="ltr"><<a href="mailto:B42067@freescale.com" target="_blank">B42067@freescale.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">I am new to using the Wayland API, and I was just wondering about the seat structure. I was reading the documentation on the Wayland website and read that the seat structure takes care of device events and maintains device focus. (such
 as the keyboard, touch, and pointer)   My question is what functions take the event from the evdev and how can I access the event through the seat structure? Any help would be grateful. Thanks for your time.
<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-Alexander Keller <u></u><u></u></p>
</font></span></div>
</div>

<br></blockquote><div><br> </div></div>Hi Alexander,<br><br>In weston, the backend sends events to the compositor by calling the notify_* functions, for example notify_motion(), notify_button() and notify_key() found in weston/src/compositor.c. The backend can get events however it it sees fit. The drm backend (weston/src/compositor-drm.c) gets events directly from evdev, using the function set in weston/src/evdev.c. The x11 backend gets events from the X window where the weston output is rendered and sends them directly from weston/src/compositor-x11.c. You can see how the seat is used in practice by looking at notify_* and related functions. I hope this helps answer your question.<br>
<br><br>Scott<br>