output: don't send make/model

- These are legacy wl_output properties [1]
- wl_output exposes name and description, which are better defined
- It's not clear what make/model/serial are for a virtual output
- Clients shouldn't rely on these fields

[1]: 8f1795f911/protocol/wayland.xml (L2508)

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1623
This commit is contained in:
Simon Ser 2025-04-20 21:46:11 +02:00
parent c9f0dbc159
commit c2327248f8

View file

@ -16,20 +16,9 @@
static void send_geometry(struct wl_resource *resource) {
struct wlr_output *output = wlr_output_from_resource(resource);
const char *make = output->make;
if (make == NULL) {
make = "Unknown";
}
const char *model = output->model;
if (model == NULL) {
model = "Unknown";
}
wl_output_send_geometry(resource, 0, 0,
output->phys_width, output->phys_height, output->subpixel,
make, model, output->transform);
"Unknown", "Unknown", output->transform);
}
static void send_current_mode(struct wl_resource *resource) {