Skip to content

broken window border with wayland #247054

Description

@DimanNe

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.99.3
  • OS Version:
Distributor ID: Ubuntu
Description:    Ubuntu 24.10
Release:        24.10
Codename:       oracular

Steps to Reproduce:

  1. Open code
  2. Look at the right

You will see this:

Image

While in reality,

there are two windows! and the border on the right is actually ff:

Image

Activity

  1. bpasero commented on Apr 26, 2025

    @bpasero
    Contributor

    Does it help to configure window.titleBarStyle to native?

  2. added
    info-needed
    on Apr 26, 2025
  3. DimanNe commented on Apr 27, 2025

    @DimanNe
    Author

    It helps
    (but then there is another problem: it is native)

  4. bpasero commented on Apr 27, 2025

    @bpasero
    Contributor

    Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

  5. vs-code-engineering commented on May 5, 2025

    @vs-code-engineering
    Contributor

    This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

    Happy Coding!

  6. DimanNe commented on May 5, 2025

    @DimanNe
    Author

    Benjamin Pasero (@bpasero) I reproduced it with your insiders build. Same issue, see the screenshot:

    Image

  7. changed the title [-]There is no (right?) border in the window[/-] [+]broken window border with wayland[/+] on May 5, 2025
  8. added
    bug
    upstream
    and removed
    info-needed
    on May 5, 2025
  9. 43 remaining items

  10. pierrebrd commented on Mar 23, 2026

    @pierrebrd

    Quick update on this: Electron 41, released on March 10th, introduces better support for Wayland, including shadows on "frameless" wayland apps like vscode (See the changelog). A full blog post even shows an example of drop shadows on a vscode wayland window.

    So an upgrade to Electron 41 should fix this issue, but currently VS Code is still running on electron 39

  11. sedax90 commented on Mar 24, 2026

    @sedax90

    Robo (@deepak1556) there's a plan to update vscode to electron 41?

  12. canyonopm3026-create commented on Mar 24, 2026

    @canyonopm3026-create
  13. iacobucci commented on Mar 30, 2026

    @iacobucci

    On archlinux, gnome, wayland and a vscode-oss build the issue is very present: the border flickers and creates some bands

  14. iacobucci commented on Mar 30, 2026

    @iacobucci

    In the meantime for the fellow Gnome users, this extension https://github.com/flexagoon/rounded-window-corners solves the problem

  15. pierrebrd commented on May 28, 2026

    @pierrebrd

    Some good news!
    The newly released Insiders build comes with Electron 42, and finally there are shadows when VS Code is launched in native Wayland mode! This should be coming to stable release in version 1.123, next week.

    The shadows are similar to what we have on Chrome for example.

    Image

    However, there is still no rounded corners, but that's a less important issue. Also, there is a bug when you open multiple windows, the additional windows have a thin frame around the shadows:

    Image

    Robo (@deepak1556)

  16. cbrnr commented on May 28, 2026

    @cbrnr

    That's a start. Meanwhile, I've managed to make it work on KDE using window rules and the Rounded Corners extension. Works great!

    Image
  17. sedax90 commented on Jun 4, 2026

    @sedax90

    Some good news! The newly released Insiders build comes with Electron 42, and finally there are shadows when VS Code is launched in native Wayland mode! This should be coming to stable release in version 1.123, next week.

    The shadows are similar to what we have on Chrome for example.

    Image However, there is still no rounded corners, but that's a less important issue. Also, there is a bug when you open multiple windows, the additional windows have a thin frame around the shadows: Image [Robo (@deepak1556)](https://github.com/deepak1556)

    for the rounded corners I think we should wait this: electron/electron#51459

  18. sedax90 commented on Jun 25, 2026

    @sedax90

    Rounded corners are actually default on linux with Electron 43+ electron/electron#52111

    Let's just hope it doesn't take months again before vscode decides to update the electron version...

  19. mitchchn commented on Jun 25, 2026

    @mitchchn

    Also, there is a bug when you open multiple windows, the additional windows have a thin frame around the shadows.

    Tracking this one here: electron/electron#51456.

  20. pierrebrd commented on Sep 17, 2026

    @pierrebrd

    Solved with VSCode 1.139 (current insiders release) with electron 43, windows now have both shadows and rounded corners.

  21. dmitrivMS commented on Nov 29, 2026

    @dmitrivMS
    Collaborator

    Thanks for clarifying that the original desktop was KDE. I reproduced the missing right edge on Ubuntu 24.10, KWin 6.1.5 / Breeze, native Wayland, with the custom title bar. I verified the fix on the same desktop in Stable 1.148.0 and Insiders 1.149.0. Both Firefox and VS Code were native Wayland windows; I measured the composited desktop, not just VS Code's own screenshot.

    VS Code build Unmaximized, empty light editor over a white Firefox page
    1.99.3 and 1.122.1 No exterior shadow at either of two window placements. In the originally reported 1.99.3, the pixels immediately inside and outside the right edge were both white.
    1.123.0, 1.148.0, and 1.149.0 Insiders A visible shadow followed the right edge at both placements. At scale 1, the first pixel outside VS Code darkened from #ffffff to #b3b3b3, with a 16-pixel shadow on this setup. Bringing Firefox back to the front restored pure white.

    What changed: electron/electron#49295 added shadows to frameless native Wayland windows. VS Code picked up that support in the Electron 42 upgrade, #316661, released in 1.123.0. The 1.149.0 milestone is for independent verification, not the first fixed release. This resolves the original overlapping-window edge report; it doesn't depend on rounded corners.

    wayland-window-edge.mp4

    Side-by-side desktop captures and enlarged edge samples comparing the affected release and Insiders.

    Verification steps — latest VS Code Insiders on Linux

    1. Log into KDE Plasma Wayland (echo "$XDG_SESSION_TYPE" should print wayland). Open a white page in Firefox, such as about:blank with a light browser theme.
    2. Launch code-insiders --ozone-platform=wayland --disable-extensions --user-data-dir "$(mktemp -d)" --new-window. Select Visual Studio Light, keep window.titleBarStyle set to custom, and close any editor tabs so the workbench is empty.
    3. Unmaximize the Insiders window and place it in front of Firefox, with the middle of its right edge over the white page. Keep Insiders focused; don't tile it or use full screen.
    4. Expected: you can see where VS Code ends and Firefox begins. Move the Insiders window sideways: the shadow should follow its edge. Bring Firefox to the front: the white page should have no mark where the edge was. The exact shadow width need not match across themes or display scales.
  22. added
    verification-needed
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buglinuxupstreamverification-neededwayland

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions