view: deduplicate foreign-toplevel creation code

This commit is contained in:
tokyo4j 2025-11-23 14:37:12 +09:00 committed by John Lindgren
parent 3c0e010c58
commit 4b0903cfa9
4 changed files with 12 additions and 49 deletions

View file

@ -760,14 +760,6 @@ handle_map(struct wl_listener *listener, void *data)
view->mapped = true;
if (!view->foreign_toplevel) {
view_impl_init_foreign_toplevel(view);
/*
* Initial outputs will be synced via
* view->events.new_outputs on view_moved()
*/
}
if (!view->been_mapped) {
if (view_wants_decorations(view)) {
view_set_ssd_mode(view, LAB_SSD_MODE_FULL);