mirror of
https://github.com/swaywm/sway.git
synced 2024-11-23 08:21:28 +00:00
Spawn new views to target ws's focused container
This commit is contained in:
parent
136387144c
commit
a2bb280172
|
@ -226,8 +226,8 @@ static bool handle_view_created(wlc_handle handle) {
|
||||||
// using newview as a temp storage location here,
|
// using newview as a temp storage location here,
|
||||||
// rather than adding yet another workspace var
|
// rather than adding yet another workspace var
|
||||||
newview = workspace_for_pid(pid);
|
newview = workspace_for_pid(pid);
|
||||||
if (newview && newview != current_ws) {
|
if (newview) {
|
||||||
focused = newview;
|
focused = get_focused_container(newview);
|
||||||
return_to_workspace = true;
|
return_to_workspace = true;
|
||||||
}
|
}
|
||||||
newview = NULL;
|
newview = NULL;
|
||||||
|
|
Loading…
Reference in a new issue