<div dir="ltr">This sounds like you want to use subsurfaces, then.<br><br>Any reason you can't just draw the child surface on top of the father surface, though?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 6:16 PM, Hongze Zhao <span dir="ltr"><<a href="mailto:zhaohongze@gmail.com" target="_blank">zhaohongze@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jasper,<div><br></div><div>Thanks for reply. </div><div><br></div><div>Here is my use case.</div><div> <img src="cid:ii_i0hcgeb10_148aa22669b90b7b" height="279" width="562"><br></div><div>Suppose we have a client called "father", who has a larger surface called "father surface" and a client called "child", whose smaller surface is "child surface". The child surface should be displayed in a given relative position above father surface and maintain their relative position. When I move father surface, the child surface will be moved together. But the child surface cannot be moved. Thus the child surface will looks like a part of father surface. I just need it works in the simplest scenario. I assume the two surfaces is in the same workspace, both surfaces cannot be resized, maximized or fullscreened. The two clients and compositor should work together to achieve this goal. </div><div><br></div><div>I know this is a weird use case. I am just wondering if there is some natural or easy way to implement this functionality. Or I have to do a lot of modifications.</div><div><br></div><div>Thanks,</div><div>Hongze</div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 7:54 PM, Jasper St. Pierre <span dir="ltr"><<a href="mailto:jstpierre@mecheye.net" target="_blank">jstpierre@mecheye.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>The only way to position surfaces relatively one to another is by using a subsurface. But I imagine this isn't exactly what you want.<br><br></div>Can you explain a bit more about your use case? What happens if I put one surface on a different workspace from the others? Should the two be stacked independently (e.g. your window A, my terminal, your window B)? What happens when I resize the surfaces? Or maximize or fullscreen them?<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Sep 24, 2014 at 5:49 PM, Hongze Zhao <span dir="ltr"><<a href="mailto:zhaohongze@gmail.com" target="_blank">zhaohongze@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div dir="ltr"><div>Hi All,</div><div><br></div><div>I am doing some experiments on weston compositor. I am wondering if someone could give me some hints about how to maintain relative position of two surfaces. </div><div><br></div><div>Suppose I have two wayland clients. After I grab and move the surface of one client, I would like to maintain the relative positions of the the surfaces from two clients. Thus I have to automatically update the position of the other surface. </div><div><br></div><div>I feel that surface position is stored in an instance of weston_view, which is mainly maintained by desktop-shell. So I am not sure if there is some easy way to achieve my goal by modifying desktop-shell.</div><div><br></div><div>Thanks,</div><div>Hongze </div></div>
</div>
<br></div></div>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br>  Jasper<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">Hongze Zhao<div>Department of Computer Science</div><div>Duke University</div><div>Email: <a href="mailto:zhaohongze@gmail.com" title="[GMCP] Compose a new mail to zhaohongze@gmail.com" rel="noreferrer" target="_blank">zhaohongze@gmail.com</a><br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>