summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Mykyta Holubakha <hilobakho@gmail.com>2016-06-27 21:36:27 +0300
committerLibravatar Mykyta Holubakha <hilobakho@gmail.com>2016-07-15 00:22:53 +0300
commita2bb2801724d9404529617f1b2b300033e2a8c8b (patch)
tree8e208e260a704564f6f0c3af0b0865d58d60829d /sway
parentMerge pull request #750 from deklov/sway-lock-01 (diff)
downloadsway-a2bb2801724d9404529617f1b2b300033e2a8c8b.tar.gz
sway-a2bb2801724d9404529617f1b2b300033e2a8c8b.tar.zst
sway-a2bb2801724d9404529617f1b2b300033e2a8c8b.zip
Spawn new views to target ws's focused container
Diffstat (limited to 'sway')
-rw-r--r--sway/handlers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 647f9771..e322c579 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -226,8 +226,8 @@ static bool handle_view_created(wlc_handle handle) {
226 // using newview as a temp storage location here, 226 // using newview as a temp storage location here,
227 // rather than adding yet another workspace var 227 // rather than adding yet another workspace var
228 newview = workspace_for_pid(pid); 228 newview = workspace_for_pid(pid);
229 if (newview && newview != current_ws) { 229 if (newview) {
230 focused = newview; 230 focused = get_focused_container(newview);
231 return_to_workspace = true; 231 return_to_workspace = true;
232 } 232 }
233 newview = NULL; 233 newview = NULL;