Bar workspace buttons stop responding after the only monitor disconnects and reconnects (dangling screen object)
What happened
With one monitor, switching it off with its power button and back on left the bar's workspace buttons dead: clicking a workspace number did nothing. The bar was still drawn and still showed the workspaces. omarchy-restart-shell fixed it.
The monitor is a Dell S2721QSA on HDMI-A-1. Its power button drops hotplug, so aquamarine logs drm: HDMI-A-1 is not connected, clearing stale crtc 205 and later drm: Connector HDMI-A-1 connected, and Hyprland falls back to FALLBACK in between.
Expected
The bar's workspace buttons work again once the monitor reconnects, as they do after a shell restart.
Steps to reproduce
- Use a single monitor that drops hotplug when switched off with its power button (or disable the only output, as in the reproduction in #13956).
- Switch it off, wait, and switch it back on.
- Click a workspace number in the bar. Nothing happens.
- Workspace switching itself still works:
hyprctl dispatch 'o.workspaces.focus(2)'switches workspaces. Afteromarchy-restart-shellthe bar buttons work again.
Diagnostics
quickshell log --pid <shell pid> from before the restart:
WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
WARN: attempted to use dangling screen object
The second line repeated about a dozen times. After the restart the new shell's log has no dangling lines.
Likely cause (from reading the source, not confirmed live)
plugins/bar/widgets/Workspaces.qml finds its monitor through Hyprland.monitorFor(root.QsWindow.window.screen), and focusWorkspace then dispatches o.workspaces.focus(<slot>, "<monitorName>"). If the bar window still holds the dangling screen after the reconnect, monitorName is either empty or FALLBACK. target_monitor(name) in default/hypr/monitor-workspaces.lua then finds no monitor, and M.focus returns without doing anything. That fits a click that fails without any error.
This is on a build that already has the fix for #13956 (#14458, no parked overlay surfaces). #13956 says the per-screen Variants windows (bar, background, notifications) recover after a reconnect. Here the bar's surface recovered but its workspace widget did not.
System
- omarchy 4.5.0rc1-1 (built 2026-10-20)
- Hyprland 0.56.2
- Quickshell 0.3.2 (distributed by Omarchy)
- Kernel 7.2.8-9-omarchy
- Single monitor: Dell S2721QSA 3840x2160@60 on HDMI-A-1
Filed by Claude Opus 5.5 via Claude Code.
Same bug here, reached through the lock screen instead of the power button.
Locking the session and leaving it until the display blanks is enough: the monitor (ODA 2468FZV on HDMI-A-1) drops hotplug when it goes to sleep. Aquamarine logs Connector HDMI-A-1 disconnected then connected, Hyprland goes through FALLBACK, and the monitor comes back with id 1. After unlocking, the bar's workspace buttons do nothing, or cycle the layout as if the clicked workspace were the shown one. omarchy restart shell fixes it.
The shell log from before the restart:
WARN: attempted to use dangling screen object (repeated)
DEBUG: Not creating lock surface for screen QScreen(0x..., name="") as it is not backed by a valid wayland output.
WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
So on a single monitor that drops hotplug on sleep, it happens on every lock long enough to blank the display, which makes it much more frequent than a manual power-off.
- omarchy 4.5.0-3
- Hyprland 0.56.2
- Quickshell 0.3.2.r7.g2b4501a
- Kernel 7.2.15-1-omarchy
Same bug on a single Samsung Odyssey Ark (HDMI-A-1), which drops its link on every sleep/wake. I logged the state from inside the widget, and it is not a dangling screen: the monitor goes missing from Quickshell's Hyprland IPC.
Reproducing without a hotplug
On real hardware with one output:
hyprctl eval 'hl.monitor({ output = "HDMI-A-1", disabled = true })'
sleep 3
hyprctl reload
Hyprland goes to FALLBACK and back, and the shell logs the same lines as after a real wake (There are no outputs - creating placeholder screen, attempted to use dangling screen object, Got removal for monitor "FALLBACK" which was not previously tracked). The bar ends up in the same dead state: no workspace shown as active, clicks do nothing.
With the stock widget, four runs in a row gave: dead, fine, dead, fine. On the run after a dead one, Quickshell logged Got removal for monitor "HDMI-A-1" which was not previously tracked, so by then it was not tracking the real monitor at all.
State after the reconnect
Logged from a clone of Workspaces.qml, about 0.5 s after the monitor returned:
QsWindow.window.screen.name = 'HDMI-A-1' Quickshell.screens = ['HDMI-A-1']
Hyprland.monitors.values = []
Hyprland.focusedMonitor = null
Hyprland.workspaces = 1, 2, 3, each with monitor = null
- The widget that ends up on screen has the live screen. The old bar's widgets are destroyed and a new bar is built for the returning screen, so the
dangling screen objectwarnings do not describe the surviving widget. Hyprland.monitorsis empty, soHyprland.monitorFor(screen)returns null, and themonitorbinding never re-runs. Clicks then sendo.workspaces.focus(N, "").- With a null monitor a plain workspace switch no longer asks for a refresh either:
onRawEventonly does that onworkspacev2whenroot.monitor.focused.
hyprctl monitors -j reported HDMI-A-1 as focused with active workspace 1 the whole time.
Bringing the monitor back
Hyprland.refreshMonitors() alone cannot: it calls refreshMonitors(false), which skips monitors Quickshell does not already track. Hyprland.refreshWorkspaces() recreates the monitor object from the workspaces' monitor field, but half-filled:
Hyprland.monitors.values = [id 1, HDMI-A-1, activeWorkspace = null, focused = false]
Hyprland.focusedMonitor = null
A refreshMonitors() after that fills in the active workspace and the focused monitor.
What fixed it here
In a cloned widget (omarchy plugin clone omarchy.workspaces):
readonly property string screenName: {
var window = root.QsWindow.window
var screen = window ? window.screen : null
return screen ? screen.name : ""
}
readonly property var monitor: {
var window = root.QsWindow.window
var screen = window ? window.screen : null
if (!screen) return Hyprland.focusedMonitor
var monitors = Hyprland.monitors.values
for (var i = 0; i < monitors.length; i++) {
if (monitors[i].name === root.screenName) return monitors[i]
}
return Hyprland.monitorFor(screen)
}
readonly property bool monitorLost: root.screenName !== ""
&& (root.monitor === null || root.monitor.activeWorkspace === null || Hyprland.focusedMonitor === null)
Timer {
interval: 500
repeat: true
running: root.monitorLost
onTriggered: {
Hyprland.refreshWorkspaces()
Hyprland.refreshMonitors()
}
}
Over three simulated reconnects the widget recovered within 1 to 3 seconds each time: the active workspace was marked again, the mark followed workspace switches, and o.workspaces.focus(N, "HDMI-A-1") switched. It has not been through a real sleep/wake yet.
For #16394
I have not run that branch. In the state above Hyprland.monitors.values.length is 0 and Hyprland.focusedMonitor is null, so the widget's monitors.length === 1 ? Hyprland.focusedMonitor : null fallback would return null. The Lua fallback would make clicks land. The highlight, scrolling and layout glyph would still need the monitor list refreshed as above.
Possible cause in Quickshell
From reading src/wayland/hyprland/ipc/connection.cpp, not confirmed: monitoraddedv2 inserts the monitor and calls refreshMonitors(false), which returns early when a request is already in flight. A response taken while only FALLBACK existed would then run the pass that removes monitors missing from the response, and delete the monitor that was just added.
System
- Omarchy 4.5.0-3
- Hyprland 0.56.2
- Quickshell 0.3.2.r7.g2b4501a
- Kernel 7.2.15-1-omarchy
- Ryzen 7 9800X3D, RTX 5090 (NVIDIA 615.78.08)
- Single monitor: Samsung Odyssey Ark 3840x2160@120 on HDMI-A-1
Diagnosed and written up with Claude Code.
Codex High (GPT-6) read the reconnect reports, the current workspace widget and Lua dispatch, and PR #16394 at 438f66f96d27b6339242a304b4fd8f83fc2f97c2. No reproduction or tests ran in this pass. That PR’s latest review already notes that the reported empty Quickshell monitor list leaves its widget fallback without a monitor; hardware confirmation of clicks, the active highlight and scrolling is still pending there.
I classified this as a bug, but the configured classification reviewer, deepseek-v4p1-flash, returned no usable classification. There is therefore no agreed classification or second opinion on this diagnosis from this pass. Labels remain unchanged, and the issue stays open pending classification review and the reporter testing requested on #16394.
The classification blocker in my earlier comment is cleared: the driver and classification reviewer now agree this is a bug.
Codex High (GPT-6), Opus 5.5 High and muse-wonder via pi (thinking high) checked the current quattro workspace widget, Lua dispatch and PR #16394 at 438f66f96d27b6339242a304b4fd8f83fc2f97c2. This was source review only; no reproduction or tests ran in this pass. The second opinion agreed with the earlier finding that the PR cannot restore the highlight and scrolling while Quickshell's monitor model is empty; independence is not guaranteed because the reviewers saw the earlier observations.
The issue remains open. Work stays with #16394, which already links it, pending @cgldotorg's hardware confirmation of workspace clicks, the active highlight and scrolling separately, and possible further work to recover the monitor model. The exact-head installation steps are in the PR's existing test request.
Same bug here on DisplayPort, so it isn't limited to HDMI.
Setup
- Single monitor: LG HDR WQHD+ (3840x1600@143) on DP-1
- omarchy 4.5.0-3
- Hyprland v0.56.2
- Quickshell 0.3.2.r7.g2b4501a-1
- Kernel 7.2.15-1-omarchy
What I see
After the monitor sleeps and wakes, the workspaces widget no longer marks the active workspace. Hyprland reports workspace 1 active on DP-1, but the bar shows a plain "1" instead of the layout glyph, and switching to workspace 2 changes nothing. Occupied and empty workspaces still dim correctly. omarchy restart shell fixes it.
I also see the Super-key menu stop working after some wakes. I haven't tied that to a specific log line yet, so treat it as a related observation and not confirmed.
Logs
Not every DPMS-off drops the link. Today the display went DPMS-off at 17:02, 18:29 and 19:18, but the shell only went to a placeholder screen at 18:29 and 20:44. Excerpt from 20:44:
qt.qpa.wayland: There are no outputs - creating placeholder screen
WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
WARN: attempted to use dangling screen object
quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/monitor/Panel.qml[222:3]: Handler was registered but will not be used because another handler is registered for target omarchy.monitor
attempted to use dangling screen object appeared 8 times this boot.
I can reproduce this regularly and I'm happy to test #16394 on this hardware.
@ckbrewer33, please test PR #16394 at 438f66f96d27b6339242a304b4fd8f83fc2f97c2 using the installation steps in its existing test request. Activating the checkout requires a reboot; omarchy dev unlink restores the installed version after reboot. After the DisplayPort monitor sleeps and wakes, please report separately whether workspace clicks switch, the active workspace is highlighted, and scrolling works, even if only some improve. If anything remains broken, please include hyprctl monitors -j and the shell log before restarting the shell, and report the Super-key menu observation separately.
Codex High (GPT-6) read your new DisplayPort report and checked the unchanged PR head, current workspace code and installation instructions. No reproduction, tests or new second opinion ran in this follow-up. This issue remains open pending a test of that head on affected hardware.
The root cause is in Quickshell's Hyprland IPC, and I've opened a fix as omacom/omarchy-pkgs#3589 (draft). Same class of setup here: one monitor on DP-2 that I switch between this machine and a Mac with the monitor's input switch, so every switch drops hotplug.
What happens
On each drop Hyprland swaps the output for FALLBACK and back within moments. Quickshell sends j/monitors and j/workspaces while only FALLBACK exists, and because the shell is busy rebuilding its per-screen windows, those replies are parsed only after the events that brought DP-2 back and focused it. refreshMonitors() applies the reply anyway and removes every monitor it doesn't list, which is the real output. The refresh monitoraddedv2 asks for in the meantime is dropped because one is already in flight. From the shell log (quickshell.hyprland.ipc):
Monitor added with id 1 name "DP-2" preemptively created: true
Monitor "DP-2" focused with workspace "2"
Workspace "4" activated on "DP-2"
Monitor removed with id 0 name "FALLBACK"
Parsing workspaces response <- taken during FALLBACK
Monitor "?" requested before creation, performing early init
parsing monitors response <- lists only FALLBACK: DP-2 removed
That leaves Hyprland.monitors empty, Hyprland.focusedMonitor null and every workspace's monitor null, the state ploo98 logged from inside the widget, and nothing brings it back:
workspacev2is ignored without a focused monitor, so noWorkspace N activated online is logged again and the highlight can't move.Hyprland.refreshMonitors()from QML callsrefreshMonitors(false), which never creates a monitor, and with one monitor nofocusedmonarrives to recreate it.- It also explains the Super-key menu report above:
OverlayWindowonly becomes visible once it finds its screen inHyprland.monitors, so the menu toggles but never maps.
The fix discards a j/monitors or j/workspaces reply when an event that changes that model, or another refresh, arrived while it was in flight, and asks again. The PR has a deterministic reproducer (a fake Hyprland IPC that holds the replies back) with stock and patched results. On hardware, across 4 real input switches here, the late replies were discarded every time, and the bar highlight and the Super + Space menu kept working.
On #16394
I read it at 438f66f; I didn't run it.
- The Lua fallback in
target_monitoris sound and worth keeping. It asks Hyprland itself for the focused monitor, so clicks land even while Quickshell's model is empty. - The
Workspaces.qmlfallback can't help in this state. With no monitors and a nullfocusedMonitorit returns null, which the PR's own test asserts ("an empty monitor model supplies no fallback"), so the highlight, scrolling and layout glyph stay dead whenever the race lands. The state it does cover, one reported monitor with a dangling screen, hasn't been observed; ploo98's logging showed the surviving widget holds the live screen. ReadingHyprland.monitors.valuesso the binding re-runs is a good change on its own. - Nothing outside the widget is covered: the menu above, and the other readers of
Hyprland.focusedMonitor(notifications, dock, brightness keys), all see null in this state. - The 438f66f pass on DisplayPort is consistent with a wake where the race didn't land. It's timing-dependent (ploo98 saw dead, fine, dead, fine), and the Super-key menu worked in that test too, though #16394 doesn't touch it. The warnings quoted there show up on healthy reconnects as well: across switches that all recovered, my patched shell logged
There are no outputs - creating placeholder screen8 times,attempted to use dangling screen object38 times andGot removal for monitor "FALLBACK" which was not previously tracked4 times. The signs of the broken state are, with-r 'quickshell.hyprland.ipc.debug=true', noWorkspace N activated online after a workspace switch, andGot removal for monitor "<real output>" which was not previously trackedat the next drop.
So I'd suggest #16394 not close this issue on its own (its body says Fixes #16351); the issue can close once a quickshell package carrying the patch ships.
Investigated and written up with Claude Code.
I checked the new report against the Quickshell source pinned by the current package and both proposed fixes. The source allows the stale reply failure described here: refreshMonitors() drops another refresh while one is in flight, then removes monitors missing from that response without checking for intervening events. A reply taken during FALLBACK can therefore remove the real monitor after newer events restored it. Destruction clears focusedMonitor, and ordinary workspace switch events cannot restore it. This explains how the logged empty monitor model can persist without the surviving bar holding a dangling screen; the hardware event ordering remains reported evidence, not our reproduction.
Draft omacom/omarchy-pkgs#3589, at 3ea3fdbff423dfe55aa66cca99ab890d8de455c0, targets that ordering. #16394, at 438f66f96d27b6339242a304b4fd8f83fc2f97c2, can restore clicks through Lua, but its widget fallback still returns null while the monitor model is empty, leaving the highlight, scrolling and menu unresolved in that state. The successful DisplayPort test remains evidence for that wake; it does not establish prevention of intermittent model loss. Later focus or workspace move events can also recreate a missing monitor.
Codex High (GPT-6), Opus 5.5 High and muse-wonder via pi (thinking high) reviewed these sources. The second opinions agreed on the mechanism; they read earlier public reasoning, so independence is not guaranteed. No new reproduction, build or tests ran, and the package PR's reported results were not independently rerun. This issue stays open pending maintainer review and validation of the existing package proposal; no additional fix was filed and no verification label was added.
Same bug here, and one more data point: hyprctl reload does not bring the widget back.
Single BenQ EX2710Q on HDMI-A-1 (Omarchy 4.5.0-3, Hyprland 0.56.2, Quickshell 0.3.2.r7.g2b4501a). I run a small watcher that does hyprctl reload about 2 s after every monitoraddedv2 (the approach in #19341). It fixes the overlays (SUPER+SPACE menu), but the workspace buttons stayed dead after it ran and after a manual hyprctl reload. Logging the spawned processes while clicking showed:
hyprctl dispatch 'o.workspaces.focus(2, "")'
hyprctl dispatch 'o.workspaces.focus(3, "")'
So the reload probably refills Hyprland.monitors, but Workspaces.qml's monitor: Hyprland.monitorFor(screen) was evaluated once while the list was empty and never re-runs (monitorFor is an invokable, so the binding doesn't depend on the monitor list). A fix that only repopulates the monitor model, or the Lua fallback alone, won't recover the highlight and scrolling. The widget itself has to look the monitor up reactively.
I applied the lookup from @ploo98's comment above in a cloned widget (live Hyprland.monitors.values by screen name, plus the 500 ms refresh timer while monitorLost). After a real power-off/power-on of the monitor:
22:10:35 qt.qpa.wayland: There are no outputs - creating placeholder screen
22:10:37 gadii.workspaces: monitor HDMI-A-1 missing from Quickshell; refreshing
22:10:42 hyprctl dispatch 'o.workspaces.focus(3, "HDMI-A-1")'
Clicks, scrolling and the active-workspace glyph all work again with no shell restart. Two power-cycles so far (22:07 and 22:10), both recovered.
Diagnosed with Claude Opus 5.5 via Hermes.
@GGD, on the 4.5.0 widget, a monitor returning to Quickshell’s list does not by itself rerun the bar’s lookup. #16394 already makes the lookup react to list changes. Your two power cycles show the clone can recover clicks, scrolling and the highlight with both the lookup change and refresh timer enabled. Their individual effects remain open.
Codex High (GPT-6), Opus 5.5 High and muse-wonder via pi, thinking high checked the sources. The reviewers saw the earlier public diagnosis, and this pass was source-only. The Quickshell patch now conflicts with the current package. This issue should stay open until an updated package is tested on affected hardware with the stock widget, then with #16394 if any of the three symptoms persist.
Additional occurrence on Omarchy 4.5.0-3, Hyprland 0.56.2-4, Quickshell 0.3.2.r7.g2b4501a-1.
A laptop was disconnected from a USB-C hub/dock carrying a Samsung external display and a DisplayLink Elgato Prompter. The remaining output was the internal eDP-1 panel. Occupied workspaces remained visible in the built-in omarchy.workspaces bar widget, but the user could reach them with keyboard shortcuts and not by clicking the bar.
The shell journal around the hotplug event included:
WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
No "attempted to use dangling screen object" entry was found in the journal query used for this occurrence.
Running hyprctl dispatch 'o.workspaces.focus(5, "eDP-1")' successfully switched to workspace 5. After omarchy restart shell, the user explicitly confirmed that clicking workspace numbers worked again. This supports the same stale-screen/widget-reference failure after hotplug, now with undocking and a surviving laptop panel rather than power-cycling the only physical monitor.
No packaged source files were modified. The workspace widget is stock; a separate user-local display-settings panel clone only changes friendly display labels.
The undock report shows workspace clicks failing with eDP-1 as the remaining output, while keyboard switching and an explicit dispatch to that panel still worked. The widget can show occupied workspaces even if its monitor lookup fails. If it happens again, please record whether eDP-1 was enabled while docked, whether the active-workspace glyph and scrolling work, and what command a click on another workspace emits before restarting the shell.
The refreshed Quickshell draft at 5d3bf5c5ec8d98525fff066373dde4e3bff3fc7f passes the conflict check against the current package branch. The issue stays open pending a build from that head and a test with the stock widget on the same dock. Check clicks, the active-workspace glyph, and scrolling separately. Quickshell package draft
GPT-6 High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high checked the report and sources. The reviewers agreed after seeing the earlier diagnosis, so independence is not guaranteed. The worker isolation check failed, so this was a source-only review.
The Quickshell patch, omacom/omarchy-pkgs#3589, no longer conflicts and is ready for review. It's rebased onto the current package (0.3.2.r7.g2b4501a-15, the Quickshell that 4.6.0-rc3 ships) as -16, and the patch file itself is unchanged.
I retested it against 4.6's package with a build from 5d3bf5c5 (x86_64, edge, Qt 6.12.1) and the reproducer from the PR:
- Stock
-15still ends atmonitors=[] focusedMonitor=null, and the next workspace switch isn't tracked. On 4.6, #20622 lets the Super + Space menu open without a monitor entry, but the bar's workspace widget still loses its monitor. -16discards both stale replies and ends atfocusedMonitor=DP-2 activeWorkspace=2in 3 of 3 runs.
The hardware result in the PR comes from the same patch built at the earlier base against stable's Qt 6.12.0. It covers four real input switches with the stock 4.5 widget and without #16394: the bar's highlight and the Super + Space menu kept working. I didn't check clicks and scrolling on their own. I haven't run -16 itself on hardware yet, because it needs Qt 6.12.1 and stable doesn't have it.
Investigated and written up with Claude Code.
The reported Quickshell -16 replay from omarchy-pkgs#3589 at 5d3bf5c5ec8d98525fff066373dde4e3bff3fc7f kept tracking DP-2 and its active workspace in all three runs. The earlier hardware build of the same patch kept the highlight working across four input switches. The replay checked Quickshell’s state. It left stock-bar clicks and scrolling to be tested.
The issue remains open pending repeated reconnects on affected hardware with that exact package build, Qt 6.12.1 and the stock widget. Check switching to a different workspace by click, the highlight and scrolling separately. If Quickshell tracks the monitor and the bar still gets stuck, #16394 makes the widget retry its lookup when the monitor list changes.
GPT-6 High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high checked the sources and agreed on what the replay covers. The reviewers saw the same reports and prior reasoning, so independence is not guaranteed. The worker isolation check failed and this pass ran no tests.