Skip to content

Commit

Permalink
fix: Reassignment of last-stacked window resorting in ghost window
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Mar 8, 2021
1 parent 8d9db35 commit aecd7ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/forest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ export class Forest extends Ecs.World {
} else if (fork.right) {
fork.left = fork.right
fork.right = null
if (parent) {
const pfork = this.reassign_child_to_parent(fork_entity, parent, fork.left);
if (!pfork) return null;
reflow_fork = [parent, pfork];
}
} else {
this.delete_entity(fork.entity);
}
Expand Down

1 comment on commit aecd7ec

@sitepodmatt
Copy link

@sitepodmatt sitepodmatt commented on aecd7ec Mar 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohhh... interesting, does this fix the intellij idea dialog issue (i.e. file -> settings dialog incorrectly switching the active stack window) #712 ? Will try and test it out unless advised otherwise.

Please sign in to comment.