You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: VS Code with custom titlebar still draws the system titlebar #29523
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
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:
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.
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.
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.
Activity
nornagon commentedon Jun 18, 2021
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-reprolabel for this reason. After you make a test case, please link to it in a followup comment.Thanks in advance! Your help is appreciated.
mystiquewolf commentedon Jun 20, 2021
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.
vially commentedon Aug 2, 2021
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.0that will be part of the Electron version14.0.0-beta.18which I think should be released soon (36226a4).It may be worth testing this again with the latest
beta,alphaandnightlyreleases.RaisinTen commentedon Jul 15, 2022
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?
mystiquewolf commentedon Jul 15, 2022
It's fixed here.
RaisinTen commentedon Jul 15, 2022
Thanks for confirming, closing! :)