# gpui/mac: Disable shadows on non-opaque windows \(\#10896\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 35c3af7fd0f64a4212a36819426a179d630db372

Requested commit: 35c3af7fd0f64a4212a36819426a179d630db372

Commit: 35c3af7fd0f64a4212a36819426a179d630db372

Tree: a15e8ca548f94db9ee557c08a613a77141eac04d

Author: jansol

Committer: GitHub

## Message

```
gpui/mac: Disable shadows on non-opaque windows (#10896)

The culprit behind ghost images in transparent windows and bad
performance with blurred windows turns out to be one and the same:
window shadows. The simplest and most popular fix appears to be to
simply disable shadows on non-opaque windows so let's just do that.

Disabling shadows on a window that is already visible however leaves the
shadow on screen, detached from the window, until a full screen effect
such as exposé or a virtual desktop switch wipes it clean. There does
not seem to be any known solution to this, and it does not affect
windows created after switching to a transparent theme so this is a good
enough compromise for now.



Release Notes:

- Fixed ghostly artifacts in transparent window backgrounds.
- Fixed sluggishness with blurred window backgrounds.
```

## Parents

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

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