Skip to content

[Bug]: VS Code with custom titlebar still draws the system titlebar #29523

Closed

Description

@mystiquewolf

Preflight Checklist

Electron Version

12.0.4

What operating system are you using?

Other Linux

Operating System Version

Kubuntu 21.04

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

VS Code draws just the client-side custom titlebar, no system title bar is drawn from the compositor side.

Actual Behavior

VS Code draws both system and custom client-side titlebars at the same time.

Testcase Gist URL

No response

Additional Information

According to THIS comment, either Electron asks KWin to draw a titlebar, or KWin decides on its own to draw the titlebar.

So i'm moving down the stack by one and filing a bug at Electron.

VS Code is started with the following command line in order to use Wayland implementation: /usr/share/code/code --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox --unity-launch %F
VS Code info:

Version: 1.56.2
Commit: 054a9295330880ed74ceaedda236253b4f39a335
Date: 2021-05-12T16:45:26.313Z
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Linux x64 5.11.0-17-lowlatency

Kubuntu info:

Operating System: Kubuntu 21.04
KDE Plasma Version: 5.21.90
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-17-lowlatency (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7,6 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

Activity

  1. nornagon commented on Jun 18, 2021

    @nornagon
    Contributor

    Thanks for reporting this and helping to make Electron better!

    Because of time constraints, triaging code with third-party dependencies is usually not feasible for a small team like Electron's.

    Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

    Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

    I'm adding the blocked/need-repro label for this reason. After you make a test case, please link to it in a followup comment.

    Thanks in advance! Your help is appreciated.

  2. added
    blocked/need-repro
    on Jun 18, 2021
  3. mystiquewolf commented on Jun 20, 2021

    @mystiquewolf
    Author

    I'm not sure if i would be able to create a reduced testcase. I am not an Electron developer and i would have to create a custom titlebar on my own, when VS Code already has one.

    Basically in this issue it should be checked whether Electron asks KWin to draw a system toolbar and if so - why it asks it when VS Code already draws its own custom titlebar.

    If Electron does not ask KWin to draw the titlebar, then the bug is lower in the software stack - at the KWin compositor level.
    If there is someone else who wants to create a reduced testcase - please feel free to do so.

  4. vially commented on Aug 2, 2021

    @vially
    Contributor

    I'm not running KDE so I'm unable to test this but I just came across this upstream Chromium issues (chromium#1138724) which seems to describe the same problem.

    It looks like it should have been fixed starting from chromium version 93.0.4567.0 that will be part of the Electron version 14.0.0-beta.18 which I think should be released soon (36226a4).

    It may be worth testing this again with the latest beta, alpha and nightly releases.

  5. RaisinTen commented on Jul 15, 2022

    @RaisinTen
    Contributor

    https://code.visualstudio.com/updates/v1_69#_electron-18-update tells me that the latest VS Code is on Electron v18 where the fix has included. @mystiquewolf @vially could y'all test it out and let me know if this is still an outstanding issue?

  6. mystiquewolf commented on Jul 15, 2022

    @mystiquewolf
    Author

    It's fixed here.

  7. RaisinTen commented on Jul 15, 2022

    @RaisinTen
    Contributor

    Thanks for confirming, closing! :)

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

    12-x-yblocked/need-reprobug 🪲platform/linuxwayland

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions