Skip to content

fix(desktop): keep the activity notch centered when it collapses - #1325

Merged
nixuuu merged 1 commit into
devfrom
fix/notch-closing-position-shift
Nov 27, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/notch-closing-position-shift

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 27, 2026

Copy link
Copy Markdown
Member

Summary

  • After the collapse animation, the native Activity notch window narrowed and moved right with setBounds, while the renderer still placed the outline from the old left edge until the new layout arrived over IPC. For a frame the notch showed off center.
  • The native window now keeps the open panel's left edge and width (centered on the camera) and changes only its height, so nothing moves sideways.
  • The transparent sides of the wider window pass the pointer through (setIgnoreMouseEvents with forwarding). The renderer makes the window interactive only while the pointer is over the outline, through a new canopy:activity-notch-interactive channel that the main process checks like the other notch channels.
  • The Electron fixture now asserts the same left edge and width in the compact and expanded states. docs/desktop.md describes the behaviour.

Fixes: #1302

Verification

  • A screen recording of the bug, sampled at 60 fps, showed the off-center frame right as the window narrowed after the animation.
  • Chromium rendered the real notch page in a window of the new fixed width with a stub bridge. Through compact, opening, closing and compact again, the outline's center stayed at the window's center in every sampled frame.
  • Local: desktop typecheck, lint and formatting on the edited files, plus the Activity notch geometry tests.
  • Left to CI: the native Electron fixture, which needs macOS or Windows.
  • Still needs a desktop session on macOS: menu items next to the notch stay clickable, and hovering still expands the list.
  • Known trade-off on Windows touch screens: tapping the notch without hovering first now reaches the window underneath.

UI copy is unchanged.

🤖 Generated with Claude Code

The native window narrowed and moved right after the collapse animation,
while the renderer still placed the outline from the old left edge. For a
frame the notch showed off center. The window now keeps the open panel's
left edge and width and changes only its height. Its transparent sides
pass the pointer through to the apps below.

Fixes: #1302

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nixuuu
nixuuu enabled auto-merge (squash) November 27, 2026 08:14
@nixuuu
nixuuu merged commit e11d768 into dev Nov 27, 2026
24 checks passed
@nixuuu
nixuuu deleted the fix/notch-closing-position-shift branch November 27, 2026 08:19
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