# worspace: Add partial window bound fix when switching between CSD and SSD on Wayland \(\#31335\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 968587a7456b89ed9cefc1be91b1ebf97ec6158e

Requested commit: 968587a7456b89ed9cefc1be91b1ebf97ec6158e

Commit: 968587a7456b89ed9cefc1be91b1ebf97ec6158e

Tree: 6bdacdd92d1e7ad15e324419f07a1d7f88fb1b13

Author: marius851000

Committer: GitHub

## Message

```
worspace: Add partial window bound fix when switching between CSD and SSD on Wayland (#31335)

Partial fix for #31330

It fix the problem that the inset stay on after switching to SSD, but it
still have the problem that after that first redraw, it have the wrong
size. Just resizing it even once work. I guess the relevant code to fix
that would be ``handle_toplevel_decoration_event`` of
``crates/gpui/src/platform/linux/wayland/window.rs``, but trying to call
resize here does not seems to work correctly (might be just wrong
argument), and I would like to take a break on that for now.

Release Notes:

- N/A

(better wait for that to be completely fixed before adding it in the
changelog)

---------

Co-authored-by: Michael Sloan <michael@zed.dev>
```

## Parents

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

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