Running Xwayland rootful with -hidpi returns xdg_surface error 3
Running Xwayland in rootful mode with the -hidpi option fails and outputs the following error:
XWAYLAND: xdg_surface#15: error 3: must ack the initial configure before attaching buffer
Reproducible on both cosmic-comp 1.0.8 and niri 25.11 and requires the scale factor to be above one (1.25 in my case).
Sadly wasn't able to test this with Anvil, as I couldn't figure out how to change the scale factor.
Anvil keybinings are here: https://github.com/Smithay/smithay/blob/f1d0d2c43e843233119af3dcf76d619e1afff4ee/anvil/src/input_handler.rs#L1317
Reproducible under Anvil with the latest commit of Smithay.
Apparently the latest commit of Xwayland works in rootful mode with the -hidpi option. It's only version 24.1.9 that has this issue, so I don't know what to do with this thread.
The error message you provided represents a protocol error, which is fatal in wayland. Protocol errors are posted by the compositor in response to protocol violations. Some compositors are more strict than others. So it can either be a buggy client or the compositor handles something wrong. You can generate a wayland debug log and upload it here which might give us a hint what happens. The debug log can be enabled by setting the WAYLAND_DEBUG environment variable to 1.
You can generate a wayland debug log and upload it here which might give us a hint what happens.
Here it is. xwayland-debug.log
Apparently the latest commit of Xwayland works in rootful mode with the
-hidpioption. It's only version 24.1.9 that has this issue, so I don't know what to do with this thread.
Nope, it's still an issue with Xwayland 24.1.12 which was released on Jun 2: https://lists.x.org/archives/xorg-announce/2026-June/003704.html
I was specifically talking about the main branch, which would become the basis of Xwayland 26.1. Xwayland 24.1.x is not based on the current main branch.