<br><br><div class="gmail_quote">On Tue, Feb 21, 2012 at 4:15 AM, Pekka Paalanen <span dir="ltr">&lt;<a href="mailto:ppaalanen@gmail.com">ppaalanen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 20 Feb 2012 23:52:55 -0500<br>
David Jackson &lt;<a href="mailto:djackson452@gmail.com">djackson452@gmail.com</a>&gt; wrote:<br>
<br>
&gt;  I am asking for the ability to display a wayland app to an X server. My<br>
&gt; original suggestion was perhaps can be done via a runtime loadable client<br>
&gt; side driver that would support the wayland client API, there would be<br>
&gt; drivers for rendering from a wayland client to a wayland session and to an<br>
&gt; wayland client to an X session and they can be selected at runtime, and the<br>
&gt; selected one loaded into the wayland application. The wayland client driver<br>
&gt; for X client connection to X server could be glue code between wayland APi<br>
&gt; and Xlib.<br>
<br>
</div>This does not fit at all in the scope of libwayland-client. But you<br>
might write a ABI-compatible libwayland-client that talks directly to<br>
X, and then LD_PRELOAD it. I do not dare to comment on the sanity of<br>
this approach.<br>
<br>
Supporting different display architectures and protocols really is the<br>
toolkits&#39; job.<br>
<div class="im"><br>
&gt; as far as the stacking, it went a little over my head. I guess you are<br>
&gt; talking about coordination of the application stacking on the X server and<br>
&gt; the wayland server, and how the stacking models generate expose events. I<br>
&gt; suppose that the wayland server requests pixmaps for newly exposed areas<br>
<br>
</div>There are no expose events nor server-inflicted damage to client<br>
buffers in Wayland. At most, there could be an event for &quot;server lost<br>
the whole buffer&quot;, but for now there is not.<br>
<br>
Perhaps the sanest way (ignoring support by toolkits) is to write a<br>
middle-man server for converting between X and Wayland, if you cannot<br>
live with the existing solutions. You should also look into how the E,<br>
KDE and Gnome window managers are being ported, maybe they can act as<br>
an X wm and a Wayland server at the same time, running on X?<br>
<br>
Weston can run on X, but you cannot remote it by X protocol, because<br>
a) Weston requires direct rendering, and b) Weston does not use glX.<br>
<br>
<br>
Thanks,<br>
pq<br>
</blockquote></div><br>As I mentioned, counting on applications is really not a reliable method, some programmers are sloppy and wont do it. The capability really needs to be somewhere in wayland to sort of be able to count on it.<br>
<br>If an expose event is not given to an application, how can it know when to send new data to be displayed in just exposed areas of the app. <br>