Skip to content

feat(chrome): split the capture tab strip around the MacBook notch - #121

Open
wesleygrimes wants to merge 1 commit into
omacom:mainfrom
wesleygrimes:feat/notch-chrome-ears
Open

feat(chrome): split the capture tab strip around the MacBook notch#121
wesleygrimes wants to merge 1 commit into
omacom:mainfrom
wesleygrimes:feat/notch-chrome-ears

Conversation

@wesleygrimes

@wesleygrimes wesleygrimes commented Sep 11, 2026

Copy link
Copy Markdown

Summary

On the notched MacBook Pro panels under Asahi (native 3456×2234 / 3024×1964) the capture tab strip sits under the camera housing, so the Window / Scrolling Region tabs are partly hidden.

  • captureTabNotchWidth() derives the housing width from the monitor mode — no config, nothing to set up.
  • captureTabLayout() takes that width and lays the tabs out as two ears either side of the housing; drawCaptureTabs() paints one bar per ear.
  • Every other monitor gets width 0 and the exact centered layout as before. The edit toolbar is untouched.

Photos

Before — tabs under the notch.

Before

After — tabs either side of it; toolbar unchanged.

After

Test plan

  • make check green
  • Notched MacBook Pro 16": tabs sit either side of the housing, in Region/Window and in Scrolling Region
  • Edit toolbar stays centered
  • Non-notched monitor: strip unchanged (smoke asserts zero-width layout is identical to the default)

@wesleygrimes wesleygrimes changed the title feat(chrome): clear MacBook notch with left/right overlay ears feat(chrome): clear MacBook notch with capture-tab ears Sep 11, 2026
@wesleygrimes wesleygrimes changed the title feat(chrome): clear MacBook notch with capture-tab ears feat(chrome): split capture tabs around known MacBook notches Sep 11, 2026
@wesleygrimes
wesleygrimes force-pushed the feat/notch-chrome-ears branch 2 times, most recently from fdc2ca0 to e08d7b7 Compare September 12, 2026 00:31
@wesleygrimes wesleygrimes changed the title feat(chrome): split capture tabs around known MacBook notches feat(chrome): split the capture tab strip around the MacBook notch Sep 12, 2026
On the notched MacBook Pro panels (native 3456×2234 and 3024×1964) the
tab strip sat under the camera housing. Derive the housing width from the
monitor mode and lay the tabs out as two ears either side of it; every
other monitor keeps the centered strip unchanged.
@wesleygrimes
wesleygrimes marked this pull request as ready for review September 12, 2026 00:37
@wesleygrimes

wesleygrimes commented Sep 12, 2026

Copy link
Copy Markdown
Author

@tobi love omasnap, was using it on my m2 macbook and noticed an issue with the controls being hidden behind the notch. Thoughts on including this change? Happy to tweak the PR as well if you wanna go a different direction.

Went with resolution detection because these resolutions should be specific to the notched MacBook Pro panels; an identical custom or virtual monitor mode would also trigger the split layout, but pretty unlikely.

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