Tray icons are unclickable: clicks fall through to the bar's gesture area and toggle transparency
Note: This bug was investigated and this report written by Claude Code, and submitted on my behalf. The source tracing, the D-Bus checks and the two-app reproduction below were all carried out by it; I have reviewed and endorsed the result.
Summary
System tray (omarchy.tray) icons cannot be clicked. Left-clicking a tray icon
does nothing; the click falls through to a bar-wide gesture area, so
double-clicking a tray icon toggles the whole bar's background transparency
instead of activating the icon (and rewrites bar.transparent in
~/.config/omarchy/shell.json).
Omarchy's own bar widgets (bluetooth, wifi, audio, power, clock) are unaffected. Only third-party StatusNotifierItem icons are.
Steps to reproduce
- Run any app that provides a tray icon.
udiskieworks and is a clean test:udiskie --tray - Pin it so it is visible without the drawer — add to the
omarchy.trayentry in~/.config/omarchy/shell.json:{ "id": "omarchy.tray", "pinned": ["udiskie"] } - Hover the icon — the tooltip appears, so pointer events do reach it.
- Left-click it. Nothing happens.
- Double-click it. The entire bar's background transparency toggles.
Reproduced with two unrelated apps (udiskie, and Claude Desktop's
Claude_status_icon_1). The item is healthy on D-Bus in both cases:
org.kde.StatusNotifierItem.Activate succeeds when called directly with
gdbus, and com.canonical.dbusmenu.GetLayout returns the full menu.
Expected
Left-click activates the tray item; right-click opens its menu.
Actual
Neither. Hover/tooltip works, all clicks are swallowed, and double-click hits the bar's transparency gesture.
Root cause
Ui/WidgetButton.qml:47is the only thing that callsregisterClickTarget.plugins/bar/widgets/Tray.qmlnever does —TrayItemis a bareMouseArea(Tray.qml:814).Ui/BarIconButton.qml:5is aWidgetButton, which is why Omarchy's own widgets work.- A left-press on the slot is taken by
ModuleSlot's dragMouseArea(Bar.qml:1654,acceptedButtons: Qt.LeftButton, fills the slot). - On click it calls
pressModuleClickTarget(Bar.qml:784) ->moduleClickTargetAt(Bar.qml:762) finds no registered target and falls back toslot.activeItem, which has notriggerPress, somoduleTargetClickable(Bar.qml:752) rejects it and it returnsnull. pressModuleClickTargetreturns false, soBar.qml:1740setsmouse.accepted = false.- The click propagates to
CenterGestureArea. Despite the name it isanchors.fill: parent(Bar.qml:1306) insideCenterModules { anchors.fill: parent }(Bar.qml:1110) — it spans the entire bar, not the centre section. CenterGestureArea.onDoubleClickedcallstoggleTransparency()(Bar.qml:1464). Hence the transparency toggle.
Hover still works because hover is not routed through the click-target registry.
Suggested fix
Either give TrayItem a triggerPress(button) and register it via
registerClickTarget, so tray icons participate in the same dispatch as every
other widget; or stop pressModuleClickTarget returning false from swallowing
clicks for widgets that handle their own input.
Separately, CenterGestureArea spanning the full bar looks unintended — a
click anywhere on the bar that no widget claims can toggle transparency.
Secondary observation
dragThreshold is Style.space(4) (Bar.qml:1658) = 4 logical px, compared as
Manhattan distance |dx| + |dy| (Bar.qml:1681). On a 26px-tall bar this is
very easy to trip, so clicks also frequently become widget-reorder drags
(omarchy-bar-drag-ghost appears in hyprctl layers). Not the root cause, but
it compounds it.
System
- Omarchy 4.0.0-1
- Hyprland 0.56.2, quickshell-git 0.3.0.r20.g28771c7-2
- Kernel 7.1.8-arch1-3, ASUS Vivobook S 15 S5506MA
- Display 2880x1620 @ scale 1.6667 (bar 1728x26 logical)
🤖 Generated with Claude Code
Confirmed independently on Omarchy 4.0.1-1 with Hyprland 0.56.2-1 and Quickshell 0.3.1-1.
A healthy StatusNotifier item was present in RegisteredStatusNotifierItems, and its activation/menu methods worked when invoked directly over D-Bus. Interacting with the same item through the Omarchy tray did not persist the attempted pin. At the same time, bar.transparent in shell.json changed from false to true, matching the click-fallthrough signature in this report.
The active tray implementation also still uses a bare MouseArea for TrayItem and has no registerClickTarget call, matching the reported source-level cause. I am not attaching the complete shell.json because it contains unrelated personal layout settings; the only changed field relevant to this reproduction was bar.transparent.
Reproduced on a fresh Omarchy worker running current quattro (c352b62d6), with a test StatusNotifierItem and udiskie pinned in the tray and clicks sent through a virtual pointer.
Double-click toggling transparency: confirmed. It isn't specific to the tray. Every bar widget sits under a slot-wide MouseArea (Bar.qml, modulePointer) that has no double-click handler, so Qt passes the double-click down to CenterGestureArea, which covers the whole bar and toggles transparency. Double-clicking a tray icon or a workspace number flips bar.transparent. The clock and audio only seem immune because their first click opens a panel, and the panel takes the second click. The fix is up as #14649: the slot accepts double-clicks over anything clickable, and tray items accept their own. A middle double-click on a tray item still activates twice, and double-clicking empty bar still toggles transparency. On the worker, double-clicking the tray icon and the workspace number no longer changes bar.transparent, and the bar, tray and CLI tests pass.
Left-click doing nothing: not reproduced on quattro. A single left-click on a pinned tray item called its Activate over D-Bus, and a right-click on udiskie opened its menu. udiskie's appindicator item ignores Activate and only exposes a menu, so a left-click on it does nothing visible. That is #10339, which has its own fix in review.
The diagnosis and fix were also reviewed by Codex at medium effort over two rounds. It agreed with the mechanism, though its independence isn't guaranteed. It also caught that handling the double-click would have dropped a tray item's second middle-click activation, which the fix now preserves. #14649 now waits on its own review and on the maintainer.