output: set 'labwc' as app_id and title for nested outputs

This commit is contained in:
Consolatis 2024-08-07 23:28:30 +02:00 committed by Johan Malm
parent 33820c2ad1
commit 497d3d8e05

View file

@ -323,6 +323,13 @@ new_output_notify(struct wl_listener *listener, void *data)
}
}
if (wlr_output_is_wl(wlr_output)) {
char title[64];
snprintf(title, sizeof(title), "%s - %s", "labwc", wlr_output->name);
wlr_wl_output_set_title(wlr_output, title);
wlr_wl_output_set_app_id(wlr_output, "labwc");
}
/*
* We offer any display as available for lease, some apps like
* gamescope want to take ownership of a display when they can