commit d731d6a846ec37e5a3c172fdd14801886d45ff93
parent b39249508f458e302d843c440db8f992e1d545ca
Author: Tony Crisci <tony@dubstepdish.com>
Date: Sun, 31 Jul 2016 21:25:40 -0400
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/handlers.c b/sway/handlers.c
@@ -415,7 +415,7 @@ static bool handle_view_created(wlc_handle handle) {
// we were on one workspace, switched to another to add this view,
// now let's return to where we were
workspace_switch(current_ws);
- set_focused_container(current_ws->focused);
+ set_focused_container(get_focused_container(current_ws));
}
suspend_workspace_cleanup = false;