summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2016-07-31 21:25:40 -0400
committerLibravatar Tony Crisci <tony@dubstepdish.com>2016-07-31 21:25:40 -0400
commitd731d6a846ec37e5a3c172fdd14801886d45ff93 (patch)
tree25d2fb779dc089d85bd4bb484a98866101872aae
parentRefactor functions to update container borders (diff)
downloadsway-d731d6a846ec37e5a3c172fdd14801886d45ff93.tar.gz
sway-d731d6a846ec37e5a3c172fdd14801886d45ff93.tar.zst
sway-d731d6a846ec37e5a3c172fdd14801886d45ff93.zip
Bugfix: descend focus stack on new window focus
When switching back to a workspace after new window creation, it is now necessary to descend the focus stack into the focused container of the workspace to determine which container should get the focus. This is because the `set_focused_container()` function no longer automatically descends into the focus stack to find the correct view to focus.
-rw-r--r--sway/handlers.c2
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;