<div dir="ltr"><div>Hi Sébastien,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 8 Aug 2022 at 14:50, Sébastien Wilmet <<a href="mailto:swilmet@informatique-libre.be">swilmet@informatique-libre.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I've seen the discussion this month about positioning windows.<br>
<br>
The use-case is something concrete: the Devhelp [1] assistant window.<br>
<br>
For some background, Devhelp (and libdevhelp) is implemented flexibly:<br>
it can be used as a standalone app, it can be integrated into GTK IDEs,<br>
the standalone app can be called to search or open a symbol.<br>
<br>
And there is the Devhelp assistant window: it is typically used by a<br>
text editor, to ask Devhelp to show a small window with the<br>
documentation for the symbol under the cursor.<br>
<br>
And that is where positioning is necessary: to not occlude the line of<br>
text where the cursor is, and to show the documentation at a sensible<br>
place (near the cursor position).<br>
<br>
With Wayland, this should be implemented with a subsurface. I may be<br>
wrong, but in this case it's not possible, because it's not the same<br>
app (the same process).<br></blockquote><div><br></div><div>See the xdg-foreign protocol [2].</div><div><br></div><div>Cheers</div><div>Olivier</div><div><br></div><div>[2] <a href="https://gitlab.freedesktop.org/wayland/wayland-protocols/-/tree/main/unstable/xdg-foreign">https://gitlab.freedesktop.org/wayland/wayland-protocols/-/tree/main/unstable/xdg-foreign</a> </div></div></div>