Skip to content

[Bug][macOS] Invisible transparent area above the floating recording controls blocks clicks on apps underneath #3357

Closed

Description

@phalla-doll

Summary

While recording, the floating controls bar blocks mouse clicks in a large invisible region around the visible bar, not just on the bar itself. UI of apps underneath becomes unclickable in that area, as if the controller window has an invisible margin.

Steps to reproduce

  1. Start a screen recording in Cap on macOS — the floating controls bar appears near the bottom of the screen.
  2. With another app behind it, try clicking something in that app directly above the visible bar (within roughly 110 px), where nothing from Cap is visibly rendered.
  3. The click is swallowed by Cap's controls window instead of reaching the app.

Expected behavior

Only the visible controls card should capture mouse input; the transparent parts of the window should pass clicks through to whatever is underneath.

Actual behavior

An invisible ~320×110 px region (the full controls window minus the 40 px visible card) intercepts all clicks.

Environment

  • Cap 0.6.1 (native macOS app)
  • macOS 27.0.1 (Apple Silicon)

Analysis

open_controls() in apps/desktop-gpui/src/app_windows.rs (~line 6696) opens the controls window as a 320×150 transparent PopUp window (CONTROLS_WIDTH / CONTROLS_HEIGHT, lines 42–43) with WindowBackgroundAppearance::Transparent. However, the visible bar is only a 40 px-tall card hugging the bottom of that window (apps/desktop-gpui/src/controls_window.rs, see the module docs and render_bar()'s .h(px(40.))).

Nothing restricts hit-testing to the visible card, so the transparent remainder of the window (the top ~110 px, plus padding) still receives mouse events and blocks clicks on apps underneath.

This looks like the same class of bug as #1523 ("prewarmed overlay blocking clicks by ignoring cursor events"), which was fixed in the old Tauri app via set_ignore_cursor_events. The GPUI migration appears to have reintroduced the pattern for the controls window.

Possible fixes

  • Size the window down to hug the visible card (40 px + padding) instead of 150 px tall, resizing when the error banner is shown, or
  • Track the cursor over the window and toggle setIgnoresMouseEvents (NSPanel) when it is over a transparent region — the standard technique for transparent overlays, and what fix: prewarmed overlay blocking clicks by ignoring cursor events when… #1523 did in spirit, or
  • Apply per-region hit-testing in GPUI so clicks on fully transparent areas pass through.

Happy to test any fix. Thanks for the great app!

Activity

  1. linear commented on Oct 26, 2026

    @linear
  2. nikhilanu commented on Oct 26, 2026

    @nikhilanu

    I put together a fix in #3429 and tried it on macOS 15.7 (Apple Silicon): clicks above the bar reach the app underneath, and the bar, tooltip and warning banner all still work. Sharing in case it's useful.

  3. richiemcilroy commented on Nov 4, 2026

    @richiemcilroy
    Member

    This was fixed in #3509, which shipped in 0.6.2. Closing, but reopen if you still see it on the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions