diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-06-21 14:14:16 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-06-21 14:14:16 -0400 |
| commit | d9eb909bb6f84235ee258821bb3966e40418095f (patch) | |
| tree | 01e6597b06f11bab6c6e905a3edc42430aa9b5ea | |
| parent | ce6f07304ea1a8370dbfff36e9b52b2b8cb907eb (diff) | |
| parent | 6c627cfc48fc196f0d4b74bd5d2fa85c9f630b93 (diff) | |
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) { 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; } } |
