Commit Graph
11562 Commits
Author SHA1 Message Date
Michael Higgins 9d5be5ec8e Bridge: never send the control token to a listener that is not the app
## Summary

`photocraft-cli mcp --bridge` sent the control token in clear as its first frame, to whatever had accepted the connection: a `[::1]` listener reached through a `localhost` lookup, or any process holding `127.0.0.1:<port>` while the app was not listening. This PR fixes both cases:

- **Literal loopback only.** `BridgeClient` parses its address into a socket address and connects to it. Only `127.0.0.1:<port>` and `[::1]:<port>` are accepted. `localhost:<port>` means `127.0.0.1:<port>` (what the desktop app binds) and is never looked up.
- **Challenge authentication.** The bridge authenticates with `auth.challenge {clientNonce}` → `{serverNonce, serverProof}` → `auth {proof}`. Both proofs are HMAC-SHA256 keyed by the token over both nonces, each under its own label. The client checks the server's proof before it sends its own and never falls back to sending the token. The token never crosses the wire, so a listener that is not the app gets only a random nonce.
- **One shared server implementation.** `security::ServerHandshake` replaces `authentication_reply`, and both the desktop control server and `photocraft-cli serve` use it. The servers still accept the one-frame `auth {token}`, so existing scripts and older clients keep working. A repeat `auth.challenge` after authenticating gets "already authenticated", like a repeat `auth`.
- HMAC comes from RustCrypto's `hmac` 0.12 with `sha2` 0.10 (`sha2` was already in the lockfile). The proofs are compared without an early exit.
- `docs/control-protocol.md` documents the handshake, the exact HMAC message, and the bridge's address rules. The book's protocol summary is updated too.

Compatibility: a new bridge needs an app from the same release. Against an older app it fails with "refused challenge authentication … the control token was not sent". It does not downgrade.

Known limit: the channel is plain TCP with no TLS, so nothing binds the handshake to the connection. A party sitting between a bridge and a real app could relay the handshake without learning the token. On loopback that needs it to hold the port the bridge dials while the app listens on another, which the literal-address rule above narrows. Older clients that still send `auth {token}` keep their old exposure until they upgrade.

Closes #9777

## Tests

New in `crates/automation/tests/it/bridge_token.rs`:

- `localhost_reaches_the_ipv4_app_not_an_ipv6_listener`: a listener on `[::1]:P` gets no connection, and the app on `127.0.0.1:P` does.
- `a_listener_that_is_not_the_app_never_receives_the_token`: on both loopbacks, a listener that stays silent, refuses, or fakes the challenge receives only the challenge frame, never the token. The error says why.
- `the_bridge_authenticates_to_the_headless_server_by_challenge`: end to end against `rpc::serve_tcp`. A wrong token is refused before its proof is sent.

Unit tests: the handshake in both directions, and that wrong, missing or replayed proofs, the token after a challenge, a second challenge and malformed nonces are all refused (`security.rs`). `loopback_socket` address parsing (`bridge.rs`). The desktop server answering a challenge, then dispatching (`control_server.rs`). The existing bridge and MCP fakes now run the real `ServerHandshake`.

Run locally (Windows 11, targeted tests only):

- **Fail before.** I put upstream's `crates/automation/src/bridge.rs` (the old client) back and ran `cargo test -p photocraft-automation --test it bridge_token`: **3 failed**. The `[::1]` listener received `{"method":"auth","params":{"token":"<the token>"}}`, a `127.0.0.1` listener received the raw token, and the headless test got "authentication required" instead of the refusal. The original audit tests (`audit_nv6_bridge_sends_token_to_ipv6_impostor`, `audit_nv6_bridge_sends_token_to_any_ipv4_holder`) fail the same way on upstream/main.
- **Pass after.**
  - `cargo test -p photocraft-automation --lib --test it -- bridge security tcp`: 23 + 21 passed. This covers the new tests, the existing bridge, MCP-bridge, security and serve TCP tests, and the legacy-token tests that still pass unchanged.
  - `cargo test -p photocraft control_server`: 6 passed, including the new challenge test. The legacy-token tests still pass.
  - `cargo clippy -p photocraft-automation --all-targets -- -D warnings`: clean.
  - `cargo fmt`: clean.
- `Cargo.lock` adds only `hmac` 0.12.1, plus `subtle` under `digest` (already in the lock). Checked with `cargo metadata --locked`.

Not run here: the full gate (`cargo xtask ...`, the workspace-wide tests, wasm, clippy on the desktop app crate). That is left to CI.

API note: the workspace-internal `security::authentication_reply` is replaced by `ServerHandshake::reply`, which returns an `AuthStep`.


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Security**
  * Control connections support challenge-response authentication, verifying possession of the configured token without sending it. Token-in-frame authentication remains available for scripts.
  * The MCP bridge accepts literal loopback addresses and maps `localhost` directly to IPv4 loopback. It rejects servers that refuse or cannot complete challenge authentication.
* **Bug Fixes**
  * Rejected authentication exchanges close the connection; successful authentication allows requests to proceed.
* **Documentation**
  * Control protocol and bridge authentication behavior are documented.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-11 07:35:17 +01:00
Michael Higgins a2523f5817 Judge the unsaved-changes prompt's Save as file.save for automation
## Summary

Closing a dirty document opens the unsaved-changes prompt. Save there writes the document back over its own file, just like File › Save, but when automation answered the prompt (a control request's `ui.dialog.confirm` on `discard`, or synthetic input) it was judged only for the command it held back (`file.close`, which the desktop policy allows). A client confined to its roots could therefore write an open document over its own file outside the write root, even though `file.save` is refused for it.

The prompt now checks the automation policy for `file.save` before saving, whenever a control client answers it (`ui.dialog.confirm`, with or without a session gate installed) or the input is synthetic, the same way `dialogs::confirm` judges file-writing handlers (ebdddbe1f). A refused Save returns an error naming `file.save` (or shows it in the status bar for synthetic input), writes nothing, and leaves the prompt and the document open. A user's Save is unchanged.

- `crates/ui-egui/src/dialogs/discard_ui.rs`: `apply` returns a `Result` and knows whether a control client gave the answer, and Save goes through the new `authorize_save` first. A control answer counts as automation even when the services carry only the `automation_command` callback, so `control::handle` installs no session gate. `authorize_save` judges `file.save` with the installed session gate (or the services' `automation_authorize`) and with the `automation_command` callback. With neither available it refuses the Save instead of running it unchecked. `answer_control` returns the refusal, and the drawn prompt reports it in the status bar (for synthetic input the `ui.key` reply stays `ok: true` like every synthetic input's; the refusal shows in `ui.inspect`'s `status`/`statusError` and the prompt stays listed).
- `crates/ui-egui/src/control/tests.rs`: regression tests `automation_saving_from_the_unsaved_changes_prompt_is_judged_as_file_save` (a control request and synthetic input are refused: nothing is written, and the prompt and document stay; a policy that allows `file.save` lets both write and close; a user's Save still writes and closes) and `automation_saving_from_the_unsaved_changes_prompt_needs_a_policy_to_judge_it` (gate only, command callback only, and no policy at all, each through a control request and synthetic input: refused naming `file.save`, nothing written, prompt and document kept).

Closes #9766

## Tests run locally

- `cargo test -p photocraft-ui-egui --lib -- automation_saving_from_the_unsaved_changes_prompt discard_ui:: automation_confirming_a_file_writing_dialog`: 60 passed, 0 failed (the new test plus the existing `discard_ui` tests and the disk-change prompt precedent).
- Without the `discard_ui.rs` change the new test fails: the control request's Save wrote the document's own file outside the root (`synthetic=false: nothing is written: [...\outside\x.psd]`).
- `cargo fmt -p photocraft-ui-egui`.
- The follow-up commits 1743a3240 (control answer judged without a session gate) and 20f08b919 (tests split, allowing-policy case) were not built locally; CI is their test.


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Save requests from automation are checked for authorization before the document is written. If authorization is denied or unavailable, the document is not saved, and the unsaved-changes prompt remains open.
  * Errors from rejected Save requests are displayed, including when requests come through a control interface or synthetic input.
  * Synthetic Save input is refused when no authorization policy is available.
  * Authorized, user-triggered saves continue to save the document and close the prompt.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-11 07:34:54 +01:00
Michael Higgins 9961f91a13 codecs: charge deep OpenEXR per-pixel bookkeeping against max_alloc
## Summary

`decode_deep` (deep OpenEXR, `deepscanline` / `deeptile`) admitted the data window at four bytes a pixel per channel, then built 24 bytes a pixel of bookkeeping that `max_alloc` never saw: a `u32` count per pixel, per-chunk `Vec<usize>` pixel indices and `Vec<u32>` prefix tables kept until the second pass, and the returned `u64` index. A 4096x4096 deep file of 65 to 300 KB held 384 MiB live under a 64 or 128 MiB budget and returned `Ok`.

This change:

- keeps one per-pixel structure, the cumulative `u64` index the result returns anyway (`DeepImage::counts`, 8 B/px plus one entry), allocated fallibly and **charged against `max_alloc` before anything else is allocated**;
- has each chunk record only its block bounds, parses the count tables straight into that index, and places each block row's samples as one contiguous range in the second pass (a block row is a run of consecutive raster pixels), so no per-chunk per-pixel vectors remain;
- admits the count tables (with their scratch copies) and the sample buffers against what the index leaves of the budget, so the live total stays within `max_alloc`;
- requires the offset table to list exactly one chunk per block (a duplicate or missing chunk was already malformed), so `seen` and the chunk list stay proportional to the offset table in the file rather than to the header's geometry;
- allocates the sample channels fallibly (`alloc_zeroed`) instead of with `vec!`.

Existing tests that pin exact budgets (`deep_tile_count_table_is_admitted_against_max_alloc`, `clipped_count_tables_include_scratch_in_the_budget`, `raw_count_tables_need_no_scratch_even_with_compression`) now add the index's size to their boundaries; their table-and-scratch semantics are unchanged.

Closes #9785

## Tests

- New `deep_exr::deep_bookkeeping_is_charged_against_max_alloc` (`crates/codecs/tests/it/deep_exr.rs`): a synthetic 256x256 one-channel deep image without samples, scan lines and one tile, NONE / RLE / ZIPS. Under a four-byte-a-pixel budget both `decode_deep_exr` and `decode_with` must return `LimitExceeded`; it decodes at exactly index + count table (+ scratch) and fails one byte below.
  - Before the fix: **fails** (`tile None, compression 0: a four-byte-a-pixel budget gave Ok(65537)`).
  - After the fix: passes.
- Allocation audit (counting global allocator; local only, not committed since it needs `unsafe`), 4096x4096, one float channel, ZIPS, zero counts:

  | File | max_alloc | Before | After |
  |---|---|---|---|
  | deepscanline, 307,525 bytes | 64 MiB | `Ok`, peak 384 MiB (24.0 B/px), largest request 128 MiB | `LimitExceeded` (index needs 134,217,736 bytes), peak 0 MiB |
  | deeptile, 65,597 bytes | 128 MiB | `Ok`, peak 384 MiB (24.0 B/px), largest request 128 MiB | `LimitExceeded` (index needs 134,217,736 bytes), peak 0 MiB |

- `cargo test -p photocraft-codecs --test it -- deep exr`: 81 passed.
- `cargo test -p photocraft-codecs --lib exr`: 3 passed.
- `cargo clippy -p photocraft-codecs --lib --tests -- -D warnings`: clean.
- `cargo fmt -p photocraft-codecs -- --check`: clean.

## Not covered

- The second pass still holds one chunk's decompressed sample data (and its byte-split scratch copy) next to the sample buffers; each is bounded by the samples already admitted, but the sum is not charged as one total.
- `flatten` (the flat `decode` path) admits its output and display-stage buffers one at a time while the deep image is still live.


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Improved handling of deep EXR images when memory limits are configured. Decoding now accounts for additional sample-count data when checking available memory, and rejects inputs whose required allocations exceed the limit.
  * Improved validation of deep-image count tables, including tables associated with tiled images.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-11 07:32:55 +01:00
Michael Higgins 1253e79d68 fix(format): treat an unsupported directory flush on Windows as done (#9440)
Fixes #9440
Fixes #9787
Fixes #9535

## Cause
Saving to a mapped SMB drive on Windows publishes the file, then `AtomicFs::sync_dir` fails with `ERROR_INVALID_FUNCTION` (os error 1): the share cannot flush a directory handle. Since #8034 (for #7858) every Windows flush failure fails the save, so the document stays dirty and the save looks failed even though the file is in place. Unix already treats "directory flush unsupported" as done (`dir_synced`, #5420); Windows had no equivalent.

## Fix
`dir_synced`/`dir_sync_unsupported` now exist on all platforms and, on Windows, count `ERROR_INVALID_FUNCTION` (1), `ERROR_NOT_SUPPORTED` (50) and `ErrorKind::Unsupported` as "cannot flush directories". `atomic_write` and the bundle store use it before `publication_error`. `ERROR_ACCESS_DENIED`, I/O errors and everything else still fail the save, so the #7858 protection stays for real failures.

## Tested locally
`cargo fmt --all`; `cargo clippy -p photocraft-format --lib --tests -- -D warnings`; `cargo test -p photocraft-format --lib atomic` (includes new `windows_unsupported_directory_flush_codes_are_classified`). Not replayed on a real SMB share. The full gate was left to CI.


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **Bug Fixes**
  * On Windows, saves now succeed when directory flushing reports that the operation is unsupported, including during bundle publication and directory saves. This applies to unsupported-operation errors such as `ERROR_INVALID_FUNCTION` and `ERROR_NOT_SUPPORTED`. Other directory-flush errors, including access denied, continue to cause the save to fail and be reported.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-11-11 07:31:44 +01:00
skylar taylor-barrick 6b6d9dbbb2 Merge pull request #12374 from benandez/craft-i18n-cutover
i18n: take translations from craft-i18n (cutover)
2026-11-11 04:48:29 +01:00
skylar taylor-barrick fcda5fec94 Pin craft-i18n to merged PhotoCraft freeze top-up
storytold/craft-i18n#216 merged as e02939ef009218e81c44e8ec001fbb7603461de4; both Flatpak sources match craft-i18n.rev.
2026-11-10 20:27:15 -06:00
skylar taylor-barrick 1f77e59589 Merge origin/main (2772ac1e7) into craft-i18n cutover
Keep all 34 catalog deletions; sync crop options and fill rasterization text via craft-i18n 4a642c06dbcb8172f307f827c1167cd5dd8ac341. Adapt the fill prompt catalog test to embedded catalogs and preserve both parity-document updates.
2026-11-10 20:16:09 -06:00
David Mann 2772ac1e77 Merge pull request #13031 from ljkx/feat/smudge-tool-mode
Smudge: Mode dropdown in the options bar (#12959)
2026-11-11 02:59:37 +01:00
David Mann 097ebb21f4 Merge pull request #13028 from ljkx/feat/pattern-stamp-behind
Pattern Stamp: Behind in the Mode list, painting only where the layer is transparent (#12879)
2026-11-11 02:59:24 +01:00
David Mann 86f9e596d5 Merge pull request #12034 from DuBearte/fix/11892-alt-digit-smoothing
Brush: Alt+digit sets Smoothing (Alt+3 = 30%, Alt+0 = 100%)
2026-11-11 02:56:53 +01:00
David Mann f14d0699c0 Merge pull request #13037 from ljkx/feat/pen-alt-drag-segment
Pen: Alt-drag on a straight segment adds an anchor and pulls out its handles (#12899)
2026-11-11 02:56:38 +01:00
David Mann 2be87e4463 Merge pull request #13035 from ljkx/feat/pen-rubber-band
feat(ui): the Pen's gear has a Rubber Band check item, off by default (#12900)
2026-11-11 02:49:37 +01:00
David Mann dcbd128dae Merge pull request #13048 from Bobderto/codex/anchor-point-lock-position
Respect Lock Position in Add and Delete Anchor Point
2026-11-11 02:42:39 +01:00
David Mann db16701427 Merge pull request #13080 from rmsff/fix/background-eraser-channel-refused-12488
Background Eraser: refuse one colour channel of an RGB document
2026-11-11 02:41:26 +01:00
David Mann 799e4b8c59 Merge pull request #12646 from x-labb/fix-12017-gradient-refusal-alerts
fix(ui): the Classic gradient's refusals are the reference application's alerts (#12017)
2026-11-11 02:32:16 +01:00
David Mann f39a3c1fb5 Merge pull request #12718 from slafebre/feat/12052-type-bar-size-presets
Type options bar: font size preset list
2026-11-11 02:19:24 +01:00
ljkxandClaude Fable 5.2 b1c3ca7e84 Merge main into feat/pattern-stamp-behind
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 02:04:55 +01:00
ljkxandClaude Fable 5.2 928a523208 Merge main into feat/smudge-tool-mode
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 02:04:50 +01:00
ljkxandClaude Fable 5.2 0bd45e4a69 Merge main into feat/pen-rubber-band
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 02:04:44 +01:00
ljkxandClaude Fable 5.2 903bb24b61 Merge main into feat/pen-alt-drag-segment
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 02:04:37 +01:00
David Mann ab217cd32f Merge pull request #12995 from rmsff/fix/delete-anchor-escape-12773
Delete Anchor Point: Escape clears selected anchors, then the targeted path
2026-11-11 02:01:59 +01:00
David Mann 6a712d54c9 Merge pull request #12908 from hectorviov/fix/eraser-gray-background
Eraser and Fill: background swatch through the Grayscale document's grey profile (#11940)
2026-11-11 02:00:53 +01:00
David Mann 927cd5aecb Merge pull request #12240 from ElNeMeR70/fix/content-aware-move-context-menu-12194
Open selection context menus on right-click with Content-Aware Move tool
2026-11-11 02:00:35 +01:00
28e04e0d94 Brush Alt+digit Smoothing (#12034): keep key order, end a two-digit Opacity, fix fmt
The plain and Alt digit presses of one frame now run in the order they were
typed, so the Actions recorder sees them in that order, and an Alt digit ends
a pending two-digit Opacity value (4, Alt+3, 5 sets 50%, not 45%). The
two-digit test now sends its digits in one frame, so it no longer depends on
the runner's timing. New tests: the key order, Alt with Shift/Ctrl/Cmd, and
Smoothing turned on from off. The lib.rs mod line is in rustfmt order.

Co-Authored-By: DuBearte <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 02:00:11 +01:00
David Mann 7f4e4461bb Merge pull request #12983 from rmsff/fix/history-brush-format-mismatch-12842
History Brush: refuse a source of another colour mode or bit depth
2026-11-11 01:57:03 +01:00
David Mann 7539e14dce Merge pull request #12869 from Raghav2012Code/fix/12852-object-transparent-layer
fix(engine): Object Selection finds objects on a transparent layer (#12852)
2026-11-11 01:56:43 +01:00
Dylan M. Taylor a5342b134d packaging: use [[ for bash tests (SonarCloud S7688) (#13050)
Behaviour-preserving: `[[ ]]` in place of `[ ]` for bash tests (SonarCloud shell:S7688). Every script has a bash shebang; no test uses `-a`/`-o`, escaped parentheses or an unquoted pattern on the right of `=`. `bash -n` passes on each script; the rest is left to CI.

- `packaging/linux/apprun-cli-test.sh` (14)
2026-11-10 19:52:30 -05:00
rmsff af2fe890f8 Test the Background Eraser refusing one colour channel 2026-11-11 03:48:24 +03:00
rmsff e7c68638ce Background Eraser: refuse one colour channel of an RGB document
With only Red, Green or Blue targeted the reference application refuses
the stroke ("target channels do not cover the composite"), erases nothing
and adds no History state. The check sits in the setup shared by the
command and its live preview, so the preview draws nothing either. The
composite and the partial sets that weren't measured keep erasing.

The transparency-lock preview test targeted Green alone; it targets
Green and Blue now. Its helpers are pub(super) for the new tests.
2026-11-11 03:48:24 +03:00
David Mann 8e13a9b4e4 Merge remote-tracking branch 'origin/main' into pr-12034 2026-11-11 01:47:55 +01:00
David Mann 81236bdfd2 Merge pull request #13079 from davidmann4/fix/default-tool-cursor-complexity
Fix main: split the Pencil outline out of draw_default_tool_cursor (clippy cognitive complexity)
2026-11-11 01:43:13 +01:00
David MannandClaude Fable 5.2 47d3dcde33 Fix main: split the Pencil outline out of draw_default_tool_cursor
main fails the gate at clippy since #12214 landed: its Count arm took
draw_default_tool_cursor to a cognitive complexity of 31 (limit 30).
The Pencil / Block eraser outline moves into pencil_outline_cursor;
behaviour is unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 01:36:38 +01:00
x-labb adc4d3356d fix(ui): the Classic gradient's refusals are the reference application's alerts (#12017)
A Classic gradient drag on a hidden layer, a fully locked layer or a group now opens a modal alert
with OK (the texts of the Brush's #11898 alerts, for the gradient tool) and changes nothing, instead
of a status-bar line or a command error that named paint.gradient. The live Gradient and the
unmeasured cases (partly locked layers) keep their behaviour.
2026-11-11 01:33:40 +01:00
ljkxandClaude Fable 5.2 cd81562c4e Merge main into feat/smudge-tool-mode
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 01:33:13 +01:00
David Mann e99e07c04a Merge pull request #13022 from ljkx/feat/sponge-flow-field
Sponge: the options bar has a Flow field and strokes use it (#12976)
2026-11-11 01:27:21 +01:00
David Mann 9064c343d1 Merge pull request #13044 from rmsff/fix/warp-split-mode-stays-armed-12498
Warp: a Split button places one split, then its mode ends
2026-11-11 01:27:10 +01:00
David Mann c882bfd832 Merge pull request #13043 from rmsff/fix/red-eye-refuses-non-rgb-12575
Red Eye: refuse CMYK, Grayscale and Indexed Color documents
2026-11-11 01:26:57 +01:00
David Mann e1c5b771ea Merge pull request #13074 from storytold/fix/ruler-new-tuple-pattern
Fix main: match the tuple variant Drag::RulerNew(_) in the ruler Escape check
2026-11-11 01:16:00 +01:00
David MannandClaude Fable 5.2 9653bf1da6 Ruler: match the tuple variant Drag::RulerNew(_) in the Escape check
Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-11 01:13:19 +01:00
David Mann b4383dbeed Merge pull request #13003 from rmsff/fix/sharpen-refusal-alerts-12952
Sharpen: alert on a hidden, locked or group layer
2026-11-11 01:08:19 +01:00
FredApps 847d87bb9b Windows: a pen moves and resizes the window through the custom title bar (#7967) (#12992)
* Windows: a pen or a finger moves and resizes the window through the custom title bar (#7967)

winit takes pen and touch input as WM_POINTER messages and Windows makes no mouse
input from them, so the OS move/size loop that StartDrag/BeginResize start saw no
button down and never ran. winit only clears its dragging flag when that loop ends,
so after one pen try the mouse could no longer move the window either. A pen or
touch press on the title bar's gap or an edge now moves or resizes the window
itself (OuterPosition/InnerSize), restores a maximized window under the pen, and
stops at the minimum size; the mouse still hands the move to the OS.

* Pen title-bar move and resize follow the pen's own screen position (#7967)

On Windows winit moves the window asynchronously (SWP_ASYNCWINDOWPOS), so the
window position egui reads can be ahead of the window-relative pen position and
the drag counted the move twice (an injected pen ran +687/+909 for +200/+120).
The tablet hook now keeps the pen's screen pixels from GetPointerPenInfo
(ptPixelLocation) while the pen is down, and a PenDrag follows that.

A drag that follows the OS position no longer needs egui's pointer position: the
parked mouse cursor can leave the window as it moves away, and egui-winit's
PointerGone ended the drag after a few steps. It ends on release or when no
touch is down.
2026-11-11 01:08:12 +01:00
David Mann c908c79235 Merge pull request #12355 from rmsff/fix/type-mask-off-canvas-12074
fix(engine): a Type Mask keeps the part of its selection past the canvas edge (#12074)
2026-11-11 00:55:07 +01:00
David Mann f1b9b09f29 Merge pull request #13006 from rmsff/fix/make-selection-dialog-12917
Make Selection: Rendering and Operation groups; the dialog's step is Selection Change
2026-11-11 00:54:51 +01:00
David Mann 18ec9b1dc8 Merge pull request #12334 from rmsff/fix/vertical-type-history-name-12058
fix(engine): new vertical text is the history state "New Vertical Type Layer" (#12058)
2026-11-11 00:53:57 +01:00
David Mann d58afecac9 Merge pull request #12244 from ElNeMeR70/fix/gradient-live-drops-selection-12196
fix(engine): drop selection after masking a live Gradient Fill layer
2026-11-11 00:53:39 +01:00
David Mann 00430df4fe Merge pull request #12161 from hectorviov/fix/wand-inside-selection
Magic Wand: a New-mode click inside the selection deselects, a drag moves the outline (#11782)
2026-11-11 00:53:22 +01:00
David Mann 723cd6483e Merge pull request #12165 from hnoerenberg/fix/rotate-dialog-two-decimals-12035
fix(ui): the Arbitrary rotation dialog keeps the ruler's two decimals (#12035)
2026-11-11 00:53:03 +01:00
David Mann 8e104a84ae Merge pull request #12270 from DuBearte/fix/11980-ruler-click-keeps
Ruler: a plain click keeps the current ruler instead of deleting it
2026-11-11 00:52:10 +01:00
David Mann 536d4e7b67 Merge pull request #12214 from hectorviov/fix/count-cursors
Count tool: arrow cursors with 1+, 1 over a marker and 1- with Alt (#11773)
2026-11-11 00:51:50 +01:00
David Mann 5ba0bb0a3a Merge pull request #12201 from hectorviov/fix/eyedropper-zoom-box
Eyedropper: at 100 % zoom and below an N by N Average covers (N+1) x (N+1) screen pixels (#11751)
2026-11-11 00:51:27 +01:00