hex/crates/capture/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 60e753a333
annotate: record the screen under the pointer on wayland (labs), list hex annotate without a shortcuts portal (#2094)
* annotate: follow the pointer on Wayland, and list its command without a portal

Labs › Record the screen under the pointer (labs.annotate_pointer_screen,
Linux, off by default) asks the compositor which output the pointer is on
before each screen capture, using one ext-image-copy-capture pointer cursor
session per wl_output (no surface, no frames, two round trips), and keeps a
ScreenCast restore token per output (screencast-token-<output>) so each
monitor is asked once. After Start the token is saved for the output the
desktop actually recorded: mapping_id, else the xdg-output geometry holding
the stream's position, else the pointer's. Off, on X11, or when the lookup
fails, the one file behaves exactly as before.

Without a GlobalShortcuts portal the Annotate pane now shows the
`hex annotate toggle` command to bind instead of a recorder that can never
register, and General's desktop commands list it while Annotate is on.

docs/features/capture.md and labs.md carry the behavior, checks, and gaps.

* annotate: fix the Wayland pointer follow-ups and the macOS sampler

- macOS: the ScreenCaptureKit sampler's Start destructure includes the new
  portal_token field (E0027).
- portal: a mapping_id only names an output the outputs list knows;
  otherwise the stream's own geometry decides.
- pointer_output: release wl_pointer (v3+) and wl_seat (v5+), prefer a
  session that also reported a position when several entered, and say
  plainly that the lookup is a fixed two round trips, not a time bound.
- policy: the Annotate lock now reports for the new lab too.
- Annotate pane: its own singular no-portal note, translated.
- docs: the website leaves out the labs that only matter once Annotate is
  on (build.rs sets hex_capture on every macOS, Linux and Windows build);
  capture.md marks the wlroots software-cursor limit unverified.
- goldens: commands-dark and linux-labs-light re-blessed for the new
  Annotate command row and lab card.
2026-11-20 15:58:16 -05:00
..
capture annotate: record the screen under the pointer on wayland (labs), list hex annotate without a shortcuts portal (#2094) 2026-11-20 15:58:16 -05:00
export Keep a benchmarked Hex's Annotate folders in its own home on Windows; build strobe.json on any commit (#1214) 2026-11-03 16:58:59 -06:00
linux annotate: record the screen under the pointer on wayland (labs), list hex annotate without a shortcuts portal (#2094) 2026-11-20 15:58:16 -05:00
win labs: copy captures as a zip (#1721) 2026-11-12 09:14:48 -05:00
agent_context.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
audio.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
autocrop-corpus.json Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
autocrop-playground.html Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
autocrop.rs Keep autocrop from panicking on any frame or keyframe size (#945) (#1073) 2026-11-02 18:20:48 -05:00
autocrop_lab.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
ax.rs capture: clicks under the capsule's panel count; Paste never goes into Hex 2026-10-26 21:55:14 -07:00
ax_other.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
capture.rs annotate: record the screen under the pointer on wayland (labs), list hex annotate without a shortcuts portal (#2094) 2026-11-20 15:58:16 -05:00
command_transcriber.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
handoff.rs labs: copy captures as a zip (#1721) 2026-11-12 09:14:48 -05:00
helper.rs fix: find scrawl-helper from test binaries under cargo 1.100's build-dir layout (#1745) 2026-11-12 15:14:58 -05:00
hex.rs Rename voice-control to hex everywhere, without migrations (#293) 2026-10-28 13:08:44 -04:00
hosted_input.rs Annotate: one key, a pen toolbar, no pins or undo (#427) 2026-10-29 21:00:20 -04:00
ingest_http.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
keyframes.rs Fix #1042: annotate tool voice trigger words / language support (#1044) 2026-11-02 11:46:28 -05:00
lib.rs labs: copy captures as a zip (#1721) 2026-11-12 09:14:48 -05:00
live_transcribe.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
log.rs Keep a benchmarked Hex's Annotate folders in its own home on Windows; build strobe.json on any commit (#1214) 2026-11-03 16:58:59 -06:00
mic.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
page.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
permissions.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
phone.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
pipeline.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
recover.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
render.rs Capture: a permission helper instead of a silent failure, and no fake screen (#519) 2026-10-30 15:50:16 -07:00
retention.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
screens.rs Captures on Linux (portal, PipeWire, VA-API); capture compiled into macOS and Linux builds (#320) 2026-10-28 20:58:27 -04:00
sdk.js Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
sketch.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
slim_zip.rs capture: keep all audio in long captures (#1795) (#1894) 2026-11-16 10:28:54 -05:00
speech_model.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
transcribe.rs annotate: count words from transcript text when the model has no word timings (#1918) 2026-11-16 16:15:24 -05:00
web.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00
window_log.rs Captures on Linux (portal, PipeWire, VA-API); capture compiled into macOS and Linux builds (#320) 2026-10-28 20:58:27 -04:00
zoom.rs Import scrawl-capture into crates/capture 2026-10-25 19:14:23 -07:00