Right-Click doesn't toggle hidden bar anymore
Instead of toggling the hidden bar it now only opens the context menu since 1.11.1
same for me.
uninstalled and reinstalled. now working
https://github.com/dwarvesf/hidden/issues/430
I'm on a M5 and it is impossible to to collapse the always hidden
when i right-click on the > it opens the preferences menu of the app in the previous app there was a non-translucent | and that is also gone.
Same issue even after reinstalling 1.11.1. Whether toggle the always hidden feature or not the non-translucent "|" never appear, and right-click on the ">" opens the app preferences menu rather than toggling the non-translucent "|".
MBP M5 Pro, macOS 27.0, GitHub install.
I have tried to install it from GH and removed it install it from homebrew and removed it it is all the same -- It also does not matter if an external display is attached to the M5 or not
I also see the right-click behavior described here on macOS 27.0 (26A428) with Hidden Bar 1.11.1 (build 16): right-clicking Hidden Bar's arrow only opens the preferences/context menu, so the expected right-click visibility toggle is unavailable.
The always-hidden section is enabled in my configuration. I noticed that the current manual documents Option-click for toggling the separators/always-hidden area and reserves right-click for the context menu. I have not yet verified the Option-click workaround locally.
Could you clarify whether this is an intentional gesture change in 1.11.1, and make the replacement gesture discoverable in the app's UI/help? The current right-click behavior makes the visibility feature appear broken to users expecting the previous gesture.
@Apolsus Can confirm that option+(right-)click is the correct action, behaving as right-click alone used to. Thanks for finding that.
The current right-click behavior makes the visibility feature appear broken to users expecting the previous gesture.
That's exactly what brought me here. In the application itself, the "?" tooltip next to "Enable always hidden section" still says to rick-click on the arrow to enable/disable the always-hidden section:
Steps to view always hidden icons
- You right-click on "<" icon again to view and repeat the action to enable the feature. Enjoy 😉!
Either this should be fixed to reflect current behavior, or the current behavior was unintentional and should be set back to avoid having to communicate a new gesture to all current users.
@bwest2397 option+(right-)click may be conflicting with some unknown software on my system. The Settings menu still pops up when I do this.
option right-click on a M5 still does not work! (I still only have the translucent | bar but placing some app left from it does not make it hidden)
is there a plist file or other that holds the config that I can wipe to restore defaults?
other strange thing even when the time-machine icon is not left of the < when i click on < the icon also disappears.
I dug into this (w/ Claude) a bit, and it turns out there are two separate things going on:
-
Right-click on “<” not toggling is intended; the in-app tutorial is just stale. v1.11 deliberately moved the toggle to Option-click and made right-click open the context menu (CHANGELOG v1.11, “Added”). The tutorial text in
Localizable.stringsstill said “right-click on the collapse “<” icon”, which is why it looked like a regression to me (and to @bwest2397 above). -
Option-click / Option-right-click doesn't actually work on macOS 27. This one is a real bug.
btnExpandCollapsePressedreadsNSApp.currentEvent.modifierFlags. On macOS 27 the mouse-up event thatNSStatusBarButtonhands to its action has empty modifier flags even while Option is held, so the resolver never sees Option. That would explain @0xygen8 and @Apolsus (and me) still having no luck with Option-click.
Evidence
Temporary NSLog in btnExpandCollapsePressed, Option held on every click:
currentEvent type=2 (leftMouseUp) eventMods=Optional(0) liveMods=524288
524288 = 0x80000 = NSEvent.ModifierFlags.option. The live keyboard state (NSEvent.modifierFlags) has Option, the event doesn't. Same result on every click.
Proposed fix
Count Option as pressed if either the event or the live keyboard state has it:
static func isOptionPressed(eventFlags: NSEvent.ModifierFlags?, liveFlags: NSEvent.ModifierFlags) -> Bool {
return (eventFlags?.contains(.option) ?? false) || liveFlags.contains(.option)
}
and in btnExpandCollapsePressed:
let optionPressed = ExpandCollapseActionResolver.isOptionPressed(eventFlags: event?.modifierFlags, liveFlags: NSEvent.modifierFlags)
The live flags are only a fallback, so behavior stays identical where the event does carry the flags. The resolver is still a pure function, so it's unit-testable. Tests added to ExpandCollapseActionTests: live-only Option, event-only Option, neither.
I (Claude actually) also updated the tutorial text in all 10 locales to say Option-click. While at it I fixed the French line (it pointed at a “view” icon instead of “<”) and an Arabic typo in the same line. Only English and Chinese have been proofread by me, the rest should get a look from someone who speaks them.
Other things I ran into
A is a known limitation that seems unfixable at the moment. B and C turned up while testing the fix, and both are fixed in #445.
A. Any active restriction hides the Focus status item
This is also what #444 reports (“do not disturb icon also being hidden”).
Reproduced outside Hidden Bar with a minimal tool calling MBAssessmentModeAssertion. It allowed every running app's bundle id plus system items 0..<N:
| allowedSystemItems | Focus item (MenuBarAgent, x=1169) while active |
|---|---|
0..<64 (what Hidden Bar uses) |
hidden |
0..<256 |
hidden |
0..<4096 |
hidden |
The Focus item comes back once the assertion is invalidated. More probing: allowedSystemItems only takes numeric IDs. Singly, 0 = battery, 2 = clock, 5 = sound, 6 = Wi‑Fi, 8 = Control Center. A string like com.apple.menuextra.focusmode is read as 0, so only the battery is kept. None of these keep Focus visible:
- numeric IDs
0..<1_000_000, negative IDs, and powers of two; - passing
com.apple.menuextra.focusmode(the item's AX identifier) or a few guessed Focus bundle ids as allowed bundle identifiers.
So Focus seems to be hidden unconditionally in assessment mode. Hidden Bar keeps a restriction active while collapsed, and also while expanded when the always-hidden section is active, which is why Option-click visibly toggles the Focus icon. I don't see a fix on Hidden Bar's side. Might be worth documenting next to the other macOS 27 limits in the CHANGELOG/manual, since “macOS's own items always stay visible” isn't true for Focus.
B. The always-hidden “|” stays in the bar while its section is hidden (fixed)
Before macOS 27, Option-click hid the always-hidden “|” together with its icons. With NativeVisibilityEngine the “|” stayed in the bar while its section was hidden, both collapsed and expanded. Dropping it to zero width only hid it visually: the item was still there and clickable, just doing nothing.
Fix (dbde06a): setSeparatorsVisible now also sets isVisible = false on the always-hidden item while its section is hidden (collapsed, or expanded with “hide separators” on). This only happens once the restriction is actually active. If activation fails, the “|” stays, so it never disappears on its own. On macOS 27, macOS puts the item back where the user left it when it becomes visible again (locally verified), even though it no longer writes the position to the app's defaults. That position is what defines the section.
Follow-up (23f4f20): enabling the section in Preferences creates a fresh separator item that AppKit puts in the bar visible. Two problems on macOS 27:
- Enabled while collapsed, the engine only zeroed its length, so it stayed as a clickable space. The controller now hands the item to the engine only after setting it up, so the engine has the last word and takes it out of the bar.
- Enabled while “hide separators” was saved as on, the new separator showed but the preference still said hidden, so the next Option-click only flipped the preference and looked like a no-op. Turning the section on from Preferences now resets it, so the separator can be dragged into place and hidden with Option-click. Launch keeps the saved state.
Checked on macOS 27.0 with Debug-Direct: with “hide separators” on, turning the section off and on in Preferences shows the separator, and a single Option-click hides it.
Tests added to NativeVisibilityEngineTests:
- The “|” goes (zero width and
isVisible == false) with its section, and only after activation succeeds. - Enabled while collapsed, it stays out of the bar.
- It stays when the section cannot be hidden.
C. Relaunching with the always-hidden section hidden hides almost every icon (fixed)
This was introduced by the change in B. If the always-hidden section was hidden when the app quit, the next launch hid nearly every icon until the next Option-click.
Cause: StatusBarController.init called hideSeparators() synchronously, before macOS had put the “|” back in the bar. The sections were therefore read with it missing (the arrow read at x=884), so most apps were classified as always hidden. That layout was then cached, because sections aren't re-read while a restriction is active.
Fix (dbde06a): hideSeparators() now runs inside the existing 1s delayed launch block, just before collapseMenuBar(). After the fix, the log shows the correct sections on relaunch: only the apps placed left of the “|” are always hidden.
One side effect: this is in StatusBarController, so it also applies to the legacy engine. On older macOS the always-hidden section gets hidden about a second after launch instead of immediately.
Environment
- Hidden Bar 1.11.1 (build 16), GitHub build
- macOS 27.0 (26A428), MacBook Pro M5 Pro
- Built/tested locally with Xcode 27.0,
Debug-Directconfiguration
Fixed in #468 (macOS 27.2). It ships in the next release; we will close this then.
Since 1.11, right-click opens the menu and Option-click toggles the bar. On macOS 27 the Option key was not detected, which #468 fixes (the tutorial text is updated too). We could not do a real Option-click on hardware yet, so please confirm after the release.