Skip to content

fix: let a mouse click answer the Location prompt from the Quick toggles - #918

Merged
Seb-GRAF merged 2 commits into
mainfrom
fix/keep-location-prompt
Nov 24, 2026
Merged

Seb-GRAF merged 2 commits into
mainfrom
fix/keep-location-prompt

Conversation

@Seb-GRAF

@Seb-GRAF Seb-GRAF commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

On a bar without Location access, the Quick toggles panel shows macOS's Location prompt. Clicking Allow with the mouse closed the panel and the prompt, access wasn't saved, and the prompt came back the next time the panel opened. Answering with the keyboard worked.

Fixes #917

Changes

WiFiMonitor asks for Location access through one CLLocationManager that lives as long as the app.

  • A click on the prompt closes the panel, which suspends the panel-only wifi provider and drops its WiFiMonitor and the manager that asked. locationd then discards the answer: the logs show #AuthPrompt ignoring CFUN response on macOS and no change of authorization. About two seconds later, a new monitor connects a new client and asks again.
  • Each monitor keeps its own manager as the delegate, so it still hears when access changes and reads again. macOS tells every manager in the app.

A click on a permission prompt leaves the popup open.

  • The Location prompt belongs to com.apple.CoreLocationAgent. When it appears, it takes the keyboard without coming to the front. WindowServer makes it the front app only once the click starts, after the popup's outside-click check has already seen a different front app.
  • The popup's outside-click check now looks at the app that owns the window under the pointer (AppWatcher.pointerIsOnPermissionPrompt), instead of the front app.
  • AppWatcher.permissionPrompts now lists CoreLocationAgent next to UserNotificationCenter. When the prompt comes to the front, the active app stays as it was and the popup stays open, as they already did for the System Audio Recording prompt.
  • One difference for UserNotificationCenter: while its prompt is in front, a click outside both the prompt and the popup now closes the popup, like any other outside click.

Testing

  • On this Mac, macOS 27.2.1. Copies of each build, signed with the Developer ID and given their own bundle IDs so that macOS asked again. Each ran on a scratch configuration from the starter, which has Quick toggles and no Wi-Fi widget. In each run, the Allow button was clicked with the mouse, and locationd and CoreLocationAgent were followed in the unified log.
    • main: six prompts in 30 seconds. Each answer was followed by ignoring CFUN response on macOS and no change, then a new client and a new prompt. The installed bar showed the same thing at 12:45: two mouse answers were dropped, and the third, given with the keyboard, was saved.
    • First commit: one prompt. CoreLocationAgent logged trackMouse send action on mouseUp, and locationd logged authorization to Enabled 1 ms after the answer. No prompt came back. The popup still closed.
    • Both commits: one prompt, authorization to Enabled on the mouse click, and Quick toggles stayed open.
  • swift build --build-tests passes.
  • Quick toggles, Wi-Fi, popup and presentation tests pass (QuickToggles|wifi|WiFi, 20 tests; PresentationIntegrationTests|NativePresentationTests|PopupSpacingTests|QuickToggles, 83 tests).
  • scripts/check.sh --quick passes.
  • Not checked: the System Audio Recording prompt with the new click check.
  • Nothing changes on screen, so there are no screenshots.

Merging

Two fix commits. A merge commit, as the other pull requests use, keeps both.

Claude Opus 5.5 via Claude Code (T3 Code)

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Before and after

main at 9e3f302 → this pull request at 77bf381 · 332 screens drawn · 0 changed

332 unchanged screens

docs/essentials-clock-settings-dark, docs/essentials-clock-settings-light, docs/essentials-dark, docs/essentials-light, docs/essentials-settings-dark, docs/essentials-settings-light, docs/hero-dark, docs/hero-light, docs/popups-dark, docs/popups-light, docs/settings-dark, docs/settings-light, docs/themes-dark, docs/themes-light, scenes/accessibility-guide-dark, scenes/accessibility-guide-light, scenes/app-menu-popup-dark, scenes/app-menu-popup-light, scenes/apple-menu-settings-dark, scenes/apple-menu-settings-light, scenes/apple-menu-symbol-bar-dark, scenes/apple-menu-symbol-bar-light, scenes/apple-menu-symbol-settings-dark, scenes/apple-menu-symbol-settings-light, scenes/bar-dividers-dark, scenes/bar-dividers-light, scenes/bottom-bar-popup-dark, scenes/bottom-bar-popup-light, scenes/chat-popup-dark, scenes/chat-popup-light, scenes/crowded-edit-bar-dark, scenes/crowded-edit-bar-light, scenes/disk-meter-bar-dark, scenes/disk-meter-bar-light, scenes/dock-badges-bar-dark, scenes/dock-badges-bar-light, scenes/edit-bar-wide-group-dark, scenes/edit-bar-wide-group-light, scenes/essentials-clock-popup-dark, scenes/essentials-clock-popup-light, scenes/essentials-disk-popup-dark, scenes/essentials-disk-popup-light, scenes/filled-slider-popup-dark, scenes/filled-slider-popup-light, scenes/glass-text-follows-background-bar-dark, scenes/glass-text-follows-background-bar-light, scenes/group-members-bar-dark, scenes/group-members-bar-light, scenes/group-others-bar-dark, scenes/group-others-bar-light, scenes/group-text-color-bar-dark, scenes/group-text-color-bar-light, scenes/gruvbox-bar-dark, scenes/gruvbox-bar-light, scenes/horizontal-list-popup-dark, scenes/horizontal-list-popup-light, scenes/increase-contrast-bar-dark, scenes/increase-contrast-bar-light, scenes/increase-contrast-popup-dark, scenes/increase-contrast-popup-light, scenes/input-source-popup-dark, scenes/input-source-popup-light, scenes/labeled-metric-built-in-dark, scenes/labeled-metric-built-in-light, scenes/labeled-metric-catppuccin-dark, scenes/labeled-metric-catppuccin-light, scenes/meeting-live-popup-dark, scenes/meeting-live-popup-light, scenes/meeting-soon-bar-dark, scenes/meeting-soon-bar-light, scenes/menu-bar-items-widget-settings-dark, scenes/menu-bar-items-widget-settings-light, scenes/menu-bar-items-widget-style-dark, scenes/menu-bar-items-widget-style-light, scenes/merged-status-bar-dark, scenes/merged-status-bar-light, scenes/notch-flare-bar-dark, scenes/notch-flare-bar-light, scenes/output-device-popup-dark, scenes/output-device-popup-light, scenes/package-template-clash-bar-dark, scenes/package-template-clash-bar-light, scenes/popup-gap-bar-dark, scenes/popup-gap-bar-light, scenes/popup-spacing-bar-dark, scenes/popup-spacing-bar-light, scenes/popup-view-dark, scenes/popup-view-light, scenes/preset-dashboard-bar-dark, scenes/preset-dashboard-bar-light, scenes/preset-developer-bar-dark, scenes/preset-developer-bar-light, scenes/preset-everyday-bar-dark, scenes/preset-everyday-bar-light, scenes/preset-minimal-bar-dark, scenes/preset-minimal-bar-light, scenes/preset-workday-bar-dark, scenes/preset-workday-bar-light, scenes/privacy-both-bar-dark, scenes/privacy-both-bar-light, scenes/privacy-hide-when-idle-bar-dark, scenes/privacy-hide-when-idle-bar-light, scenes/privacy-idle-bar-dark, scenes/privacy-idle-bar-light, scenes/privacy-microphone-bar-dark, scenes/privacy-microphone-bar-light, scenes/privacy-settings-dark, scenes/privacy-settings-light, scenes/quick-toggles-bar-dark, scenes/quick-toggles-bar-light, scenes/quick-toggles-displays-popup-dark, scenes/quick-toggles-displays-popup-light, scenes/quick-toggles-every-tile-popup-dark, scenes/quick-toggles-every-tile-popup-light, scenes/quick-toggles-network-popup-dark, scenes/quick-toggles-network-popup-light, scenes/quick-toggles-networks-popup-dark, scenes/quick-toggles-networks-popup-light, scenes/quick-toggles-popup-dark, scenes/quick-toggles-popup-light, scenes/reduce-transparency-bar-dark, scenes/reduce-transparency-bar-light, scenes/reduce-transparency-glass-bar-dark, scenes/reduce-transparency-glass-bar-light, scenes/reduce-transparency-text-follows-background-bar-dark, scenes/reduce-transparency-text-follows-background-bar-light, scenes/ring-bar-dark, scenes/ring-bar-light, scenes/settings-bar-dark, scenes/settings-bar-light, scenes/settings-bar-link-dark, scenes/settings-bar-link-light, scenes/settings-bar-link-review-dark, scenes/settings-bar-link-review-light, scenes/settings-bar-link-workspace-color-dark, scenes/settings-bar-link-workspace-color-light, scenes/settings-bar-look-dark, scenes/settings-bar-look-light, scenes/settings-bar-placement-bottom-dark, scenes/settings-bar-placement-bottom-light, scenes/settings-bar-placement-dark, scenes/settings-bar-placement-light, scenes/settings-calendar-picker-dark, scenes/settings-calendar-picker-light, scenes/settings-calendar-widget-dark, scenes/settings-calendar-widget-light, scenes/settings-crashes-dark, scenes/settings-crashes-light, scenes/settings-disk-widget-dark, scenes/settings-disk-widget-light, scenes/settings-feedback-dark, scenes/settings-feedback-light, scenes/settings-general-dark, scenes/settings-general-kiwidesk-dark, scenes/settings-general-kiwidesk-light, scenes/settings-general-light, scenes/settings-general-macos15-dark, scenes/settings-general-macos15-light, scenes/settings-general-macos27-dark, scenes/settings-general-macos27-light, scenes/settings-general-manager-not-found-dark, scenes/settings-general-manager-not-found-light, scenes/settings-general-move-dark, scenes/settings-general-move-failed-dark, scenes/settings-general-move-failed-light, scenes/settings-general-move-light, scenes/settings-general-move-moving-dark, scenes/settings-general-move-moving-light, scenes/settings-general-move-replace-dark, scenes/settings-general-move-replace-light, scenes/settings-general-setup-open-dark, scenes/settings-general-setup-open-light, scenes/settings-general-spaces-dark, scenes/settings-general-spaces-light, scenes/settings-general-yabai-gap-dark, scenes/settings-general-yabai-gap-light, scenes/settings-group-dark, scenes/settings-group-defaults-dark, scenes/settings-group-defaults-light, scenes/settings-group-light, scenes/settings-group-theme-color-dark, scenes/settings-group-theme-color-light, scenes/settings-help-dark, scenes/settings-help-light, scenes/settings-help-starred-dark, scenes/settings-help-starred-light, scenes/settings-labeled-metric-dark, scenes/settings-labeled-metric-light, scenes/settings-narrow-dark, scenes/settings-narrow-light, scenes/settings-package-dark, scenes/settings-package-light, scenes/settings-package-widget-dark, scenes/settings-package-widget-light, scenes/settings-profiles-conditions-dark, scenes/settings-profiles-conditions-light, scenes/settings-profiles-dark, scenes/settings-profiles-groups-dark, scenes/settings-profiles-groups-light, scenes/settings-profiles-light, and 132 more

Visual review: 332 screens, none changed.

@Seb-GRAF Seb-GRAF changed the title fix: keep the Location prompt open when the Quick toggles panel closes fix: let a mouse click answer the Location prompt from the Quick toggles Nov 24, 2026
@Seb-GRAF
Seb-GRAF added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 6b9117f Nov 24, 2026
26 checks passed
@Seb-GRAF
Seb-GRAF deleted the fix/keep-location-prompt branch November 24, 2026 12:55
stablebar-releases Bot pushed a commit that referenced this pull request Nov 25, 2026
## [0.19.0](v0.18.0...v0.19.0) (2026-11-25)

### Features

* add a Quick toggles widget, a Control Center-style panel of switches and tools by @Seb-GRAF ([d949a89](d949a89))
* add KiwiDesk as a workspace source by @M4n0x ([0da5d89](0da5d89))
* change the whole look in Appearance and set the bar's margin per axis ([#926](#926)) by @Seb-GRAF ([82156aa](82156aa))
* control each app's sound, the input device and music from the Sound widget by @Seb-GRAF ([186d7db](186d7db))
* describe KiwiDesk workspaces and list KiwiDesk with the other window managers by @M4n0x ([1149849](1149849))
* follow KiwiDesk's events and switch Spaces from workspace widgets by @M4n0x ([383e2de](383e2de))
* give setup and the starter only widgets and displays Get Widgets and Settings offer ([#916](#916)) by @Seb-GRAF ([217ae14](217ae14))
* let a popup control what plays in any app, with the timeline and 15-second skips by @Seb-GRAF ([3abe2da](3abe2da))
* list only the window managers found on this Mac in Settings by @M4n0x ([2137f5d](2137f5d))
* post your bar's image and link to social networks, and draw its glass as on screen ([#922](#922)) by @Seb-GRAF ([099250d](099250d))
* read KiwiDesk's Spaces and windows for workspace widgets by @M4n0x ([e633cba](e633cba))
* replace the included themes and rebuild setup around them by @Seb-GRAF ([e30dc67](e30dc67))
* set the space between the icons Menu bar items shows on the bar by @Seb-GRAF ([00fa4ce](00fa4ce))

### Bug Fixes

* address CodeRabbit's review of the sound controls by @Seb-GRAF ([0ac54f8](0ac54f8))
* address cubic's review of the tooltip slider by @M4n0x ([8523b0f](8523b0f))
* address the review of the sound controls by @Seb-GRAF ([40db99c](40db99c))
* don't restart workspaces for a launch seen just before they stopped by @M4n0x ([d52aa6a](d52aa6a))
* draw live menu bar items without the menu bar's opaque background by @Seb-GRAF ([815faec](815faec))
* draw StableBar's bundled icon in Share My Bar and every other view by @M4n0x ([805e945](805e945)), closes [#895](#895)
* drop the earlier starter's bar sizes so each theme draws with its own by @Seb-GRAF ([5dafa75](5dafa75))
* keep a growing popup from flashing a scroll bar by @M4n0x ([edb3344](edb3344)), closes [#883](#883)
* keep a themed slider in a hover tooltip to a line of text by @M4n0x ([d56519b](d56519b)), closes [#880](#880)
* keep a tooltip whose controls draw nothing from crashing by @M4n0x ([2c080aa](2c080aa))
* keep each package's widgets on that package's own templates ([#824](#824)) by @Jonathanm10 ([05c7252](05c7252)), closes [#805](#805)
* keep the icon's 512-pixel bitmap as its image's only representation by @M4n0x ([d876411](d876411)), closes [#895](#895)
* leave out a slider's ticks unless they stand 6 points apart by @M4n0x ([25cc3cd](25cc3cd))
* leave out a slider's ticks when its steps would run together by @M4n0x ([c9d487b](c9d487b))
* leave StableBar's own mixer devices out of the Sound widget's device lists by @Seb-GRAF ([db1d7b3](db1d7b3))
* let a mouse click answer the Location prompt from the Quick toggles ([#918](#918)) by @Seb-GRAF ([6b9117f](6b9117f))
* move a plain slider one step per arrow key, and keep its ticks before macOS 26 by @M4n0x ([b54212d](b54212d))
* open SwiftUI menu bar panels from the bar on macOS 27 by @M4n0x ([50fae9e](50fae9e)), closes [#798](#798)
* plan the Mac's real uninstall steps in Settings and quit once they're done by @M4n0x ([6d67a44](6d67a44))
* queue now-playing commands with the widget's other actions by @Seb-GRAF ([e5365b9](e5365b9))
* reconnect workspaces at once when a menu bar window manager launches by @M4n0x ([76771ef](76771ef))
* rescan window managers once the login shell's PATH arrives by @M4n0x ([cba21b2](cba21b2))
* share a stuck window manager lookup and queue a rescan that comes mid-scan by @M4n0x ([c86e372](c86e372))
* stop an app's tap after the queued work when one of its plans fails by @Seb-GRAF ([b894cb7](b894cb7))
* take the icon's 512-pixel bitmap from the file rather than through AppKit by @M4n0x ([bfac648](bfac648)), closes [#895](#895)
* turn on Sound's details after its click was set to nothing, and qualify the docs by @Seb-GRAF ([4263bec](4263bec))
* turn on Sound's details popup in setup, the starter and earlier bars by @Seb-GRAF ([5e1a8ef](5e1a8ef))
* undo StableBar's changes when Homebrew uninstalls it ([#898](#898)) by @M4n0x ([bb90c02](bb90c02)), closes [#896](#896)
* wrap a scene's hover tooltip at the live tooltip's width by @M4n0x ([82818ce](82818ce))
@stablebar-releases

Copy link
Copy Markdown

🎉 This PR is included in version 0.19.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allowing Location access with the mouse from the Quick toggles doesn't stick

1 participant