xdg/wayland-shell: handle set_app_id and set_class events

This commit is contained in:
Johan Malm 2021-10-16 21:50:56 +01:00
parent e140682528
commit e2ae63a7cf
5 changed files with 38 additions and 6 deletions

View file

@ -242,3 +242,14 @@ view_update_title(struct view *view)
ssd_update_title(view);
wlr_foreign_toplevel_handle_v1_set_title(view->toplevel_handle, title);
}
void
view_update_app_id(struct view *view)
{
const char *app_id = view->impl->get_string_prop(view, "app_id");
if (!view->toplevel_handle || !app_id) {
return;
}
wlr_foreign_toplevel_handle_v1_set_app_id(
view->toplevel_handle, app_id);
}