Recent releases of the wayland protocol updated the wl_output protocol to version 4, which added the wl_output@name opcode. Since the nvidia wayland connector does not check the version it advertises support but does not register the required handler for that opcode, resulting in an abort when the callback is invoked.
Prompted by https://github.com/NixOS/nixpkgs/issues/248119
Recent releases of the wayland protocol updated the
wl_output
protocol to version 4, which added thewl_output@name
opcode. Since the nvidia wayland connector does not check the version it advertises support but does not register the required handler for that opcode, resulting in an abort when the callback is invoked.This PR is based on a similar problem reported in https://github.com/swaywm/sway/issues/6717 and clamps the version to the supported range.
Output with
WAYLAND_DEBUG
before change:Output after change: