mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-30 00:15:58 +01:00
backend/wayland: print output name in window title
This commit is contained in:
parent
1e5b5d15a6
commit
198ad27bd5
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue