diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-26 16:09:05 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-12-29 12:35:22 -0500 |
commit | 4da4a15d6bfa8d4b92d1ac4605ea78893da3fab0 (patch) | |
tree | 9466504b4ac0c193c1fbd597ac1bab61f588833b /include/wlr | |
parent | a420d2c41ef3f001afb806d13e31a2e21502d76f (diff) |
output: add description
wlr_output.description is a string containing a human-readable string
identifying the output. Compositors can customise it via
wlr_output_set_description, for instance to make the name more
user-friendly.
References: https://github.com/swaywm/wlroots/issues/1623
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index b8087ebd..183e5a29 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -90,6 +90,7 @@ struct wlr_output { struct wl_list resources; char name[24]; + char *description; // may be NULL char make[56]; char model[16]; char serial[16]; @@ -133,6 +134,7 @@ struct wlr_output { struct wl_signal mode; struct wl_signal scale; struct wl_signal transform; + struct wl_signal description; struct wl_signal destroy; } events; @@ -214,6 +216,7 @@ void wlr_output_set_transform(struct wlr_output *output, void wlr_output_set_scale(struct wlr_output *output, float scale); void wlr_output_set_subpixel(struct wlr_output *output, enum wl_output_subpixel subpixel); +void wlr_output_set_description(struct wlr_output *output, const char *desc); /** * Schedule a done event. * |