Debian Codegraph @

doc/window-identifiers.rst

raw
1 Window Identifiers
2 ==================
3
4 Most portals interact with the user by showing dialogs. These dialogs should
5 generally be placed on top of the application window that triggered them. To
6 arrange this, the compositor needs to know about the application window. Many
7 portal requests expect a ``"parent_window"`` string argument for this reason.
8
9 Under X11, the ``"parent_window"`` argument should have the form ``x11:<XID>``,
10 where ``<XID>`` is the XID of the application window in hexadecimal notation.
11 For example, ``x11:1234``.
12
13 Under Wayland, it should have the form ``wayland:<HANDLE>``, where ``<HANDLE>``
14 is a surface handle obtained with the `xdg_foreign
15 <https://gitlab.freedesktop.org/wayland/wayland-protocols/-/blob/main/unstable/xdg-foreign/xdg-foreign-unstable-v2.xml>`_
16 protocol. For example, ``wayland:~12l9jdl.-a``.
17
18 For other windowing systems, or if you don't have a suitable handle, just pass
19 an empty string for ``"parent_window"``.