5 Commits

Author SHA1 Message Date
Burak Goncu
c618d24ac1 Ask for a star once the app has been of use, and say who makes it
OpenScreens is free, and a star on GitHub is how other people find it.
The app now asks for one, and says who makes it and where to follow what
comes next.

- A card at the foot of the library, once three sessions of two minutes
  or more have been worked in and a day has gone by since the first.
  "Not Now" is asked about once more, five sessions and thirty days
  later, and then never again by itself. It does not come while an
  update is waiting or in a launch that showed what is new, and it lies
  at the foot so that nothing above it moves. Following the link is
  taken as the answer; whether a star was given is not looked up, and
  nothing is sent anywhere. SupportPrompt holds the rule, as one value
  in the settings that a reset leaves alone.
- A band in what is new after an update, above its button, or after the
  notes where that would leave them no room.
- Settings on iPhone and iPad, Settings > About and the Help menu on the
  Mac, and a row under the Linux app's window.
- Under a release's notes on GitHub.

A session counts once, when it is closed while it is connected or when
the app is left or quit with it open. Counting only the ones that were
closed would have passed most people by: a phone goes into a pocket
with the session open, and a Mac's app is quit with its windows open.

The card is made of words that may not be cut short. A Mac's window
finds out how small it may be made by asking its views how small they
can be, and such words answer for no width at all with a letter to a
line: the card asked for 2,800 points of height and pushed the library
and the sidebar out of the window. It now has a least width and asks a
window for no height, and a test measures the window with the card at
its foot.

Tried on the iPhone 18 Pro, iPhone 17e, iPad Pro 11-inch and 13-inch
Simulators and on the iPhone Duo's cover screen, and on a Mac with
macOS 27.2, in light and dark, in English and Chinese, and with text at
its largest. Two UI tests answer the question on the iPhone both ways.
On the Mac a session to the demo server was left open for 135 seconds
and the app quit: one session was counted, once. The Mac's Help menu
was read back from the app, since a picture could not be taken of it.
The Duo's inner screen was not looked at: the Simulator was folded and
nothing at hand unfolds it.
2026-12-04 11:19:06 +03:00
Burak Goncu
df9440d2ea Draw a Standard session on the engine's own layer
The canvases drew a Standard session, and every session with a computer
that is not a Mac, by putting each picture the engine published into a
layer of their own. A picture was an image of the whole screen, made for
every change to it, and cut down again when one display of several was
shown.

They now host the layer the engine draws on, beside the ones it draws
High Performance video on, and the session asks the engine to draw
there. The engine copies what changed and nothing else, and shows a
Mac's screen a whole frame at a time. What that does is measured in the
engine's change: on a still desktop of 3440 by 1440 the app took 73% of
a processor core and takes 29 to 30%, and 96 to 99% of the Mac's frames
reach the glass whole where 59 to 61% did.

Nothing in the app read the engine's image but the canvases. A picture
of a session, for its card in the library or a screenshot, is made from
what is on the layer.

Two tests hold it there. On the Mac, a session to the test server has
its picture on the engine's layer, the layer follows the server's
screen, no image is published, and nothing is left on the layer when the
session ends. On an iPhone in the Simulator, what is on the glass is
compared with what the server shows at 243 places; with the layer left
out of the canvas, none of the 243 was alike.
2026-12-02 15:11:04 +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
160ac3aa21 Make a tap the system asks about and then keeps back
Along the top of an unfolded iPhone Duo, as its simulator has it, a
strip about 16 points deep belongs to a system gesture: touches there
reach the canvas and UIKit asks whether a tap may begin, but the
handler never runs. With a desktop sized to the screen, a remote Mac's
menu bar is in exactly that strip and could not be clicked.

A tap that was asked about and not delivered within 60 ms is now made
by the canvas itself, and a delivery that turns up late for the same
tap is dropped, so that one tap is always one click. Where UIKit
delivers taps as usual, which is everywhere else, nothing changes.

The interface tests tap at the top edge of the screen, and all of them
now pass on the iPhone Duo simulator: a two-finger tap from the test
framework puts one finger in that strip.
2026-11-11 06:13:17 +03:00
Burak Goncu
ffc0f6f282 Test the iPhone and iPad app through its touches and keys
Add an interface test target. Each test runs a screen-sharing server in the
test runner, launches the app pointed at it, and checks what the server
received: a tap clicks where the finger is, two fingers right-click, a
press and drag holds the button down, trackpad mode moves the pointer and
clicks where it rests, typed text arrives with nothing left held, and
disconnecting closes the connection.

Positions are checked as distances between two touches, because the
picture is fitted inside the device's safe area, which a test cannot see
and which is not symmetrical on every device.

Passes on iPhone 18 Pro and iPad Pro. On the iPhone Duo simulator's cover
display the two-finger tap that XCTest synthesises is never recognised and
that test fails; the others pass there.
2026-11-11 01:55:04 +03:00