Skip to content

Commit

Permalink
fix: SelfAndSiblings should include root container
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jan 24, 2024
1 parent c209681 commit 6800b36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GlazeWM.Domain/Containers/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public abstract class Container
public int FocusIndex => this is RootContainer ? 0 : Parent.ChildFocusOrder.IndexOf(this);

public List<Container> SelfAndSiblings =>
this is RootContainer ? new List<Container>() : Parent.Children;
this is RootContainer ? new List<Container>() { this } : Parent.Children;

public IEnumerable<Container> Siblings =>
this is RootContainer
Expand Down

0 comments on commit 6800b36

Please sign in to comment.