winit prefers Wayland when WAYLAND_DISPLAY is set, so `xvfb-run` in a Wayland session still opened the window on the desktop, where the compositor chose its size. That looked like the X server ignoring the requested size. Remove the variable for the screenshot run, and size the Xvfb screen like the window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>