mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
view: call wlr_foreign_toplevel_handle_v1_set_app_id() on map
Fix issue #74 Add view-impl.c with view_impl_map() containing common code for xdg-shell and xwayland-shell.
This commit is contained in:
parent
4d44659c08
commit
e140682528
5 changed files with 31 additions and 6 deletions
|
|
@ -146,6 +146,10 @@ get_string_prop(struct view *view, const char *prop)
|
|||
if (!strcmp(prop, "class")) {
|
||||
return view->xwayland_surface->class;
|
||||
}
|
||||
/* We give 'class' for wlr_foreign_toplevel_handle_v1_set_app_id() */
|
||||
if (!strcmp(prop, "app_id")) {
|
||||
return view->xwayland_surface->class;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
@ -208,9 +212,7 @@ map(struct view *view)
|
|||
&view->commit);
|
||||
view->commit.notify = handle_commit;
|
||||
|
||||
desktop_focus_and_activate_view(&view->server->seat, view);
|
||||
desktop_raise_view(view);
|
||||
damage_all_outputs(view->server);
|
||||
view_impl_map(view);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue