mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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
This commit is contained in:
parent
a420d2c41e
commit
4da4a15d6b
7 changed files with 48 additions and 0 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue