# gpui: Fix inset being used in SSD on Wayland \(\#35151\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ee9b60e60ce5058fc87cdae64e5948d4579048b3

Requested commit: ee9b60e60ce5058fc87cdae64e5948d4579048b3

Commit: ee9b60e60ce5058fc87cdae64e5948d4579048b3

Tree: ccb27b13de41e1faa84cc1c8b70a336bc6968f8e

Author: marius851000

Committer: GitHub

## Message

```
gpui: Fix inset being used in SSD on Wayland (#35151)

Closes #31330

Second parts of https://github.com/zed-industries/zed/pull/31335

While the initial fix set the inset during drawing, that was after the
window was resized, resulting in needing to manually resize the window
for the change to properly take effect.

I updated the code to not make the Wayland renderer rely on
`client_inset` being updated by the API user to match with the
decoration mode (given it is supposed to only be used when using CSD).

I might later try to generalize that, and eventually make the
client_inset only defined on window creation (instead of inside
`client_side_decorations`, that would need testing on X) (and maybe also
allow configuration for shadow, but it’s not something I need).

Release Notes:

- Fixed switching from client side decoration to server side decoration
on Wayland
```

## Parents

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

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