diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-23 10:32:26 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-05-26 13:36:06 +0000 |
commit | be86145322e6157994b348711b7bedd209b565ea (patch) | |
tree | 6bb25298bff2a0b6be3db64769b9f103d789cd64 /backend/headless | |
parent | 2e69eb10303f3074d6cafef30e7e1ce49cb7a1ac (diff) | |
download | wlroots-be86145322e6157994b348711b7bedd209b565ea.tar.xz |
output: turn make/model/serial into char *
This allows the make/model/serial to be NULL when unset, and allows
them to be longer than the hardcoded array length.
This is a breaking change: compositors need to handle the new NULL
case, and we stop setting make/model to useless "headless" or
"wayland" strings.
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/output.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/backend/headless/output.c b/backend/headless/output.c index 10de845f..824a265e 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -115,8 +115,6 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend, struct wlr_output *wlr_output = &output->wlr_output; output_set_custom_mode(output, width, height, 0); - strncpy(wlr_output->make, "headless", sizeof(wlr_output->make)); - strncpy(wlr_output->model, "headless", sizeof(wlr_output->model)); char name[64]; snprintf(name, sizeof(name), "HEADLESS-%zu", ++backend->last_output_num); |