Collapse VSCodium title bar via height instead of display:none

Using display:none removed the drag region entirely, which caused
GNOME/Mutter to fall back to server-side decorations. Collapsing the
title bar to 0 height keeps VSCodium's frameless state intact.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-16 19:46:04 +01:00
parent 43a8cb976c
commit 362f3b3d86

View file

@ -26,7 +26,7 @@
workbenchHtml="$out/lib/vscode/resources/app/out/vs/code/electron-browser/workbench/workbench.html"
if [ -f "$workbenchHtml" ]; then
substituteInPlace "$workbenchHtml" \
--replace-fail '</head>' '<style>.monaco-workbench .part.titlebar { display: none !important; }</style></head>'
--replace-fail '</head>' '<style>.monaco-workbench .part.titlebar { height: 0 !important; min-height: 0 !important; overflow: hidden !important; visibility: hidden !important; }</style></head>'
fi
'';
}))