Switching outputs updates active border color
@@ -84,6 +84,13 @@ impl LayoutTree {
if old_worksp_ix == workspace_ix {
return;
}
+ {
+ // Update the border colors
+ let container = &mut self.tree[active_ix];
+ container.clear_border_color()
+ .expect("Could not clear old active border color");
+ container.draw_borders();
+ }
let old_worksp_parent_ix = self.tree.parent_of(old_worksp_ix)
.expect("Old workspace had no parent");
let new_worksp_parent_ix = self.tree.parent_of(workspace_ix)
