Under X11, the "parent_window" argument should have the form x11:<XID>, where <XID> is the XID of the application window in hexadecimal notation. For example, x11:1234.
This is used to parent the file dialog window to steam, group it in the taskbar, transfer focus to it with strict focus stealing prevention on wayland, etc.
(Afaik this should also work on xwayland, I made a test with a x11 window + portal but I cannot test it on my setup as xwayland-satellite doesn't yet support xdg-foreign)
Looking at the
org.freedesktop.portal.FileChooser /org/freedesktop/portal/desktoprequest (captured with Bustle) steam makes:The first argument in the request is the window identifier, specifically in x11:
This is used to parent the file dialog window to steam, group it in the taskbar, transfer focus to it with strict focus stealing prevention on wayland, etc.
(Afaik this should also work on xwayland, I made a test with a x11 window + portal but I cannot test it on my setup as xwayland-satellite doesn't yet support xdg-foreign)