Skip to content

fixed scrollbar overwriting window borders on wayland - #538

Merged
mtwebster merged 3 commits into
linuxmint:masterfrom
WerIstLuka:wayland-scrollbar
Sep 25, 2026
Merged

mtwebster merged 3 commits into
linuxmint:masterfrom
WerIstLuka:wayland-scrollbar

Conversation

@WerIstLuka

Copy link
Copy Markdown
Contributor

the scrollbar overwrites the window border on wayland
creating a 1px transparent border around the scrollbar fixes it
Screenshot from 2026-02-27 23-02-36 Screenshot from 2026-02-27 23-06-58

mint-l has the same issue, i also made a pr there with the same change

i opened a wayland issue on this a while ago, fixed it for my theme and closed the issue but forgot to fix it for mint-y and mint-l linuxmint/wayland#156

@echuber2

echuber2 commented Feb 27, 2026 •

Copy link
Copy Markdown

I wonder if this fix is needed for other types of windows that might not have typical borders. Is there a way to generalize it without constraining it to the terminal style? What about adding padding (or maybe margin) around the scrollbar instead of an invisible border?

@WerIstLuka

Copy link
Copy Markdown
Contributor Author

i've been daily driving the wayland session for a while now and i havn't seen any other window with this issue

i fixed this issue a few weeks ago but forgot to make a pr so i have no idea why i chose to make an invisible border. margin or padding might also work but i just copied what i did with my theme to fix it

Comment thread src/Mint-Y/gtk-3.0/sass/_common.scss Outdated

$_slider_min_length: 40px;

terminal-screen-container & { border: 1px solid transparent; }

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.

This belongs in _applications.scss: terminal-screen-container is already handled there.

Also, probably why you're only experiencing this in Wayland is because even though gnome-terminal 'appears' to be a server-decorated window, the app itself is actually drawing the border as well as its own content, so overlap can occur.

Contrast this with X11 sessions, muffin draws the borders here, so there can't ever be overlap between borders and content.

You could probably be more specific here and use:

.csd terminal-screen-container scrollbar {
    border-style: solid;
    border-width: 1px;
}

I didn't check your Mint-L pull request yet, but it should have the same structure I think.

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.

This belongs in _applications.scss: terminal-screen-container is already handled there.

I'll move it there and make it more specific

Also, probably why you're only experiencing this in Wayland is because even though gnome-terminal 'appears' to be a server-decorated window, the app itself is actually drawing the border as well as its own content, so overlap can occur.

Contrast this with X11 sessions, muffin draws the borders here, so there can't ever be overlap between borders and content.

I was confused why this was only on wayland but this makes a lot of sense

I didn't check your Mint-L pull request yet, but it should have the same structure I think.

yeah its exactly the same as this

@mtwebster
mtwebster merged commit a022d8d into linuxmint:master Sep 25, 2026
3 checks passed
@WerIstLuka
WerIstLuka deleted the wayland-scrollbar branch October 1, 2026 17:13
clefebvre pushed a commit that referenced this pull request Oct 3, 2026
* fixed scrollbar overwriting window borders on wayland

* only apply the border to scrollbars inside of a terminal

* moved the terminal borders and made them more specific
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants