mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 13:04:11 +01:00
Check if found ws is focused in new view handler
Fixes #714, by preventing change of focus from a window to the whole ws
This commit is contained in:
parent
71f710cf0f
commit
bfdda1505e
@ -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 New Issue
Block a user