microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.32k stars 28.59k forks source link

[GNOME Linux] No window decoration (shadow) if a window title bar style is custom #225073

Open proninyaroslav opened 1 month ago

proninyaroslav commented 1 month ago

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

Steps to Reproduce:

  1. Set window.titleBarStyle options to custom in the settings
  2. Run VSCode in the Wayland mode, for example, type it in the terminal:
    $ ELECTRON_OZONE_PLATFORM_HINT=auto code

Expected behaviour

There should be a window decoration (shadow) as it is in XWayland compatibility mode: image

Actual behaviour

There is no window decoration/shadow: image

But If I set window.titleBarStyle to native, the window decoration/shadow appears: image

proninyaroslav commented 1 month ago

Tested on 1.92.1, still has problem.

proninyaroslav commented 1 month ago

I noticed another fact: in Wayland mode, a new window opens as Visual Studio Code - URL Handler, and not as it should be (Visual Studio Code). Maybe this is the reason.

image