diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-06-21 14:14:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-21 14:14:16 -0400 |
commit | b5818150b959eb57ac400799f6c3ba017736485e (patch) | |
tree | 01e6597b06f11bab6c6e905a3edc42430aa9b5ea | |
parent | Minor fix to warning messages (diff) | |
parent | Check if found ws is focused in new view handler (diff) | |
download | sway-b5818150b959eb57ac400799f6c3ba017736485e.tar.gz sway-b5818150b959eb57ac400799f6c3ba017736485e.tar.zst sway-b5818150b959eb57ac400799f6c3ba017736485e.zip |
Merge pull request #720 from Hummer12007/exec_fix
Check if found ws is focused in new view handler
-rw-r--r-- | sway/handlers.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index b38f05a6..c5aee4aa 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -198,11 +198,12 @@ static bool handle_view_created(wlc_handle handle) { | |||
198 | if (pid) { | 198 | if (pid) { |
199 | // using newview as a temp storage location here, | 199 | // using newview as a temp storage location here, |
200 | // rather than adding yet another workspace var | 200 | // rather than adding yet another workspace var |
201 | if ((newview = workspace_for_pid(pid))) { | 201 | newview = workspace_for_pid(pid); |
202 | if (newview && newview != current_ws) { | ||
202 | focused = newview; | 203 | focused = newview; |
203 | newview = NULL; | ||
204 | return_to_workspace = true; | 204 | return_to_workspace = true; |
205 | } | 205 | } |
206 | newview = NULL; | ||
206 | } | 207 | } |
207 | } | 208 | } |
208 | 209 | ||