Skip to content

Frameless window on Wayland has a white line on top #51457

Description

@YUCLing

Preflight Checklist

Electron Version

41.0.4, 41.5.0

What operating system(s) are you using?

Other Linux

Operating System Version

Linux rainlaptop 6.19.14-200.fc43.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 23 17:34:07 UTC 2026 x86_64 GNU/Linux

What arch are you using?

x64

Last Known Working Electron version

41.0.3

Does the issue also appear in Chromium / Google Chrome?

I don't know how to test

Expected Behavior

Image

Actual Behavior

Image

Testcase Gist URL

https://gist.github.com/YUCLing/ec2cfb2ae6a3ae9a866afdf3abccb4c0

Additional Information

No response

Activity

  1. added theissue type on May 2, 2026
  2. added
    has-repro-gist
    on May 2, 2026
  3. moved this to 👀 Unsorted Items in 41-x-yon May 2, 2026
  4. mitchchn commented on May 2, 2026

    @mitchchn
    Member

    @aiddya FWIW I can also repro this in #51161.

  5. mitchchn commented on May 2, 2026

    @mitchchn
    Member

    Thanks @YUCLing (you are good at catching Linux bugs!)

  6. nikwen commented on May 3, 2026

    @nikwen
    Member

    I wonder if it is related to #51015.

  7. added
    status/confirmed
    bug/regression ↩️
    on May 3, 2026
  8. 5 remaining items

  9. moved this from 👀 Unsorted Items to 👍 Does Not Block Stable in 41-x-yon May 6, 2026
  10. YUCLing commented on Jun 16, 2026

    @YUCLing
    ContributorAuthor

    Hi @mitchchn ! This doesn't seem to be fixed? I've updated to v43.0.0-beta.4, as it says this is fixed. But I got...

    Image Image

    Is there anything I missed?

  11. mitchchn commented on Jun 16, 2026

    @mitchchn
    Member

    Hi @YUCLing! Hmm, I can no longer reproduce the issue on 43.0.0-beta.4 or 42.4.1, but I can easily do so on previous versions with your exact settings (KDE, 130% scale). Does it happen at any other DPI scales? Can you try on 42.4.1 and a 44 nightly?

    @aiddya maybe we need to implement something like this https://chromium-review.googlesource.com/c/chromium/src/+/6382498 (or try enabling the pixel canvas flag in Electron to help with all the DPI issues)?

  12. YUCLing commented on Jun 16, 2026

    @YUCLing
    ContributorAuthor

    @mitchchn

    I can easily do so on previous versions with your exact settings (KDE, 130% scale). Does it happen at any other DPI scales?

    Hmm, my settings was 125% scale, and it's still broken, but I do cannot reproduce it at 130% scale.

    Can you try on 42.4.1 and a 44 nightly?

    It's the same with both versions

  13. mitchchn commented on Jun 17, 2026

    @mitchchn
    Member

    Sorry yes I reproed with 125% on older versions, not 130. But I cannot see the white line at any scale factor in the new betas.

    We may need to look into this a little further. If you set backgroundColor on BrowserWindow (not just body) does that help in the meantime?

  14. YUCLing commented on Jun 17, 2026

    @YUCLing
    ContributorAuthor

    Thanks for your reply @mitchchn ! That's strange then. I tried with two set of options:

    Image Image

    Setting backgroundColor doesn't seem to be changing the color of the line, that's interesting, what could it be?

  15. mitchchn commented on Jun 17, 2026

    @mitchchn
    Member

    That's an interesting finding. Does setting the backgroundColor work in a version prior to the patch. e.g. 43.0.3-beta?

  16. YUCLing commented on Jun 18, 2026

    @YUCLing
    ContributorAuthor

    @mitchchn

    Does setting the backgroundColor work in a version prior to the patch. e.g. 43.0.3-beta?

    Yep, it works, the color of the line changes

    Image

    But it doesn't change in 43.0.0-beta.4

    Image

    So we are now looking at something else that is white now? How can I be helpful finding it?

  17. mitchchn commented on Jun 18, 2026

    @mitchchn
    Member

    Well, let's start by re-opening the issue. By the way, what is your monitor resolution?

  18. reopened this on Jun 18, 2026
  19. YUCLing commented on Jun 18, 2026

    @YUCLing
    ContributorAuthor

    By the way, what is your monitor resolution?

    Primary: 2560x1600
    Secondary: 1080x1920

    I did the tests on the primary screen.

  20. mitchchn commented on Jun 18, 2026

    @mitchchn
    Member

    Ah, I can repro in beta 4 by switching to the Breeze Light KDE theme. (To confirm try setting your theme to Breeze Dark and then launching the app -- you should no longer see the line.)

    So this is a different white line from before: this is the edge of the frame (which takes on the colours from the system theme), not the root view. This is a tricky problem to solve at fractional scales since there is no way to force all these rectangles to line up exactly, but I will explore some more options.

  21. YUCLing commented on Jun 18, 2026

    @YUCLing
    ContributorAuthor

    So this is a different white line from before: this is the edge of the frame (which takes on the colours from the system theme), not the root view.

    Yes, I think that's the case, thanks for your testing! I switched to Breeze Black then I can barely see the line. But if I change the color of the body background, I can see it clearly as a black line.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    41-x-ybug 🪲bug/regression ↩️component/BrowserWindowhas-repro-gistplatform/linuxstatus/confirmedwayland

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions