154 Commits

Author SHA1 Message Date
Burak Goncu
0be57b6ffe Say first what the app controls
Whether it works with Linux or Windows is what people ask before anything
else, and the read-me answered it halfway down, under Getting started.
The opening sentence said "any computer that speaks VNC", which names
none of them.

The page now opens with it: the sentence names Linux, Windows and
Raspberry Pi, a badge beside the one for where the app runs says what it
controls, and the first section is a table of the four kinds of computer,
with what is spoken to each and how far each has been tried. The steps
stay where they were and are linked from there.
2026-11-24 11:22:17 +03:00
Burak Goncu
643995817a Show an update in the read-me, and list it among what the app does
Updating was described under Install and nowhere else. It is now in the
list of what the app does, with what is new after an update beside it,
and two pictures show the notice above the library and the sheet that
says what is in the new version.

The pictures are of a build made under an older version number and
offered 1.3.0, which is how updating was tried; the caption says so.
2026-11-24 11:18:08 +03:00
Burak Goncu
fda4b066b9 Run the package tests one at a time on CI
The run on e6294aa failed in two SFTP tests that the change had nothing
to do with. Every SFTP test in that run took about twenty seconds, where
each takes one to three by itself, and they all ended within the same
second: the tests are started together, and the runner did not have the
machine for all of them at once. The two that failed have a server that
answers on a schedule and a client that gives up after two seconds of
silence.

Run one at a time, no test waits on another's work. The package takes 66
seconds that way on the Mac this was written on, against 15 all at once.
Whether that is enough for the runner is for its next runs to show.
2026-11-24 11:18:08 +03:00
Burak Goncu
766d956fa6 Keep the update notice off the sidebar
The notice that a new version is waiting was laid across the top of the
whole library window. The library moves down for it; the sidebar does
not, so the notice lay over the sidebar's first rows, All Computers and
Favorites, for as long as an update was waiting. Version 1.3.0 was
published like this. Updating had been tried by what the log said and by
pictures of the notice and the sheet drawn on their own; nothing had
looked at the window with the notice in it, and the first picture taken
of it for the read-me showed it.

The notice now goes above the library, beside the sidebar. A test lays
the window out with an update waiting and checks where the notice is, and
fails with the notice where 1.3.0 has it.

Copies of 1.3.0 will show the old layout once more, when the version
after it is announced to them: it is the version people have that draws
the notice.
2026-11-24 11:18:08 +03:00
Burak Goncu
e6294aae1f Answer two more questions in the read-me
How to update from a version that does not update itself, which is
every one before 1.3.0, and why to trust this app among the many: what
it talks to besides the computers you connect to, and where each thing
it says about itself can be checked.
2026-11-24 10:44:53 +03:00
Burak Goncu
b3affc0a32 Keep the previews of test sessions out of the app's own folder
A session keeps a picture of the screen it showed, for the computer's
card, and wrote it through the one shared store whichever model it
belonged to. The tests hand their model a library with no file and
passwords kept in memory, and open sessions by the hundred: every run
left their previews in ~/Library/Application Support/OpenScreens/Previews
of whoever ran it, under identifiers no library holds, where nothing
shows them and nothing removes them. On the machine this was found on
there were 2,590 of them.

The model now owns the store its sessions save to. Handed its own stores
it keeps previews in memory, as it already keeps known hosts; the app's
own model keeps them where it always did. A test opens a session and
checks that its preview is with the model and that no file for it is in
the app's folder, and fails when the old behaviour is put back.

What earlier runs left are the files in that folder not named after a
computer in the library. Clear Saved Previews, under Settings > Privacy,
removes them along with the real ones, which come back with the next
session.
2026-11-24 10:44:53 +03:00
Burak Goncu
fd670fa0e9 Check a release's signature with the key the app carries
The release script checked the feed and the disk image against the key
they had just been signed with, which says the signing worked and nothing
about whether any copy of the app will accept the result. A copy checks
with the public key in its own Info.plist. Had SPARKLE_KEY named some
other key, the release would have passed every check here and been
turned down by every copy, with nothing to show for it but updates that
never arrive.

The disk image's signature is now verified once more with nothing but
the public key from the app that was just built, and the release stops
if that fails. 1.3.0 was checked this way by hand before it was
published.
2026-11-24 02:44:17 +03:00
Burak Goncu
49db085c71 Version 1.3.0 v1.3.0 2026-11-24 02:24:29 +03:00
Burak Goncu
9ea0021862 Say how the app updates itself, and how that is protected
The read-me says what someone installing the Mac app can expect from then
on, and that looking for updates can be turned off. The security policy
says what an update has to pass before it is installed, in the terms of
what Sparkle does and was seen to do, what someone who took over the
repository could and could not do with it, and how the project would
reach its users again if it lost its key. An update that is not a
release of this project getting installed is now named as something to
report.

The architecture notes say where Sparkle ends and the app's own
interface begins, and the contributing guide has the steps of a release,
with the trial of the update among them.
2026-11-24 02:24:29 +03:00
Burak Goncu
d0a99d5076 Try an update for real before it is published
It is the version people have that does the updating, so a release cannot
fix a way of updating that does not work: by then it is out. The only
look at what an update will do on everyone's Mac is to have a copy of
the older version take the new one, and scripts/update-trial.sh does
that on the Mac at hand. It then offers the older version a feed with no
signature, a feed changed after it was signed and a download changed
after it was signed, and reports whether each was turned down and what
Sparkle said about it.

What it takes to do this without touching the app that is installed was
found out the hard way. A folder of its own for the data and a home of
its own were not enough: preferences are found by bundle identifier
whatever a process calls home, and a first run wrote Sparkle's into the
installed app's. The trial therefore runs copies under another
identifier, trusting a key made for the occasion, and the copy of the
newer build names its own environment in its Info.plist, because Sparkle
opens it again through the system and nothing of the first run's reaches
it. It checks at the end that the installed app's preferences were not
written to.

A hidden app presents no sheet, and it was with the update's sheet up
that the app would not quit. With --shown the copy's window is on screen
while it updates, and the trial says whether the sheet was up.
2026-11-24 02:24:29 +03:00
Burak Goncu
2256719bf5 Sign the disk image, and write the feed that updates are found by
A Mac release is now three files. Beside the disk image and its checksum
there is appcast.xml, the feed that installed copies of the app read from
the newest release on GitHub. The release script writes it with Sparkle's
own tool, with what the change log says about the version in it, and
signs it and the disk image with the update key, which SPARKLE_KEY names.
It stops if the app's copy of the change log is stale, if the change log
says nothing about the version, or if either signature is missing: a feed
without them is one no copy of the app would act on, and none would say
why.

The disk image itself is signed with the Developer ID and notarised, as
the app in it always was. macOS can then tell what it is before anything
in it is opened, and it is what Sparkle falls back on for a project that
has lost its update key: a disk image signed by the same developer.

scripts/publish-mac.sh makes the release on GitHub, and will not make one
without the feed or with a feed that is about another version.
2026-11-24 02:24:16 +03:00
Burak Goncu
1d26d4d051 Let the Mac app update itself, and say what is new afterwards
The Mac app looks at the project's releases on GitHub when it is first
opened and once a day after that, and when there is a newer one says so
at the top of the library, with what is in it. One choice there
downloads it, has it checked, installs it and opens the app again.
Settings has a pane for it, and the app menu has Check for Updates.

Sparkle does what must not be got wrong: reading the feed, downloading,
checking the signatures, putting the app in place. The feed has to be
signed with the project's key and so does the download, which is checked
before it is unpacked. None of what is shown is Sparkle's. It hands each
step to an UpdateModel, which knows nothing of Sparkle and holds the
rules:

- What the user asked about is shown at once. What was found in the
  background is shown at once only when no session is open; beside a
  session it waits in the notice.
- An update that was chosen is installed when it is ready, without a
  second question, unless a session has been opened in the meantime.
- The sheet is closed before the app is asked to quit. An app with a
  sheet up does not quit when the system asks it to, which is how
  Sparkle asks: tried with the update's own sheet up, the app stayed
  where it was with the update unpacked beside it, and installed it only
  when it was quit by hand. Should the app still be running a moment
  after it was asked, it is asked again with any sheet out of the way,
  and after that the notice says to quit it.
- A check that is asked for while Sparkle is in the middle of one of its
  own is not dropped, as Sparkle would drop it: the user sees that the
  app is looking, and Sparkle is asked when it can be.

On every platform the first launch after an update says what changed,
from a copy of the change log that the app carries.
scripts/sync-changelog.sh makes the copy, and a test fails while it is
stale.

Two environment variables are there for trying an update out: one names
another feed to read, the other has the app answer for itself. Neither
gets anything installed that the app would not have taken anyway, since
the feed and the download still have to be signed with the key the app
trusts.
2026-11-24 02:24:05 +03:00
Burak Goncu
fd4f7152ac Read versions and release notes out of the change log
What the app is about to say on an update, and after one, is what
CHANGELOG.md says: which versions there are, in what order, and what is
written under each. This reads it. A version is compared by its numbers,
so 1.10 comes after 1.9 and 1.3 is 1.3.0, and the notes are taken apart
into the headings, paragraphs and list items they are made of, for an
interface to draw as its own.

Which of them someone is shown after an update is decided here as well:
everything since the version they last saw, and for someone coming from a
version that kept no record of that, the release they are now on. A copy
of the app that has never been used is shown nothing.
2026-11-24 02:23:26 +03:00
Burak Goncu
28c33db7ae Draw the icon in layers, for the system to light
The icon was a set of bitmaps drawn by a script, with its own shadow and
its own highlights, and looked the same whatever the Mac or iPhone was set
to. On macOS 26 and iOS 26 an icon is layers the system renders as glass,
in the light, dark, tinted and clear appearances the user chooses between.

It is now an Icon Composer document: three SVG layers, a screen behind, a
screen in front and a pointer, with fills for each appearance. In the dark
the colour moves from the background to the screen in front. The shapes
are larger than they were, the pointer most of all, so that the icon reads
at the sizes a list shows it in.

The script that drew the bitmaps is gone. The one in its place has the
tool that comes with Xcode render the icon for the read-me.
2026-11-24 00:59:45 +03:00
Burak Goncu
b2b189ea95 Let the request after a timed-out one take more than a second on a busy machine
The commit before this one said why the test of a request that is never
answered failed on CI, and was wrong about it. The connection was being
made in time. What ran out of its second was the request made afterwards
to show the session is still there, which nothing in the test expected to
fail.

That request is now made again until it is answered, which shows the same
thing. The runner took nineteen seconds over a test that takes a second
and a half here, so other tests with limits measured in seconds may still
trip on it; the two beside this one make every request inside an
expectation of a timeout and were left as they are.
v1.2.0
2026-11-24 00:08:20 +03:00
Burak Goncu
2e9429de21 Keep the SFTP tests from failing on a machine that is merely busy
A connection gives each request the allowance it was made with, and gives
its own handshake no more. The tests of what happens when a request's
second runs out connected with one second, and on a CI runner going
through every other test at once the handshake took longer than that.
They now connect again until the connection is made, which is not what
they are about.

The limits on how soon a cancelled transfer returns, and on work that must
not wait out the server's allowance, keep their meaning with more room
inside it.
2026-11-23 23:58:13 +03:00
Burak Goncu
9ab0ac40a9 Give the library's own save the time a busy machine takes
The store saves a moment after a change, by itself. The test for that
waited ten seconds for the file, and on a CI runner going through every
other test at once the save came later than that, once.
2026-11-23 23:48:31 +03:00
Burak Goncu
d6989b4a5f Point the read-me at the issues that ask what people want 2026-11-23 23:45:21 +03:00
Burak Goncu
a04bc23671 Say plainly what the app does not ask for 2026-11-23 23:41:34 +03:00
Burak Goncu
35210c25eb Say what the Raspberry Pi sign-in was tried against 2026-11-23 23:41:17 +03:00
Burak Goncu
8860da2a3a Say that RSA-AES has yet to meet a RealVNC server 2026-11-23 23:39:37 +03:00
Burak Goncu
5fc83e62a0 Hold a reconnection in the same session to the same
A computer's certificate or key goes on record during its first session,
after the engine was told how to sign in. If that connection dropped, the
engine made the next one by the earlier instructions, which did not yet
ask for the computer to prove who it is.
2026-11-23 23:39:00 +03:00
Burak Goncu
a9b809846d Hold a computer known by its certificate or key to presenting one
OpenScreens stops when a computer presents another certificate or key than
the one on record. It did not stop when the computer presented none. To
whoever answers in a computer's place that is the easier thing to do:
offer VNC authentication only, and be sent the response to a challenge
that gives the password away to anyone who can try enough of them.

A computer with a certificate or key on record is now signed in to only
in a way that presents one. When none is on offer the attempt ends before
anything is sent, and says that the computer protected its connections
before and is not offering to now, and how to forget it if its server was
set up again. Inside an SSH tunnel nothing changes: there it is the SSH
server's key that says who is at the other end.
2026-11-23 23:35:26 +03:00
Burak Goncu
075be45354 engine: let a host hold a server to presenting its certificate or key
A host that remembers a server's certificate or key notices when the
server presents another. It could not notice a server that presents none:
whoever answers in the server's place only has to offer VNC authentication,
and automatic selection took it and sent the response to the challenge.

A configuration can now say the server has to prove its identity. Only
RSA-AES and VeNCrypt, which is then held to TLS, are selected, and when
neither is on offer the sign-in ends before anything is sent, with a
reason of its own.
2026-11-23 23:35:26 +03:00
Burak Goncu
d0adb5d2fb engine: send no user name and password where nothing encrypts them
VeNCrypt's Plain subtype without TLS puts a user name and the password of
an account on the wire as they are. It was among the subtypes fallen back
to when a server offered nothing with a certificate, and was taken ahead
of VNC authentication when there was a user name to send.

It is not selected any more. A server that offers it beside VNC
authentication gets that, and one that offers nothing else is told apart
in the error from one that offers nothing known.
2026-11-23 23:33:43 +03:00
Burak Goncu
7feb201c33 Make a Mac release with the Developer ID certificate in the keychain
An App Store Connect API key could not make the Mac release: Xcode signs
for a key with a cloud-managed certificate only, which the key has to be
given access to, and an export with a certificate in the keychain stopped
because the profile Xcode manages did not include it.

With DEVELOPER_ID_PROFILE naming a Developer ID provisioning profile that
is installed and includes the certificate, the script signs by hand with
the certificate on this Mac and has notarytool send the app to the notary
service, so the key is asked for nothing but that.
2026-11-23 23:20:22 +03:00
Burak Goncu
11b949a6fd Connect again when a server stopped waiting for a fingerprint to be checked
x11vnc gives a TLS handshake twenty seconds. Someone comparing a
certificate's fingerprint with the one on the other computer takes longer,
and the answer then arrived at a connection the server had already closed:
the session ended with the TLS library's own words for it, and the next
attempt, with the certificate on record, went through.

The session now makes that next attempt itself. An attempt that ends while
the question is still on the screen is not reported; agreeing starts
another, which has nothing left to ask, and declining says that the
computer was not trusted. An attempt that fails just after agreeing is
made once more as well.
2026-11-23 23:16:52 +03:00
Burak Goncu
601ff94920 Describe how servers that are not Macs are signed in to and trusted 2026-11-23 23:02:24 +03:00
Burak Goncu
dc4ceda7c8 Version 1.2.0
The read-me now answers what people asked when the project was passed
around: what it adds to the Screen Sharing app a Mac comes with, what it
connects to and how each kind of computer is set up, which servers that was
tried against, how High Performance mode behaves on a slow connection, and
whether the app will run anywhere else.

The lab also checks a lossless picture and one in thousands of colours on
every server, and a key's short signature is shown apart from its digest.
2026-11-23 22:57:13 +03:00
Burak Goncu
465d3dbf82 Add a lab of real VNC servers to test against
The tests so far connect to the server that comes with the project, which
shows that the two agree with each other. What a session does with the
servers people actually run was not tested anywhere.

scripts/compat-lab starts TigerVNC, x11vnc and wayvnc in a container, in
twelve setups between them: a VNC password, TLS with a certificate nobody
signed, a user name, RSA-AES in its four forms, no sign-in at all, and
wayvnc as Raspberry Pi OS configures it. The tests open a session to each
and check inside the container what was typed, where the pointer went,
what reached the clipboard, that the desktop took the size it was asked
for and went back, and how a certificate or key is asked about, refused
and noticed to have changed.

It needs Docker, so it is run by hand and not by CI.
2026-11-23 22:51:50 +03:00
Burak Goncu
62b449a271 Fit a VNC server's desktop to the display it is shown on
Fit This Display was a Mac's alone. A TigerVNC desktop, or wayvnc's on a
screen of its own, can be resized by a client too, and on a phone that is
the difference between a desktop with bars beside it and one that fills
the screen.

The desktop is asked for at one pixel to a point, in the shape of the
view and no smaller than the smallest desktop worth working on, and again
when the window is resized or the device turned. Choosing Remote Display
during a session puts the desktop back to the size it was found at. A
server that shares a real screen does not offer to resize it and is left
alone.

Computers that are not Macs now start with Fit This Display, as Macs do.
Ones already in a library keep what they have.
2026-11-23 22:51:32 +03:00
Burak Goncu
f21361a4aa Ask before trusting a computer's own certificate or key
A VNC server that encrypts its connections does it with a certificate, or
a key, that nobody has signed. Such a server was simply refused: wayvnc as
Raspberry Pi OS sets it up, TigerVNC and x11vnc with TLS, anything that
speaks RSA-AES.

They are now trusted the way an SSH server is. The first connection shows
the fingerprint, the answer is remembered, and a computer that presents
something else later is shown as changed, with both fingerprints, and is
not connected to unless the user says so. The list is under SSH Keys in
Settings, in a file of its own, and is cleared with everything else.

Turning a computer down, or a list that cannot be read, ends the attempt
saying so, where it used to ask for the password again. A server that
needs a user name now gets a prompt with a field for one.
2026-11-23 22:51:32 +03:00
Burak Goncu
a7d632dfd4 engine: ask a conventional server for a desktop of a chosen size
Match Client was tied to High Performance mode, which only a Mac has, so a
TigerVNC desktop stayed the size it was started at however small the
screen it was shown on.

A host can now name a size in pixels. It is sent with SetDesktopSize to a
server that has announced ExtendedDesktopSize, kept until the server has
said whether it does, sent again after a reconnection, and never sent to a
Mac. A size that was asked for once is not asked for again when the server
turns it down or someone there chooses another.
2026-11-23 22:51:20 +03:00
Burak Goncu
4fa9b979a1 engine: sign in to servers that speak RSA-AES
RealVNC servers speak RA2 by default, and wayvnc offers it beside TLS when
it is set up to ask for a password, which is how Raspberry Pi OS sets it
up. Neither could be connected to.

The four types are RA2 and RA2ne and their 256-bit forms. The ends exchange
RSA keys and a random number each, make an AES key for each direction, and
send the sign-in in AES-EAX messages; with RA2 the session goes on inside
them. Nothing vouches for the server's key, so a host is asked about it and
without a host to ask the sign-in stops.

Automatic selection takes a type that encrypts the session first, RSA-AES
before VeNCrypt where both are offered since it needs nothing of the
transport, and an encrypted sign-in before a plain one. VeNCrypt, once
chosen, falls back to what it has that needs no TLS, says when it wants a
user name, and reports whether it took the connection into TLS.
2026-11-23 22:51:20 +03:00
Burak Goncu
1d38970474 Let a release be made with an App Store Connect API key
The release scripts signed and uploaded through the Apple ID that Xcode
is signed in with, and Xcode had forgotten its account in the middle of
a release: the archive was made and could not be sent. Named in the
environment, an API key and its issuer are now handed to xcodebuild in
the Apple ID's place. Version 1.1.1 for iPhone and iPad went to
TestFlight that way.

The Mac's disk image needs a Developer ID certificate, which a key may
use only with access to cloud-managed distribution certificates; the
script says so where it says how.
2026-11-11 13:26:23 +03:00
Burak Goncu
8d3f1ef1cf Give the last of the command line tests its room too
A third test took "within five seconds" as the sign that a tool which
would have run for ten minutes was stopped by its time limit, and a
loaded CI runner took nine. It gets the minute the other two have.
2026-11-11 13:23:21 +03:00
Burak Goncu
2781d3ff04 Version 1.1.1
The changelog says what went wrong in 1.1.0 on a device it had not
been tried on, and the pictures show a session as it is again: without
the status bar.
2026-11-11 13:16:01 +03:00
Burak Goncu
7dc495eccf Leave a desktop size check under way to finish
The canvas reports its size at every layout pass, most of them with a
size it has reported before, and each report cancelled the check on
whether the Mac made the desktop it was asked for and started it over.
On a screen that is laid out often the check might never have got to
its answer. A check for the size already being checked is left alone,
and one that ended without learning anything is made again the next
time that size is asked for.
2026-11-11 13:16:01 +03:00
Burak Goncu
3bc1714784 Keep the trackpad deck from coming and going at the edge of a hinge's range
A foldable set down like a laptop brings the trackpad deck out, and
"like a laptop" is a hinge between 60 and 135 degrees. Held at either
end of that, a hinge reads a little to one side and then the other from
one moment to the next, and every reading across the line brought the
deck out or put it away again. Once open like a laptop, a hinge now
stays that until it is ten degrees past the line.

The canvas also laid itself out again for every reading of the hinge,
which a device held in the hand gives many of a second. It does so now
only when the posture changes.
2026-11-11 13:16:01 +03:00
Burak Goncu
c34c232c00 Stop two layouts of a screen from replacing each other without end
The layout of a session is meant to change nothing that it is worked
out from. The status bar was one way it did, and that is gone; this is
for the ways nobody has found yet, on devices nobody here has tried.

A layout that comes straight back after it was replaced, four times
within two seconds, is taken for one of two that undo each other, and
whichever is in place is then kept for five seconds. Someone turning a
device on its side and back is a layout returning as well, once and
seconds apart, and is let through. A layout a little wrong is better
than an app the system has to end.
2026-11-11 13:16:01 +03:00
Burak Goncu
af2d226829 Hide the status bar for as long as a session is on the screen
Version 1.1.0 showed the status bar wherever a screen had room for it,
and worked that out from what the screen keeps clear. What a screen
keeps clear depends on whether the bar is showing. On an iPhone Duo
with iOS 27.3 the two did not agree: showing the bar made for a safe
area that said to hide it, and hiding it made for one that said to show
it. Asking the status bar manager for the bar's frame during layout
applied each change there and then, so all of it happened inside one
layout pass that never ended, and the system ended the app as soon as
a session opened.

The bar is hidden throughout a session, as it was in 1.0, and the
layout is worked out from the screen alone: nothing it depends on is
anything it changes. A session no longer asks for a dark appearance
either, which was there for the bar to be read over black.
2026-11-11 13:15:34 +03:00
Burak Goncu
ea38440e85 Give the command line tests room on a busy machine
Two tests check that a tool is stopped by its time limit or by
cancellation rather than left to finish, and took "within five
seconds" as the sign of it. A loaded CI runner took seven. Anything
far short of the ten minutes the tool would have run says the same.
v1.1.0
2026-11-11 12:24:59 +03:00
Burak Goncu
b4523eec20 Version 1.1.0
The changelog, the README and the architecture notes say what changed
for iPhone and iPad, and the pictures show the session as it now is.
2026-11-11 12:19:18 +03:00
Burak Goncu
6cb56d4614 Keep the end-to-end tests from leaving preference files behind
Each test made its settings in a defaults suite with a name of its
own, and a named suite is a property list in ~/Library/Preferences
that nothing ever removes: one more for every test, every run. The
suites are named by a path in the temporary directory now, the way the
settings tests already do it.
2026-11-11 12:19:17 +03:00
Burak Goncu
fca38f3467 Start the picture below what a screen's rounded corners cut into
The top of a Mac's screen is its menu bar, with the Apple menu in one
corner and the clock in the other. On a screen with nothing at the top
but deeply rounded corners, an iPhone Duo's two displays above all, the
picture ran to the top edge and the corners took both.

iOS says how far down content has to start to be seen whole, the safe
area adapted to the corners, and the picture now starts there: about
17 points on the Duo, 9 on an iPad, nothing more where a sensor housing
already keeps it lower. On the Duo that is also the strip in which the
system keeps taps to itself, so the menu bar is out of it.

The handle of the controls sits on the top of the picture and not in
that strip, where a tap might never reach it.
2026-11-11 12:14:48 +03:00
Burak Goncu
13506587f9 Keep the picture its size when a keyboard or the deck comes up
Whatever covered the bottom of the screen was treated as less room,
and the picture was shrunk to fit what was left. Above a keyboard on a
phone that left a desktop a third of its size, at the very moment
someone needed to read what they were typing.

The viewport now knows the difference between room it does not have
and room that is covered for a while (bottomCover). A covered picture
keeps the size it has with nothing in the way and slides up instead,
as far as it takes to show where the pointer is; it pans from its top
to where its last line clears the cover, and goes back when the cover
does.

A picture that is slid up or zoomed in is also cut to the part of the
screen that is the picture's, so that it no longer runs on under the
status bar.
2026-11-11 11:43:47 +03:00
Burak Goncu
12e4fd7521 Show in the statistics whether video is decoded in hardware
A session that cannot keep up may be short of network or short of a
decoder, and only one of those shows in the numbers so far. "Decoder"
says Hardware or Software wherever VideoToolbox tells.

Scripted launches can also ask for more desktop space, the trackpad
deck and the statistics overlay.
2026-11-11 11:38:36 +03:00
Burak Goncu
239f313a3a engine: report whether the video decoder runs in hardware
When a device cannot decode a stream's chroma in hardware, VideoToolbox
decodes on the CPU without a word, and nothing costs a session more.
The decoder already wrote which it got to the log; the session's
statistics now carry it too, where an app can show it.
2026-11-11 11:38:36 +03:00
Burak Goncu
938d550388 Put a session's controls out of the picture's way on a touch screen
The controls floated over the bottom of the picture for as long as a
session lasted. The bottom of a Mac's screen is its Dock, so the Dock
was covered and could not be touched; and the picture stopped short of
the bottom of the screen, leaving a black band under it.

Where the picture and the controls go is now worked out from what the
screen keeps content clear of (SessionChromeLayout):

- The picture goes down to the bottom edge. The home indicator hides
  itself during a session, and system gestures at the edges wait for a
  second swipe, so that the Dock is the Dock.
- Where the screen has a strip the picture cannot use, the controls
  stand in it, always in view and covering nothing: down the side of
  an iPhone Duo's cover display, under its status bar, and down the
  side opposite the sensors of any iPhone on its side.
- Anywhere else they come out of the top of the picture, over the
  middle of the menu bar, and are put away to a small handle as soon as
  the remote screen is touched. They can be moved to the bottom, or
  kept in view.
- The status bar is shown where it has a place of its own, beside a
  sensor housing, instead of that place being left black.

The trackpad deck no longer comes out by itself whenever a foldable
reports being partially open, which it does when held with the
slightest bend: only when it is open like a laptop, and it can be put
away then too.

The transfer list keeps to the edge the controls do not use.
2026-11-11 11:26:18 +03:00
Burak Goncu
be3786384a Present frames at the display's full refresh rate on iPhone
Without CADisableMinimumFrameDurationOnPhone an iPhone app is held to
60 Hz on a 120 Hz display. A frame that arrives just after a refresh
then waits most of 17 ms to be shown; at the display's own rate it
waits half that at worst.
2026-11-11 11:26:18 +03:00