aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <rpigott@berkeley.edu>2019-09-22 10:28:12 -0700
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-09-22 15:18:51 -0400
commitec66bb987aada8521f6dbd72788c18dc16ebc817 (patch)
treec38698553a15b3899239ac7ed1bfac31d20ed501 /sway/tree/view.c
parentError out on unknown debug flag (diff)
downloadsway-ec66bb987aada8521f6dbd72788c18dc16ebc817.tar.gz
sway-ec66bb987aada8521f6dbd72788c18dc16ebc817.tar.zst
sway-ec66bb987aada8521f6dbd72788c18dc16ebc817.zip
view: create container before selecting workspace
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c2
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) {