diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2019-09-22 10:28:12 -0700 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-09-22 15:18:51 -0400 |
commit | ec66bb987aada8521f6dbd72788c18dc16ebc817 (patch) | |
tree | c38698553a15b3899239ac7ed1bfac31d20ed501 | |
parent | c41c24d684110a81028e6810662c2b5291588fb5 (diff) |
view: create container before selecting workspace
-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, } view->surface = wlr_surface; view_populate_pid(view); + view->container = container_create(view); // If there is a request to be opened fullscreen on a specific output, try // 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, ws = seat_get_last_known_workspace(seat); } - view->container = container_create(view); if (target_sibling) { container_add_sibling(target_sibling, view->container, 1); } else if (ws) { |