Merge pull request #979 from emersion/wayland-backend-title-output-name

backend/wayland: print output name in window title
This commit is contained in:
Drew DeVault 2018-05-14 19:29:07 -04:00 committed by GitHub
commit 9e6d9779a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -284,8 +284,12 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *_backend) {
goto error; 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_app_id(output->xdg_toplevel, "wlroots");
zxdg_toplevel_v6_set_title(output->xdg_toplevel, "wlroots");
zxdg_surface_v6_add_listener(output->xdg_surface, zxdg_surface_v6_add_listener(output->xdg_surface,
&xdg_surface_listener, output); &xdg_surface_listener, output);
zxdg_toplevel_v6_add_listener(output->xdg_toplevel, zxdg_toplevel_v6_add_listener(output->xdg_toplevel,