# Z index with flicker fix \(\#4170\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9d221a139d62c5b1a3b6891b1396899fada85596)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9d221a139d62c5b1a3b6891b1396899fada85596

Requested commit: 9d221a139d62c5b1a3b6891b1396899fada85596

Commit: 9d221a139d62c5b1a3b6891b1396899fada85596

Tree: 0f9e8051a90bc1d2b89562d6edf70b6e6e4f2325

Author: Julia

Committer: GitHub

## Message

```
Z index with flicker fix (#4170)

Part of `was_top_layer` was checking if a opaque level starts with the
current stacking order, but now that each entry in the order has an id,
those comparison checks were failing as every entry generated is now
unique

I'll admit I'm still a little fuzzy on the specific reasons for this
function to be defined as it is so I'd appreciate another set of eyes

Release Notes:

- N/A
```

## Parents

- [5b906e731dbc0707adcc9bfd57ff5b70027f1a33](https://git.cafe/gitcafe/zed/commit/5b906e731dbc0707adcc9bfd57ff5b70027f1a33?format=markdown)

- [3b3252b0402286a1a1b57032542c4ba3a83dee8d](https://git.cafe/gitcafe/zed/commit/3b3252b0402286a1a1b57032542c4ba3a83dee8d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9d221a139d62c5b1a3b6891b1396899fada85596?format=markdown)
