Linux: keep the window manager's title bar buttons only (#1994)

Draw the custom minimize/maximize/close buttons only on Windows, the platform that hides the native title bar. Linux keeps the window manager's decorations, so it no longer shows two sets of buttons. macOS is unchanged.
This commit is contained in:
Gert Pellin - GPE authored and GitHub committed 2026-11-18 16:40:52 +07:00
1 parent 69f53c2f03
commit c6ea208b1c
1 file changed
+3 -1
@@ -655,7 +655,9 @@ export const TopBar = ({ pageName }: Props) => {
{/* TODO(bt,2025-09-12): This was the old auth buttons that didn't work. We need to remove this and clean up the DOM. */}
</div>
{isDesktop && platform !== "macos" && (
{/* Only Windows hides the native title bar (`decorations(false)` in setup_main_window.rs);
macOS overlays its traffic lights and Linux keeps the window manager's own buttons. */}
{isDesktop && platform === "windows" && (
<div className="no-drag flex items-center">
<Button
variant="secondary"