Fixed other visibilty bug, for tab/stack
Only update tabbed/stacked vis if on active workspace
@@ -237,11 +237,17 @@ impl LayoutTree {
self.layout_helper(visible_child,
c_geometry,
fullscreen_apps);
+ let workspace_ix = self.tree.ancestor_of_type(
+ node_ix, ContainerType::Workspace)
+ .expect("Node did not have a workspace as an ancestor");
+ // Set visibilty if on active workspace
+ if self.tree.on_path(workspace_ix) {
// set all the children invisible
self.set_container_visibility(node_ix, false);
// set the focused child to be visible
self.set_container_visibility(visible_child, true);
}
+ }
// TODO Propogate error
self.draw_borders_rec(children).ok();
},
