diff options
-rw-r--r-- | sway/tree/view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 5041ee85..376cc332 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -566,6 +566,7 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface, | |||
566 | } | 566 | } |
567 | view->surface = wlr_surface; | 567 | view->surface = wlr_surface; |
568 | view_populate_pid(view); | 568 | view_populate_pid(view); |
569 | view->container = container_create(view); | ||
569 | 570 | ||
570 | // If there is a request to be opened fullscreen on a specific output, try | 571 | // If there is a request to be opened fullscreen on a specific output, try |
571 | // to honor that request. Otherwise, fallback to assigns, pid mappings, | 572 | // to honor that request. Otherwise, fallback to assigns, pid mappings, |
@@ -592,7 +593,6 @@ void view_map(struct sway_view *view, struct wlr_surface *wlr_surface, | |||
592 | ws = seat_get_last_known_workspace(seat); | 593 | ws = seat_get_last_known_workspace(seat); |
593 | } | 594 | } |
594 | 595 | ||
595 | view->container = container_create(view); | ||
596 | if (target_sibling) { | 596 | if (target_sibling) { |
597 | container_add_sibling(target_sibling, view->container, 1); | 597 | container_add_sibling(target_sibling, view->container, 1); |
598 | } else if (ws) { | 598 | } else if (ws) { |