Skip to content

Ariadne: a closed peer camera window comes back from the View menu - #962

Merged
transfix merged 1 commit into
masterfrom
fix/ari-reopen-repeated-windows
Nov 2, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/ari-reopen-repeated-windows

Conversation

@transfix

@transfix transfix commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Closing another person's camera window in the conference left no visible way to get it back. Ariadne's built-in Windows menu (§5.9) skipped any window made by repeat:, and the per-peer cameras are made that way. Clicking the person's name in Users did reopen it, but nothing said so.

What changes

  • Runtime (ariadne.cpp): the Windows menu now lists each instance of a repeated window.
    • Each item shows the title that instance displays (its bind:, else its label with {i} filled in).
    • The list follows the repeat count every frame.
    • Ticking an item reopens the window and brings it to the front.
    • A repeated closable window now counts as closable, so a document with no menu bar gets the one that holds the Windows menu.
  • conference_roster.ari:
    • windows_menu: View lists the peer cameras by name at the end of the View menu, after a separator.
    • Each camera window's open/closed state is now stored per person (ctl.<pid>.win), like cam/mic/volume. Before, it was per row index, so when the roster reordered (someone joining with a lower pid), a closed window moved to someone else.
    • The names in Users get a "Show their camera" tooltip.
  • Docs: §5.9 is updated.

Tests

  • New AriadneRuntime.WindowsMenuListsEachRepeatedWindowUnderItsTitle covers:
    • the items appear inside the document's View menu, after its own items, under each peer's name (or the label before a name arrives);
    • reopening raises the window in the same frame;
    • the list follows the count, with no separator over an empty list.
  • WindowsMenuWithoutADocumentMenubar is updated: a repeated closable window now gets the menu.
  • On Windows (static WS+gRPC build): ariadne_runtime_test 246/246, ariadne_loader_test 210 passed (2 skipped).
  • ariadne_host_test has the same 11 failures (~39 s timeouts) before and after this change on this machine, so they are environmental.

The built-in Windows menu (§5.9) left out the windows a `repeat:` makes,
so conference_roster.ari's per-peer camera windows, once closed with
their X, could only come back by clicking that peer's name in Users,
which nothing pointed to.

- The Windows menu now lists each instance of a repeated window under
  the title it shows (its bind:, else its label), following the
  repeat's count each frame. Ticking one opens it and brings it to the
  front. A repeated closable window also counts as closable, for the
  menu bar a document without one gets.
- conference_roster.ari sets `windows_menu: View`, so the cameras are
  listed by name at the end of its View menu. Each camera window's
  open state now stays with the person when the roster reorders, like
  their cam/mic/volume. The name in Users has a "Show their camera"
  tooltip.
@transfix
transfix merged commit 08188f1 into master Nov 2, 2026
27 checks passed
@transfix
transfix deleted the fix/ari-reopen-repeated-windows branch November 2, 2026 06:11
transfix added a commit that referenced this pull request Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant