hex/crates/capture
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dax 9781e5b57e
meetings: labs toggle to keep the recording indicator on any display (#2727)
* meetings: a lab keeps the recording indicator on the display it was dragged to

Labs › Indicator on any display (labs.meeting_indicator_display, off by
default, macOS and Windows) lets a release of the recording capsule or a panel
capsule land in the nearest corner of the display under the pointer, measured
by that display's own size, and pins the window there with Rune's
DisplayTarget::Native. The landed display is saved beside the corner as
meetings.recording_indicator_display, the OS's own name for it (the monitor's
device name on Windows, the CGDirectDisplayID on macOS), and every capsule
shows there from then on; a display that is gone falls back to the primary
display and keeps the saved name. Landing on another display jumps instead of
gliding, since a glide is measured within one display.

Off, every release and every show takes the primary-display path exactly as
before, and the saved display is ignored. A native Wayland capsule has no
display to measure, so Linux does not list the card.

The inherited pill now takes the offer's corner and display explicitly, so a
later drag measures from where its window really is.

Not verified on real multi-monitor hardware on either OS, and the macOS and
Windows halves were not compiled for Hex itself (no macOS SDK here; the Windows
C dependencies need ml64.exe), though scrawl-capture's monitor helper was
checked for x86_64-pc-windows-msvc.

Also refreshes the Labs and What's new goldens, which were already stale on dev
from #2650 (clipboard phrase).

* meetings: put the indicator back on the primary display with the lab off, and land where the pointer is

Review fixes for the display lab:

- `placement::place_on` always sets the display target now: the saved display
  while the lab is on, and `DisplayTarget::Primary` while it is off, so
  turning the lab off mid-session brings a capsule pinned to another display
  back instead of leaving the window there while every release measures the
  primary one. The pure choice is `screen::placed_target`, tested.
- `screen::displays` reports whether the pointer is actually on one of the
  displays it lists (`Displays { all, pointer }`). A release with no pointer
  display (a failed cursor read, or a gap between two displays) now measures
  the display it was dragged on instead of treating the first entry as the
  landing display. New test: `a_pointer_on_no_display_lands_where_it_was_dragged`.
- A saved display that is gone resolves through `screen::target_in_displays`,
  a pure function now, with `a_saved_display_that_is_gone_is_the_primary_target`.
- An accepted offer hands the pill the capsule's own corner and display, not
  the saved anchor, so a drag that has not reached settings yet still lands
  the recording where its window is.
- `hex settings` help for `labs.meeting_indicator_display` says "(macOS and
  Windows)", and the labs and meetings maps name the real test list and say
  the lab off explicitly returns a capsule to the primary display.
2026-11-24 12:08:02 -05:00
..
helper feat(screenshots): a recording toolbar, smaller movies with sound, and playback in the editor (#2166) 2026-11-21 08:26:36 -08:00
src meetings: labs toggle to keep the recording indicator on any display (#2727) 2026-11-24 12:08:02 -05:00
build.rs fix: find build output under cargo 1.100's new build-dir layout (#1734) 2026-11-12 14:37:40 -05:00
Cargo.toml Annotate on X11: record the screen and areas without a ScreenCast portal (#690) (#694) 2026-10-31 18:19:36 -04:00