diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-26 16:14:19 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-12-29 12:35:22 -0500 |
commit | 471f9a3f6a0f5e8e25bf66d7193cf5de0260bf79 (patch) | |
tree | 294f6b2286c45f59a24458aaa0a1c4c2242da8dd | |
parent | 1f799c1cbd8f9bbb120e7d7d436f161b96d66d92 (diff) |
output-management-v1: use wlr_output.description
Unfortunately, the description isn't mutable yet for this protocol [1].
[1]: https://github.com/swaywm/wlr-protocols/issues/67
-rw-r--r-- | types/wlr_output_management_v1.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/types/wlr_output_management_v1.c b/types/wlr_output_management_v1.c index 9f4b9af1..c63d4bfe 100644 --- a/types/wlr_output_management_v1.c +++ b/types/wlr_output_management_v1.c @@ -752,11 +752,8 @@ static void manager_send_head(struct wlr_output_manager_v1 *manager, zwlr_output_manager_v1_send_head(manager_resource, head_resource); zwlr_output_head_v1_send_name(head_resource, output->name); - - char description[128]; - snprintf(description, sizeof(description), "%s %s %s (%s)", - output->make, output->model, output->serial, output->name); - zwlr_output_head_v1_send_description(head_resource, description); + zwlr_output_head_v1_send_description(head_resource, + output->description ? output->description : "Unknown"); if (output->phys_width > 0 && output->phys_height > 0) { zwlr_output_head_v1_send_physical_size(head_resource, |