Commit Graph
11 Commits
Author SHA1 Message Date
chasse20 59270b4a52 Auto: Validate Xwayland setup before selecting X11 and integrate main
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.
2026-11-27 19:58:00 +00:00
vangel76 c54e1eb75e Xwayland for the pen only when its X server answers; hand the chosen backend to the title bar and UI runtime
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.
2026-11-26 21:58:59 +01:00
aiongg 05d0fbf76e The clipboard test holds the test language lock 2026-11-25 21:08:22 +00:00
aiongg 28a0d1a0ef Tab hides the UI only while bound to it; Enter drops a later Ctrl; a hidden update result shows again 2026-11-25 21:08:06 +00:00
aiongg 0e18776470 Floating windows carry the running channel's app id 2026-11-25 20:09:39 +00:00
aiongg 0baab2e46e Copy, Cut and Paste pressed in a floating panel reach the app 2026-11-25 15:12:06 +00:00
aiongg d52810b354 The viewport is one real Tab stop
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.
2026-11-25 13:40:51 +00:00
aiongg 966ff1d331 Leave Shift+Tab to focus traversal: unbind the panels-except-tools toggle 2026-11-25 07:34:33 +00:00
aiongg 14d82e59e2 Hide UI on a bare Tab through the framework's chrome toggle 2026-11-25 07:24:03 +00:00
aiongg dbd1c7077e Test round 1: Backspace no longer runs Delete bindings, the window's Enter reaches the Enter handlers, tab close buttons
- 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.
2026-11-24 16:15:19 +00:00
aiongg a13e9a74ee Host TextureCraft's egui UI on craft-libs next's runtime
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.
2026-11-24 15:32:09 +00:00