<div dir="ltr">(Please Reply All in the future so that responses go to the mailing list)<br><br>Hi Han,<br><br>In that case, you should probably use a protocol designed for embedded surface layout, like ivi-shell, rather than xdg-shell. Embedded, static-size display is a very different use case than a modern desktop system which requires hotplug and multimonitor layouts.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 9:26 AM, Han, Guowei <span dir="ltr"><<a href="mailto:Guowei.Han@johnsonoutdoors.com" target="_blank">Guowei.Han@johnsonoutdoors.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 class="m_8653647155667067159WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">We are not allowing user move position since we are in an embedded system. So that’s not an issue for us. We don’t even have a mouse connected.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:magcius@gmail.com" target="_blank">magcius@gmail.com</a> [mailto:<a href="mailto:magcius@gmail.com" target="_blank">magcius@gmail.com</a>]
<b>On Behalf Of </b>Jasper St. Pierre<br>
<b>Sent:</b> Wednesday, January 03, 2018 12:24 PM<br>
<b>To:</b> Han, Guowei <<a href="mailto:Guowei.Han@johnsonoutdoors.com" target="_blank">Guowei.Han@johnsonoutdoors.<wbr>com</a>><br>
<b>Cc:</b> Kai-Uwe <<a href="mailto:ku.b-list@gmx.de" target="_blank">ku.b-list@gmx.de</a>>; wayland <<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.<wbr>freedesktop.org</a>><br>
<b>Subject:</b> Re: Window positioning<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Han,<br>
<br>
Allowing yourselves to place multiple windows where you want it then isn't going to solve that problem, since users can still drag them around, minimize them, etc. Multiprocess rendering is a bit tricksy, and there's no standardized way to do it right now.
The traditional technique is to build your own Wayland compositor inside your application, which is a bit heavyweight, and then use wl_subsurface to composite the results. This is what e.g. WebKit2's architecture does, and it's something I've tried to implement
in the past [0]. As the scope of a Wayland compositor becomes larger and larger over time, I think this is starting to become a bit impractical. It might be worth looking into a multi-process buffer-sharing protocol as a Wayland extension, since it's a use
case that keeps coming up.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">[0] <a href="https://github.com/magcius/wakefield" target="_blank">https://github.com/magcius/<wbr>wakefield</a><u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Wed, Jan 3, 2018 at 5:23 AM, Han, Guowei <<a href="mailto:Guowei.Han@johnsonoutdoors.com" target="_blank">Guowei.Han@johnsonoutdoors.<wbr>com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">We are running a multi process application. And GUI is act as a transparent top layer. All other process rendering by them self underneath. So its important for other process to place the window at right potion.<br>
<br>
Sent from my iPhone<u></u><u></u></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Jan 3, 2018, at 2:58 AM, Kai-Uwe <<a href="mailto:ku.b-list@gmx.de" target="_blank">ku.b-list@gmx.de</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p>Maybe you are after a full screen application then. With that you should be able to decide about the positioning on the whole output.<u></u><u></u></p>
<div>
<p class="MsoNormal">Am 03.01.2018 um 02:37 schrieb Han, Guowei:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Thanks Jasper. Do u know if there's a demo i can learn from? Currently i am creating a bigger surface bigger than screen size. and make subsurface so i can posion them as i want. Really don't think its a good way to do it.<br>
<br>
Sent from my iPhone<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Jan 2, 2018, at 4:25 PM, Jasper St. Pierre <<a href="mailto:jstpierre@mecheye.net" target="_blank">jstpierre@mecheye.net</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">*EXTERNAL EMAIL* <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Han, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You cannot position surfaces absolutely using the traditional xdg-shell protocol. However, for embedded cases, there are protocols like ivi-shell which provide that functionality.<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Dec 29, 2017 at 10:09 AM, Han, Guowei <<a href="mailto:Guowei.Han@johnsonoutdoors.com" target="_blank">Guowei.Han@johnsonoutdoors.<wbr>com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="m_8653647155667067159gmail-msonormal">Hi,<u></u><u></u></p>
<p class="m_8653647155667067159gmail-msonormal"> <u></u><u></u></p>
<p class="m_8653647155667067159gmail-msonormal">Wonder if there’s a way we can position window to anywhere we want using wayland or maybe weston?<u></u><u></u></p>
<p class="m_8653647155667067159gmail-msonormal"> <u></u><u></u></p>
<p class="m_8653647155667067159gmail-msonormal">Thanks,<u></u><u></u></p>
<p class="m_8653647155667067159gmail-msonormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying,
distribution, retention or use of the contents of this information is prohibited. If you have received this email in error, please immediately contact the sender and delete the email.
<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/wayland-devel</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal"> Jasper<u></u><u></u></p>
</div>
</div>
</div>
</div>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<pre>______________________________<wbr>_________________<u></u><u></u></pre>
<pre>wayland-devel mailing list<u></u><u></u></pre>
<pre><a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.<wbr>freedesktop.org</a><u></u><u></u></pre>
<pre><a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/wayland-devel</a><u></u><u></u></pre>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/wayland-devel</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<p class="MsoNormal"> Jasper<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"> Jasper<br></div>
</div>