Skip to content

Auto-collapse and click-outside dismissal blocked by thin KVM hot-border windows etc. #548

Closed

Description

@tomads

[macos 27.2] The popup detection in AutoCollapsePopupGuard has two geometry-related problems:

  • Thin windows can incorrectly block auto-collapse. Narrow screen-edge windows may be classified as menu-bar popups simply because they touch the area below the menu bar. This prevents both timed auto-collapse and click-outside dismissal, even when no menu is open.
    Locally tested fix:
    Ignoring popup candidates with a width or height below 8 points resolves this case. This also covers thin horizontal hot-border windows. Existing popup tests and additional hot-border regression tests passed.

  • Actual popups can fail to block auto-collapse. The detection rejects windows whose upper edge extends above the menu-bar band. On macOS 27, legitimate menu-bar popups can have such bounds. Hidden Bar then collapses the icon section while the popup is still open.
    Locally, excluding extremely thin windows and allowing popup bounds to extend above the screen resolved both behaviors: open menus keep the section expanded, and automatic collapse works again after they close.
    Locally tested fix:
    Removing the lower bound on frame.minY, while retaining the intersection, downward-extension, ownership/layer, and thin-window checks, resolves the observed case.

After the change, all menus tested remained open without triggering collapse, and automatic collapse worked again after closing them. All 20 popup-guard tests passed, including new regression tests for above-screen popup bounds and thin hot-border windows.

Activity

  1. added a commit that references this issue on Nov 18, 2026
    7c7aa00
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