Use-case when positioning a window is necessary

Christopher James Halse Rogers raof at
Wed Aug 10 04:41:16 UTC 2022

On Tue, Aug 9 2022 at 15:46:30 +01:00:00, David Edmundson 
<david at> wrote:
>> And that is where positioning is necessary: to not occlude the line 
>> of
> text where the cursor is, and to show the documentation at a sensible
> place (near the cursor position).
> xdg-foreign will just get that window on top. You don't have any
> control of where on top it is, merely a child-parent relationship
> It will occlude or be nowhere near the cursor. xdg-foreign alone won't
> be a complete solution.

This sounds quite a lot like an xdg_popup; that has all the “this 
surface is associated with this rectangle of this other surface” 
infrastructure. Extending xdg-foreign to allow import of xdg_popups in 
addition to xdg_toplevels looks like it would fully support this 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the wayland-devel mailing list