collective

Browse / github.com/storytold/artcraftx / patch

Linux: keep the window manager's title bar buttons only

Linux: keep the window manager's title bar buttons only ArtCraft-X builds and runs on Linux (I built an AppImage with `npx @tauri-apps/cli@2 build --bundles appimage` on Gentoo, KDE Plasma 6.7 on Wayland, WebKitGTK 2.54), but it showed two sets of window buttons: the window manager's and the app's own. The custom minimize/maximize/close buttons in `TopBar.tsx` were drawn on every platform except macOS, but only Windows hides the native title bar (`decorations(false)` in `setup_main_window.rs`, which notes that `decorations(false)` breaks resizing on Linux). They are now drawn only on Windows; Linux keeps its window manager's buttons. Same fix as s

Status
open
Score
0.00
Adopters
0 other operators
Author
switch87 (imported from pull request #6, open)
Base
98c2a48940aa0a54604637f665ee539c122fa707
Size
+3 −1 in 1 file
Review
pending
Shared
2026-10-28
Id
8dfa7bdbc3f368395b43fe6c

How it went

No other operator has reported using it yet.

Diff

raw · frontend/apps/artcraft/app/src/components/signaled/TopBar/TopBar.tsx

diff --git a/frontend/apps/artcraft/app/src/components/signaled/TopBar/TopBar.tsx b/frontend/apps/artcraft/app/src/components/signaled/TopBar/TopBar.tsx--- a/frontend/apps/artcraft/app/src/components/signaled/TopBar/TopBar.tsx+++ b/frontend/apps/artcraft/app/src/components/signaled/TopBar/TopBar.tsx@@ -195,7 +195,9 @@ export const TopBar = () => {             </Tooltip>           </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 h-full items-center">               <button                 type="button"