diff options
-rw-r--r-- | sway/handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 87b7253b..684e45ba 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -415,7 +415,7 @@ static bool handle_view_created(wlc_handle handle) { | |||
415 | // we were on one workspace, switched to another to add this view, | 415 | // we were on one workspace, switched to another to add this view, |
416 | // now let's return to where we were | 416 | // now let's return to where we were |
417 | workspace_switch(current_ws); | 417 | workspace_switch(current_ws); |
418 | set_focused_container(current_ws->focused); | 418 | set_focused_container(get_focused_container(current_ws)); |
419 | } | 419 | } |
420 | 420 | ||
421 | suspend_workspace_cleanup = false; | 421 | suspend_workspace_cleanup = false; |