#  terminal: Reduce flicker on resize \(\#47195\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e2f74166facd2099536c743e70e3d4e9b7d602b4

Requested commit: e2f74166facd2099536c743e70e3d4e9b7d602b4

Commit: e2f74166facd2099536c743e70e3d4e9b7d602b4

Tree: cdb6c1a84956c153cf37e3fcea58085aee7d53bf

Author: Bing Wang

Committer: GitHub

## Message

```
 terminal: Reduce flicker on resize (#47195)

Skip PTY resizes for pixel-only changes and coalesce pending resize
events.
Snap standalone terminal layout to whole device pixels to avoid subpixel
jitter.

before:


https://github.com/user-attachments/assets/0ad0db83-0099-44c8-b8d1-3dc8146b25ef


after:


https://github.com/user-attachments/assets/86278014-1c87-4263-a9e5-b58bcc1fa2ea




Release Notes:

- Fixed: Reduce terminal flicker on resize

---------

Signed-off-by: pigletfly <wangbing.adam@gmail.com>
Co-authored-by: Ben Kunkle <ben@zed.dev>
```

## Parents

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

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