From 198ad27bd59fe1477756fd8d0415a599571b89e1 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 15 May 2018 00:16:18 +0100 Subject: backend/wayland: print output name in window title --- backend/wayland/output.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/wayland/output.c b/backend/wayland/output.c index 109834c9..42b41508 100644 --- a/backend/wayland/output.c +++ b/backend/wayland/output.c @@ -284,8 +284,12 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *_backend) { goto error; } + char title[32]; + if (snprintf(title, sizeof(title), "wlroots - %s", wlr_output->name)) { + zxdg_toplevel_v6_set_title(output->xdg_toplevel, title); + } + zxdg_toplevel_v6_set_app_id(output->xdg_toplevel, "wlroots"); - zxdg_toplevel_v6_set_title(output->xdg_toplevel, "wlroots"); zxdg_surface_v6_add_listener(output->xdg_surface, &xdg_surface_listener, output); zxdg_toplevel_v6_add_listener(output->xdg_toplevel, -- cgit v1.2.3