Skip to content

Fix error prompt darkened background exceeding window boundaries on Linux - #57608

Merged
smitbarmase merged 5 commits into
zed-industries:mainfrom
albertbogusz:linux-prompt-background-fix
Jun 8, 2026
Merged

Fix error prompt darkened background exceeding window boundaries on Linux#57608
smitbarmase merged 5 commits into
zed-industries:mainfrom
albertbogusz:linux-prompt-background-fix

Conversation

@albertbogusz

@albertbogusz albertbogusz commented May 24, 2026

Copy link
Copy Markdown
Collaborator

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior (visual difference only)
  • Performance impact has been considered and is acceptable

I was unable to find a specific issue or PR that mentions this.

As Linux installations always use built-in prompts and ignore the Use System Prompts setting (as far as I'm aware) all users using Zed (with client-side decorations) are affected. The darkened prompt backdrop was drawn across the full window boundary, including the transparent decoration/shadow inset, causing it to overlap.

This PR fixes the backdrop to respect the client-side decoration inset and only applies rounded corners on non-tiled edges. Tiled edges remain flush, matching the rest of the client-side window decoration behavior. I've verified it works on Wayland, X11 and causes no regressions on macOS or Windows (with Use System Prompts off).

Notice the screenshots below on a white background showing the before and after, where the faint overlap is shown broken and fixed (sorry if you have to squint).

Before:

Before

After:

After

Release Notes:

  • Fixed prompt darkened backdrop/background rendering outside client-decorated window boundaries on Linux.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 24, 2026
@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label May 24, 2026
@albertbogusz albertbogusz changed the title Fix prompt backdrop exceeding window boundaries on Linux Fix prompt darkened background exceeding window boundaries on Linux May 24, 2026
@smitbarmase smitbarmase added the platform:linux happens only on linux, not other OS label May 25, 2026
@smitbarmase smitbarmase self-assigned this Jun 1, 2026
@albertbogusz albertbogusz changed the title Fix prompt darkened background exceeding window boundaries on Linux Fix error prompt darkened background exceeding window boundaries on Linux Jun 2, 2026

@smitbarmase smitbarmase left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@smitbarmase
smitbarmase enabled auto-merge June 8, 2026 14:54
@smitbarmase
smitbarmase added this pull request to the merge queue Jun 8, 2026
Merged via the queue into zed-industries:main with commit 112d160 Jun 8, 2026
34 checks passed
@albertbogusz
albertbogusz deleted the linux-prompt-background-fix branch June 8, 2026 15:02
This was referenced Jun 18, 2026
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…inux (zed-industries#57608)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior (visual difference only)
- [x] Performance impact has been considered and is acceptable

I was unable to find a specific issue or PR that mentions this.

As Linux installations always use built-in prompts and ignore the `Use
System Prompts` setting (as far as I'm aware) all users using Zed (with
client-side decorations) are affected. The darkened prompt backdrop was
drawn across the full window boundary, including the transparent
decoration/shadow inset, causing it to overlap.

This PR fixes the backdrop to respect the client-side decoration inset
and only applies rounded corners on non-tiled edges. Tiled edges remain
flush, matching the rest of the client-side window decoration behavior.
I've verified it works on Wayland, X11 and causes no regressions on
macOS or Windows (with `Use System Prompts` off).

Notice the screenshots below on a white background showing the before
and after, where the faint overlap is shown broken and fixed (sorry if
you have to squint).

Before:


![Before](https://github.com/user-attachments/assets/be12fbe9-1ad9-4282-a333-0d9d6ae162d5)

After:


![After](https://github.com/user-attachments/assets/75988dc8-2e45-4214-bf14-e999d7b9e996)

Release Notes:

- Fixed prompt darkened backdrop/background rendering outside
client-decorated window boundaries on Linux.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…inux (zed-industries#57608)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior (visual difference only)
- [x] Performance impact has been considered and is acceptable

I was unable to find a specific issue or PR that mentions this.

As Linux installations always use built-in prompts and ignore the `Use
System Prompts` setting (as far as I'm aware) all users using Zed (with
client-side decorations) are affected. The darkened prompt backdrop was
drawn across the full window boundary, including the transparent
decoration/shadow inset, causing it to overlap.

This PR fixes the backdrop to respect the client-side decoration inset
and only applies rounded corners on non-tiled edges. Tiled edges remain
flush, matching the rest of the client-side window decoration behavior.
I've verified it works on Wayland, X11 and causes no regressions on
macOS or Windows (with `Use System Prompts` off).

Notice the screenshots below on a white background showing the before
and after, where the faint overlap is shown broken and fixed (sorry if
you have to squint).

Before:


![Before](https://github.com/user-attachments/assets/be12fbe9-1ad9-4282-a333-0d9d6ae162d5)

After:


![After](https://github.com/user-attachments/assets/75988dc8-2e45-4214-bf14-e999d7b9e996)

Release Notes:

- Fixed prompt darkened backdrop/background rendering outside
client-decorated window boundaries on Linux.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions platform:linux happens only on linux, not other OS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants