mirror of
https://github.com/swaywm/sway.git
synced 2026-04-25 06:46:24 -04:00
Save
This commit is contained in:
parent
ba0232e6f0
commit
5d96922d2c
1 changed files with 6 additions and 3 deletions
|
|
@ -715,11 +715,14 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface,
|
||||||
input_manager_set_focus(&view->container->node);
|
input_manager_set_focus(&view->container->node);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *app_id = view_get_app_id(view);
|
const char *app_id;
|
||||||
if (app_id != NULL) {
|
const char *class;
|
||||||
|
if ((app_id = view_get_app_id(view)) != NULL) {
|
||||||
wlr_foreign_toplevel_handle_v1_set_app_id(
|
wlr_foreign_toplevel_handle_v1_set_app_id(
|
||||||
view->foreign_toplevel, app_id);
|
view->foreign_toplevel, app_id);
|
||||||
}
|
} else if ((class = view_get_class(view)) != NULL) {
|
||||||
|
wlr_foreign_toplevel_handle_v1_set_app_id(
|
||||||
|
view->foreign_toplevel, class);
|
||||||
}
|
}
|
||||||
|
|
||||||
void view_unmap(struct sway_view *view) {
|
void view_unmap(struct sway_view *view) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue