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
Allow VS-code to respect native titlebar decorations configuration on GNOME/Linux #176467
electronIssues and items related to Electronfeature-requestRequest for new features or functionalitylinuxIssues with VS Code on LinuxtitlebarVS Code main title bar issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
Coming from #21 on vscode-adwaita, on GNOME Desktop environment (and on other distros as well) we can configure what titlebar decorations appear, viz Minimize, maximize buttons can appear or disappear via GNOME tweaks app.
VS-code doesn't support this by default, and for maximum cross-compatibility, we would like this feature to be customizable.
TLDR:
allows maximize/minimize button to appear or disappear via settings, just like Microsoft Edge browser does by having a small corner allocated for the native title bar buttons, while the rest of it is the internal browser GUI.
Support native titlebar decorations depending on the Distribution/Platform.
Attaching image of window decorations on VS code with window.titleBarStyle set to custom, GNOME files (Nautilus) on libadwaita 1.2x, GNOME 43.2 and Microsoft Edge browser (Version 109.0.1518.70 (Official build) (64-bit)) with GNOME tweaks, disabling maximise and minimize buttons
And with GNOME tweaks enabling Maximise/Minimize buttons:
Reacted by Kirill Malgichev, TomiOhl, Tim Denholm, mount2010, Alex, Kdwk, Tomas Zaluckij, Sebastian Schubert, Andika Sujanadi, DaPigGuy and 267 more
Reacted by StarchaserDev, Lasse Rosenow, Daniel Mesquita, Tri Phuong Nguyen, dy0gu, Muslim and leanderj08
Reacted by TomiOhl, Nameful Namor, piousdeer, Kdwk, Andika Sujanadi, Alan Beveridge, stasys-hub, Manh Luong, Altair Bueno, David Holder and 45 more
Reacted by JumpyVi, Kas , Kilari Teja, Dacjan Gapinski, Yanice, Mauro Codella, Cristian M, Piotr Wojciech Świercz, Canaris, Marcus Behrendt and 17 more
Reacted by Dacjan Gapinski, Daniel Calderón, eriolloan, Tri Phuong Nguyen, y2-Whyto, Michael Avagianos, Muslim and leanderj08
Window Controls Overlay, a feature of browsers and electron (our platform) which draws native window controls in a reserved area over our application. It allows you to get the same native features of window controls that we cannot implement in HTML/JS
Let me +1 these. Also, take into account that sometimes not all controls are at the same side, e.g. on elementary OS/Pantheon the close button is on the left, the maximize button is on the right.
Reacted by Nameful Namor, Robert Kasanicky, Ashlyn Knox, Ubelloch and Timur Vasyunin
The PR broke this. They never think anything twice before merging everything.
Off-topic: Why do we need the vscode-custom-css extension? There used to be a fantastic extension that could hot-load CSS in Code, and then you broke it. You break features, we make workarounds; you continue to break workarounds. Your issue review process is absolutely not a problem, since you can find this issue among 5k+ issues (I couldn't find it because we described the problem in completely different ways) and mark mine as Duplicate, but no one considered that Linux also has custom window decorations with window control buttons on the left when writing that PR which concerns macOS. You fill your products with tons of features labeled as Preview but enabled by default, from Code to GitHub to Windows, and then rush them to stable within weeks. If this is Microsoft, then you're over.
Reacted by Rodrigo, Ivan, boltgolt, Alexandre Serra and null
still broken on GNOME 49, wish to add a non-wrapped titlebar or at least the ability to respect the correct configuration like only shows the exit window control
Reacted by Muslim, Clover Yan, Alexandre Serra and Gabriel Smoljar
* Reloading window
* Restarting VS Code
* Verifying syntax in `settings.json`
* Switching between `"window.titleBarStyle": "custom"` and `"native"`
* Confirmed that I’m running under **X11**, not Wayland
Still, no visible border appears.
Question
Is this feature currently broken or unsupported on GNOME 46 / X11? If there’s a known limitation or workaround, please advise.
it just need to copy the implementation of chromium, like it uses the freedesktop theme wich is good and you cand also have a wrapped menu but it can hide the maximise and minimise buttons...
Now that Electron 43 is being integrated in #332935, it would be great to revisit this issue as part of that update.
Electron 43 now respects the system-configured window control layout on Linux, including button visibility and left/right placement. It seems like most of the upstream work blocking this issue is now available.
Reacted by smowzy, Alexandre Serra, jobukkit, Gabriel Smoljar and GlacierFox
Following up on the Electron 43 question: the official .deb now follows GNOME’s button visibility and order with window.titleBarStyle: "custom". The Insiders Snap on native Wayland still did not in my tests, even at the same commit (d7885d3d).
Build tested
GNOME set to close only
GNOME set to all three on the left
1.138.0 .deb, X11 (Electron 42)
All three stayed on the right
All three stayed on the right
1.139.0 .deb, X11 (Electron 43)
Only close
All three moved left
1.149.0 Insiders .deb, X11 and native Wayland
Only close
All three moved left
1.149.0 Insiders Snap, rev 2654, native Wayland
All three stayed on the right
All three stayed on the right
I used clean profiles with extensions disabled on Ubuntu 22.10 (GNOME Shell 43.1 on X11; nested Mutter 43.0 for Wayland). A separate GTK window confirmed the active GNOME setting. The Insiders .deb also followed a split layout, with close on the left and minimize/maximize on the right. On X11, clicking minimize and maximize worked on either side. The release boundary matches electron/electron#51161 and VS Code’s Electron 43 update.
Remaining Snap case: The Wayland Snap defaults to custom-drawn controls. I also explicitly set "window.controlsStyle": "native" and fully restarted. That enabled the native overlay, but all three buttons still stayed on the right while the GTK window followed GNOME. The default alone therefore doesn’t explain the result. A useful next check is to compare which GTK decoration layout the Snap process sees with the one the desktop publishes. I’m leaving this open for that case; this test covers visibility and placement, not pixel-identical theme artwork.
Recording: changing GNOME’s settings with the Insiders .deb and a GTK reference window side by side on X11.
insiders.mp4
Same Insiders commit and same all-left preference on native Wayland:
electronIssues and items related to Electronfeature-requestRequest for new features or functionalitylinuxIssues with VS Code on LinuxtitlebarVS Code main title bar issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
Activity
sbatten commentedon Mar 9, 2023
This would come from WCO on linux, right Robo (@deepak1556)
adhadse commentedon Mar 10, 2023
SteVen Batten (@sbatten) Can I please know what is WCO on linux?
sbatten commentedon Mar 15, 2023
Window Controls Overlay, a feature of browsers and electron (our platform) which draws native window controls in a reserved area over our application. It allows you to get the same native features of window controls that we cannot implement in HTML/JS
fedorenchik commentedon Apr 28, 2023
Anurag Dhadse (@adhadse) SteVen Batten (@sbatten) can we also add feature to respect window titlebar buttons position (left / right side) ?
TomiOhl commentedon May 8, 2023
Let me +1 these. Also, take into account that sometimes not all controls are at the same side, e.g. on elementary OS/Pantheon the close button is on the left, the maximize button is on the right.
suwermave commentedon May 21, 2023
This is needed, please implement.
sousaakira commentedon Aug 4, 2023
How do I move the title bar buttons to the left side?
32 remaining items
sousaakira commentedon Mar 13, 2025
the script https://github.com/remigermain/vscode-controls-linux no worker on Vscode 1.98.1
clover-yan commentedon Mar 31, 2025
The PR broke this. They never think anything twice before merging everything.
sousaakira commentedon Jul 7, 2025
I found a solution: first we need to change the “Dialog Style” to native.
Go to Settings > Window > Dialog Style and select Native.
Then run these commands:
ctrl + shift + p
Enable Custom CSS end js
remigermain commentedon Sep 23, 2025
For those who want the controls on the left, the script works again.
need to add in your settings
shafiqimtiaz commentedon Oct 23, 2025
I’m trying to customize the active/inactive window borders in VS Code, but the settings don’t seem to have any visible effect.
Settings
Expected behavior
A green border around the active window and a red border around inactive ones.
Actual behavior
No border is displayed at all.
System details
What I’ve tried
settings.json"window.titleBarStyle": "custom"and"native"Still, no visible border appears.
Question
Is this feature currently broken or unsupported on GNOME 46 / X11?
If there’s a known limitation or workaround, please advise.
pfanzola commentedon Nov 19, 2025
still broken on GNOME 49, wish to add a non-wrapped titlebar or at least the ability to respect the correct configuration like only shows the exit window control
clover-yan commentedon Dec 13, 2025
Quoted text
Shafiq Imtiaz (@shafiqimtiaz) It was intentionally removed — please see #176467 (comment)!
Also, I don't think completely using AI to write comments is a good idea. Using it as a translator is enough.
pfanzola commentedon Dec 19, 2025
it just need to copy the implementation of chromium, like it uses the freedesktop theme wich is good and you cand also have a wrapped menu but it can hide the maximise and minimise buttons...
aleserrags commentedon Mar 31, 2026
Any updates on this issue?
terra2o commentedon Apr 26, 2026
Still a big issue for a lot of people
eyelash commentedon May 3, 2026
There is some upstream progress happening in electron:
tarik02 commentedon May 6, 2026
this matters too: #310602
rodrigoGA commentedon Aug 29, 2026
Now that Electron 43 is being integrated in #332935, it would be great to revisit this issue as part of that update.
Electron 43 now respects the system-configured window control layout on Linux, including button visibility and left/right placement. It seems like most of the upstream work blocking this issue is now available.
dmitrivMS commentedon Nov 29, 2026
Following up on the Electron 43 question: the official
.debnow follows GNOME’s button visibility and order withwindow.titleBarStyle: "custom". The Insiders Snap on native Wayland still did not in my tests, even at the same commit (d7885d3d)..deb, X11 (Electron 42).deb, X11 (Electron 43).deb, X11 and native WaylandI used clean profiles with extensions disabled on Ubuntu 22.10 (GNOME Shell 43.1 on X11; nested Mutter 43.0 for Wayland). A separate GTK window confirmed the active GNOME setting. The Insiders
.debalso followed a split layout, with close on the left and minimize/maximize on the right. On X11, clicking minimize and maximize worked on either side. The release boundary matches electron/electron#51161 and VS Code’s Electron 43 update.Remaining Snap case: The Wayland Snap defaults to custom-drawn controls. I also explicitly set
"window.controlsStyle": "native"and fully restarted. That enabled the native overlay, but all three buttons still stayed on the right while the GTK window followed GNOME. The default alone therefore doesn’t explain the result. A useful next check is to compare which GTK decoration layout the Snap process sees with the one the desktop publishes. I’m leaving this open for that case; this test covers visibility and placement, not pixel-identical theme artwork.Recording: changing GNOME’s settings with the Insiders
.deband a GTK reference window side by side on X11.insiders.mp4
Same Insiders commit and same all-left preference on native Wayland: