x11docker --xpra on Wayland: Chromium menus/popups appear out of place and disappear
Setup: Fedora (Wayland host), Podman backend, linuxserver/chromium image. Command: x11docker --backend=podman --xpra -I -- --shm-size=10g -- linuxserver/chromium chromium-browser --no-sandbox
v7.8.0
Issue: In --xpra seamless mode, Chromium hamburger menu and right-click contexts flash briefly at top-left of host screen, get decorations, then auto-close. Can't use menus.
Workaround: Force xpra client to X11 backend with GDK_BACKEND=x11 xpra attach ... (reported to work in the issue below). But x11docker auto-launches client without easy way to inject this env. Prefix -- GDK_BACKEND=x11 -- doesn't propagate reliably to host client. Patching script locally hard-codes it, but fails due to no Xorg on Wayland host (manual xpra needs X setup?).
Related: Xpra issue: Xpra-org/xpra#4246 (comment) (confirms GDK_BACKEND=x11 workaround for Wayland client popup bugs).
Request: Add option to pass env vars (e.g., --xpra-client-env=GDK_BACKEND=x11) to host-side xpra client for better Wayland support. Or auto-detect Wayland host and force X11 client.
Can x11docker help set up Xorg in this case? Perhaps a higher-level workaround like --xpra-xorg?
I've tried every alternative you've suggested, and other than --hostdisplay (which has become much more complicated on the latest Fedora), xpra is the only option that works well for day-to-day use. There's just this one bug that's a showstopper.
It seems the developers need to figure out how to properly find the parent window, but they lack the necessary API in Wayland. Since Wayland is being adopted and enabled by default in new distros, this issue is becoming unavoidable.
Logs/verbose output available if needed. Thanks!
x11docker --xpra on Wayland: Chromium menus/popups appear out of place and disappear
Setup: Fedora (Wayland host), Podman backend, linuxserver/chromium image. Command:
x11docker --backend=podman --xpra -I -- --shm-size=10g -- linuxserver/chromium chromium-browser --no-sandboxv7.8.0
Issue: In --xpra seamless mode, Chromium hamburger menu and right-click contexts flash briefly at top-left of host screen, get decorations, then auto-close. Can't use menus.
Workaround: Force xpra client to X11 backend with
GDK_BACKEND=x11 xpra attach ...(reported to work in the issue below). But x11docker auto-launches client without easy way to inject this env. Prefix-- GDK_BACKEND=x11 --doesn't propagate reliably to host client. Patching script locally hard-codes it, but fails due to no Xorg on Wayland host (manual xpra needs X setup?).Related: Xpra issue: Xpra-org/xpra#4246 (comment) (confirms GDK_BACKEND=x11 workaround for Wayland client popup bugs).
Request: Add option to pass env vars (e.g.,
--xpra-client-env=GDK_BACKEND=x11) to host-side xpra client for better Wayland support. Or auto-detect Wayland host and force X11 client.Can x11docker help set up Xorg in this case? Perhaps a higher-level workaround like --xpra-xorg?
I've tried every alternative you've suggested, and other than --hostdisplay (which has become much more complicated on the latest Fedora), xpra is the only option that works well for day-to-day use. There's just this one bug that's a showstopper.
It seems the developers need to figure out how to properly find the parent window, but they lack the necessary API in Wayland. Since Wayland is being adopted and enabled by default in new distros, this issue is becoming unavoidable.
Logs/verbose output available if needed. Thanks!