summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 3f85b3d5e5..cd97c77bf6 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1244,9 +1244,11 @@ static char **get_displays_spanned(struct vo_wayland_state *wl)
int displays_spanned = 0;
struct vo_wayland_output *output;
wl_list_for_each(output, &wl->output_list, link) {
- if (output->has_surface)
+ if (output->has_surface) {
+ char *name = output->name ? output->name : output->model;
MP_TARRAY_APPEND(NULL, names, displays_spanned,
- talloc_strdup(NULL, output->model));
+ talloc_strdup(NULL, name));
+ }
}
MP_TARRAY_APPEND(NULL, names, displays_spanned, NULL);
return names;