Skip to content

Fix a Wayland-related graphic bug for the status bar#46466

Merged
probably-neb merged 2 commits intozed-industries:mainfrom
pauldipietro:fix-wayland-status-bar-gap
Apr 23, 2026
Merged

Fix a Wayland-related graphic bug for the status bar#46466
probably-neb merged 2 commits intozed-industries:mainfrom
pauldipietro:fix-wayland-status-bar-gap

Conversation

@pauldipietro
Copy link
Copy Markdown
Contributor

Release Notes:

  • Address a scenario where scaling in Wayland can cause a 1px gap above the status bar

Closes #46008

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Jan 9, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @pauldipietro on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@maxdeviant maxdeviant changed the title Fix a Wayland-related graphic bug for the status bar (#46008) Fix a Wayland-related graphic bug for the status bar Jan 9, 2026
@pauldipietro
Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jan 9, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Jan 9, 2026

The cla-bot has been summoned, and re-checked this pull request!

Comment thread crates/workspace/src/status_bar.rs Outdated
Comment on lines +59 to +60
// Running on Wayland and using some scaling levels other than 100% causes a
// 1px gap above the status bar; adding a margin avoids this.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This seems like a quite hacky solution. Are we sure there isn't something better we could be doing to fix this? Are we sure it is Wayland specific?

some scaling levels other than 100%

The code seems to activate this for all scaling levels other than 1.0. Are we sure this is an issue at every scaling factor other than 1.0?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not the person who wrote the surrounding implementation, so no, I don't know if there's something somewhere else in the code base that could provide a cleaner fix, but my presumption has been that it's something upstream unless if there's a specific handler somewhere for Wayland rendering. As I stated on the original report, I tried it against both X11 and Wayland and didn't notice the issue on the former when scaling to different values.

As to whether we be sure that it's an issue at every scaling factor? Sure, if we test it manually against every single value. I shared screenshots of some common ones that could be set as a default by Plasma based on the monitor size. If you want to go more granular, you could also test it against thirds e.g. 1.33x or 1.66x, but I don't think there's any realistic scenario where a user will do anything beyond that.

To be candid I've more or less moved on from this PR given how long it's been open, so I'll leave it to your judgement as to whether or not you want to do anything with it.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah ok, I clearly forgot to look at the issue when reviewing the PR. Thanks for the explanation and sorry about the long time to review!
Going to merge this

…46008)

Release Notes:

- Address a scenario where scaling in Wayland can cause a 1px gap
above the status bar
@probably-neb probably-neb added this pull request to the merge queue Apr 23, 2026
Merged via the queue into zed-industries:main with commit 70d07f9 Apr 23, 2026
31 checks passed
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Visible gap between editor pane and footer

3 participants