Keep native Wayland when the local X server rejects setup or lacks the requested screen. Cover rejected and accepted replies, document pointer support and Flatpak access, and retain the PhotoCraft copyright and license notices.
Focused Linux desktop, titlebar and framework tests passed, along with Clippy, formatting, layers and wasm checks.
A DISPLAY left over from another session could force X11 with no X server to connect to, and
winit can't fall back to Wayland then. The title bar decision and the UI runtime read the
backend from the environment and saw Wayland while the window opened on Xwayland.
The 3D and 2D views are declared as host canvases with the ids of their own widgets, so egui keeps the focus Tab gives them.
A bare Tab on a focused view hides and shows the UI through the runtime's chrome toggle, as with nothing focused; Shift+Tab moves on from it.
A focused view leaves the keyboard to the shortcuts, the held keys and the Path tool.
- The app's dispatcher declines a Delete binding for a Backspace press (and the reverse): craft_keymap's
Matcher lets the two stand for each other, and TextureCraft binds them apart (Delete removes the layer,
Backspace a Path tool point).
- A plain Enter with nothing focused is the runtime's window submit: menus::shortcuts puts it back as an
Enter press, as it does the window's Escape, for Reset UI, project config, import resources and the
Path tool.
- Each closable dock tab has its close button, as each group header had one.
- Tests: the pointer-lock helper no longer rewrites input the app's raw_input_hook already rewrote
(egui_kittest runs the hook before every pass); tab lookups by role; next's workspace format version;
measured view edges instead of the old dock gap; a click's commit settles a frame later; tests of the
old header painting and old divider geometry deleted; rustfmt.
The runtime is installed from TextureCraft's own eframe App (framework.rs): the close question
decides in the runtime's close path, the window's Escape runs TextureCraft's Escape handlers and
the shortcut recorder, the viewport is the window's document canvas (Tab stays Hide UI), and
Ctrl+Q and F6 stay TextureCraft's. The dock is next's DockArea over the saved workspace, with the
viewport as its canvas group; the update dialogs run on a DialogHost; the strip is next's
TitleBar where the app draws the frame. The removed helpers (icon-button painter, pane split,
widget palette, shortcut dispatcher) are app-local. Every app harness installs the runtime.