mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-16 20:08:06 +02:00
When running rootful, i.e. as a regular Wayland client, Xwayland needs to wait for the initial configure event before posting its initial buffer and commit the surface. Not doing so may cause mutter to log a warning when Xwayland is started rootful: | Buggy client (org.freedesktop.Xwayland) committed initial non-empty | content without acknowledging configuration, working around. Or running rootful with libdecor: | Client provided invalid window geometry for xdg_surface#nn | (org.freedesktop.Xwayland - Wnn (Xwayland on :nn)). Working around. | | Buggy client (org.freedesktop.Xwayland) committed initial non-empty | content without acknowledging configuration, working around. This is actually mutter being nice, as this should be treated as a protocol error and Xwayland would be terminated. To avoid the issue, we need to hold on attaching a buffer and committing the surface until we actually get the first configure event from the compositor. That, however, only applies to rootful mode, so we can leave the default code path for rootless untouched. Closes: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1853 Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> v2: commit the surface after attaching the first buffer on configure event only for the initial configure (Michel Dänzer). v3: return early in present flip if we didn't get the initial configure event (Michel Dänzer). Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2110> |
||
|---|---|---|
| .. | ||
| kdrive | ||
| vfb | ||
| xfree86 | ||
| xnest | ||
| xquartz | ||
| xwayland | ||
| xwin | ||
| meson.build | ||