# gpui: Fix \`snap_to_window_with_margin\` when window has client inset \(\#27330\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d0f806456cae55c6e9695427d0efc57b47568b78

Requested commit: d0f806456cae55c6e9695427d0efc57b47568b78

Commit: d0f806456cae55c6e9695427d0efc57b47568b78

Tree: 7c8d10cd41bb6497725f4a9c6935e3fed36217bf

Author: Jason Lee

Committer: GitHub

## Message

```
gpui: Fix `snap_to_window_with_margin` when window has client inset (#27330)

Release Notes:

- Fixed popup menu snap to window to leave margin on Linux.

This change to continue #17159 to fix same thing on Linux.

| Before | After |
| -- | -- |
| ![Pasted
image](https://github.com/user-attachments/assets/3129d42c-7253-4a3f-a428-86e2a3df38ff)
|
![image](https://github.com/user-attachments/assets/8dc83377-9df7-45ba-805b-1cfdea612ae0)
|
```

## Parents

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

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