Linux: VectorCraft draws its own title bar on every desktop unless System Title Bar is on

On KDE Plasma, Sway, Hyprland, COSMIC and X11 window managers the window
kept the desktop's frame, and the app bar with its brand mark sat below
it. Where the desktop draws a title bar, as KDE Plasma does, the window
showed two. When the desktop's bar was hidden through the window
manager, the app bar left behind did not move the window and had no
caption buttons.

On Linux and the BSDs VectorCraft now draws its own title bar on every
desktop unless Preferences › User Interface › System Title Bar is on, as
PhotoCraft does. The craft-window probe no longer picks the frame.
VECTORCRAFT_TITLEBAR decides for the run it is set in: app draws
VectorCraft's bar and system or desktop keeps the desktop's frame, also
when the preference says otherwise. Before, System Title Bar on gave
the desktop's frame even with app. macOS and Windows are unchanged.

When the variable keeps the desktop's frame, the app bar leaves out the
brand mark, as it does with System Title Bar. While the variable is
set, Preferences dims System Title Bar and says that the variable
chooses the title bar; the dialog's __titlebarFromEnv field is true.
The note has a row in the 24 catalogs.

Docs: docs/control-protocol.md, docs/development.md,
docs/target-app-parity.md.
This commit is contained in:
dotCooCoo
2026-10-26 10:03:31 -07:00
parent e2a8280134
commit 90788b632a
31 changed files with 178 additions and 79 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ On macOS the menus live in the system menu bar, not in the window's app bar (whi
## Linux: Wayland and X11
On GNOME/Wayland, enable **Preferences › User Interface › System Title Bar** and restart to use winit's font-free Adwaita window controls (`wayland-csd-adwaita-notitle`); the existing custom title bar remains the Linux default.
On every Linux desktop the app bar is the window's title bar by default. Enable **Preferences › User Interface › System Title Bar** and restart to give the window the desktop's frame instead: KDE Plasma, Sway, Hyprland, COSMIC and X11 window managers draw it, and on GNOME/Wayland winit draws its font-free Adwaita window controls (`wayland-csd-adwaita-notitle`). `VECTORCRAFT_TITLEBAR=app`, `=system` or `=desktop` chooses the frame for one run, whatever the preference says.
The window runs natively on Wayland (eframe's `wayland` feature) and on X11. On machines with two GPUs it renders on the one the desktop runs on unless Preferences say otherwise; see [Desktop graphics processor](#desktop-graphics-processor) (#502). The system clipboard (`apps/vectorcraft/src/clipboard.rs`) is arboard with its `wayland-data-control` feature: