aboutsummaryrefslogtreecommitdiff
path: root/backend/rdp
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-26 16:09:05 +0100
committerBrian Ashworth <bosrsf04@gmail.com>2019-12-29 12:35:22 -0500
commit4da4a15d6bfa8d4b92d1ac4605ea78893da3fab0 (patch)
tree9466504b4ac0c193c1fbd597ac1bab61f588833b /backend/rdp
parenta420d2c41ef3f001afb806d13e31a2e21502d76f (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 'backend/rdp')
-rw-r--r--backend/rdp/output.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/rdp/output.c b/backend/rdp/output.c
index 45eba3aa..302a99de 100644
--- a/backend/rdp/output.c
+++ b/backend/rdp/output.c
@@ -278,6 +278,11 @@ struct wlr_rdp_output *wlr_rdp_output_create(struct wlr_rdp_backend *backend,
snprintf(wlr_output->name, sizeof(wlr_output->name), "RDP-%d",
wl_list_length(&backend->clients));
+ char description[128];
+ snprintf(description, sizeof(description),
+ "RDP output %d", wl_list_length(&backend->clients));
+ wlr_output_set_description(wlr_output, description);
+
if (!wlr_egl_make_current(&output->backend->egl, output->egl_surface,
NULL)) {
goto error;