ssd: add application title to title bar

This commit is contained in:
Johan Malm 2021-08-07 09:35:53 +01:00
parent 5ecf0e1e7e
commit f857aea8f4
7 changed files with 55 additions and 7 deletions

View file

@ -23,6 +23,12 @@ foreign_toplevel_handle_create(struct view *view)
{
view->toplevel_handle = wlr_foreign_toplevel_handle_v1_create(
view->server->foreign_toplevel_manager);
if (!view->toplevel_handle) {
wlr_log(WLR_ERROR, "cannot create foreign toplevel handle for (%s)",
view->impl->get_string_prop(view, "title"));
return;
}
view_update_title(view);
wlr_foreign_toplevel_handle_v1_output_enter(view->toplevel_handle,
view_wlr_output(view));
@ -35,4 +41,5 @@ foreign_toplevel_handle_create(struct view *view)
handle_toplevel_handle_request_minimize;
wl_signal_add(&view->toplevel_handle->events.request_minimize,
&view->toplevel_handle_request_minimize);
// TODO: hook up remaining signals
}