mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xdg/wayland-shell: handle set_app_id and set_class events
This commit is contained in:
parent
e140682528
commit
e2ae63a7cf
5 changed files with 38 additions and 6 deletions
11
src/view.c
11
src/view.c
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue