xserver/hw
Olivier Fourdan eea4c75336 xwayland: Use the right nameLength by default
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: 3c07a01c42 - xwayland: Use xdg-output name for XRandR
Reviewed-by: Simon Ser <contact@emersion.fr>
(cherry picked from commit 83453fb51e)
2023-12-04 09:20:58 +01:00
..
vfb Don't install Xvfb 2023-07-18 12:52:07 +00:00
xwayland xwayland: Use the right nameLength by default 2023-12-04 09:20:58 +01:00
meson.build Drop Xephyr / kdrive DDX 2023-07-18 12:52:07 +00:00