Commits on Source (3)
-
Alan Coopersmith authored
This reverts commit 947d1c7e. lnx_platform.c doesn't exist in this branch since commit 54681238 renamed it to shared/drm_platform.c and added it to the BSD build. Fixes build failures in CI of: ../hw/xfree86/os-support/meson.build:163:18: ERROR: File linux/lnx_platform.c does not exist. Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
At creation, Xwayland uses a generic output name ("XWAYLAND0", etc.) for the XRandR outputs, and later, once the name is known from the Wayland protocols, updates the output names using the actual names from the Wayland compositor. However, when doing so, it simply updates the string, the "nameLength" isn't updated, so the name passed to the clients might either end up being truncated or contain portions of the previous (initial) output name. Note, this is using a fixed size buffer initialized with zeros, so this cannot leak any data other than the previous output name, so this is mainly a cosmetic issue. Update the output's "nameLength" when updating the output name. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Fixes: 3c07a01c - xwayland: Use xdg-output name for XRandR Reviewed-by:
Simon Ser <contact@emersion.fr>
-
When creating the output with the default "XWAYLAND<n>" name, we use the MAX_OUTPUT_NAME value to allocate a lot more memory than necessary to accommodate for future output names once they get updated, but by doing so, we also send XRandR way too much (zeroed) data since the "nameLength" value is (purposely) set too big. So, instead, let's just update the name after creating the RR output, this way we set both the name and nameLength to their correct values while keeping the initial large allocation. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Fixes: 3c07a01c - xwayland: Use xdg-output name for XRandR Reviewed-by:
Simon Ser <contact@emersion.fr>