mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 16:06:37 +01:00
Merge pull request #720 from Hummer12007/exec_fix
Check if found ws is focused in new view handler
This commit is contained in:
commit
b5818150b9
1 changed files with 3 additions and 2 deletions
|
@ -198,11 +198,12 @@ static bool handle_view_created(wlc_handle handle) {
|
|||
if (pid) {
|
||||
// using newview as a temp storage location here,
|
||||
// rather than adding yet another workspace var
|
||||
if ((newview = workspace_for_pid(pid))) {
|
||||
newview = workspace_for_pid(pid);
|
||||
if (newview && newview != current_ws) {
|
||||
focused = newview;
|
||||
newview = NULL;
|
||||
return_to_workspace = true;
|
||||
}
|
||||
newview = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue