aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-14 19:29:07 -0400
committerGitHub <noreply@github.com>2018-05-14 19:29:07 -0400
commit9e6d9779a069fdd76642be09f61bf1d13b411205 (patch)
tree491e62bd2ee9a1c67ef59ab0d4754aa4c46050dc /backend
parent1e5b5d15a6da6e414ee4dec832d7d4a80e74f71e (diff)
parent198ad27bd59fe1477756fd8d0415a599571b89e1 (diff)
Merge pull request #979 from emersion/wayland-backend-title-output-name
backend/wayland: print output name in window title
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/output.c6
1 files changed, 5 insertions, 1 deletions
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,