mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
view: deduplicate foreign-toplevel creation code
This commit is contained in:
parent
3c0e010c58
commit
4b0903cfa9
4 changed files with 12 additions and 49 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue