fix(desktop): clicks in the top row reach the page in the whole-display full screen

On macOS 27 an auto-hidden menu bar leaves an invisible window in its place,
as high as the camera housing, and that window takes every click made there.
The strip beside the housing is that place, so a click on a tab or a toolbar
button in the top row brought the menu bar in and never reached the page.
Hovering still worked. Seen on a MacBook Pro (Mac17,13, macOS 27.2.1), with a
plain AppKit window as much as with the app.

The Dock and the menu bar are now fully hidden while the pointer is over the
page, which leaves nothing of macOS at the top, and only auto-hide once the
pointer touches the top edge of the display or the edge the Dock is on, so
pushing against an edge still slides the bar in. They go back to hidden when
the pointer has moved clear of the bar, and never while a menu is open. A
timer follows the pointer while a window is in the mode and the app is in
front: the app gets no mouse events over the menu bar, the Dock or macOS's
own window.

The rule is a pure function (`reach`, `hiding`, `presentation_step`) with
unit tests, among them that no step sets a combination AppKit refuses.

Seen on that MacBook with this build: pointer clicks on tabs and on the
settings button in the top row, the menu bar and the Dock sliding in at their
edges and leaving again, a menu staying open while the pointer moves down it,
and the same after the option was turned off and on, after another app was in
front, and after a relaunch. The pointer was driven by synthetic events.

The same round covered what the second build still owed: the option on with
no setting stored, the switch in App Settings both ways, and typing right
after the change into the whole display from the View menu and from the
switch. All held.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer committed 2026-11-25 05:51:51 +01:00
1 parent 5f4741f269
commit 88fb2ac127
4 files changed
+534 -79

No files matched your search

+1 -1
View File
@@ -2,4 +2,4 @@
'aicodeman': patch
---
**Mac app: full screen over the whole display.** On a MacBook with a camera housing (the notch), macOS's full screen leaves a black bar across the top of the display. The Mac app's full screen now covers the whole display instead: Codeman's header moves up beside the camera, the tabs go around it on both sides, the toolbar stays at the right, and the terminal gains the height of the bar. The green button, the menu item, ⌃⌘F and the launch into full screen all take it. It is on by default and can be turned off with **View > Full Screen Uses the Area Beside the Camera** or the same switch in **App Settings > Appearance > Mac App** (both only show on a Mac whose display has a camera housing); switching it while the window is in full screen changes it over at once. Off gives macOS's own full screen back, which is a Space of its own: the whole-display kind covers the desktop it is on instead. The page stays below the camera, as before, with a Codeman server from before this release and while the tabs are grouped by state, by case or as a ledger in the header strip.
**Mac app: full screen over the whole display.** On a MacBook with a camera housing (the notch), macOS's full screen leaves a black bar across the top of the display. The Mac app's full screen now covers the whole display instead: Codeman's header moves up beside the camera, the tabs go around it on both sides, the toolbar stays at the right, and the terminal gains the height of the bar. The green button, the menu item, ⌃⌘F and the launch into full screen all take it, and the menu bar and the Dock still slide in when the pointer is pushed against their edge. It is on by default and can be turned off with **View > Full Screen Uses the Area Beside the Camera** or the same switch in **App Settings > Appearance > Mac App** (both only show on a Mac whose display has a camera housing); switching it while the window is in full screen changes it over at once. Off gives macOS's own full screen back, which is a Space of its own: the whole-display kind covers the desktop it is on instead. The page stays below the camera, as before, with a Codeman server from before this release and while the tabs are grouped by state, by case or as a ledger in the header strip.