omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Workspace indicator stuck showing phantom workspaces after rapid Super+number presses

Open mayaanhafeez opened this issue 3 months ago • 1 comments

Description

Rapidly pressing Super+ in a random order (e.g. Super then 1 2 3 4 4 5 6 7 8 9 0 very fast) breaks the bar's workspace indicator. The Omarchy shell (Quickshell) workspace widget gets stuck showing workspaces that don't exist / are empty and non-persistent. In my case it was stuck showing workspace "3" as active, and "9" as visible, even though hyprctl workspaces reports no workspace 3 or 9 and they have no windows.

Switching workspaces still works correctly via keyboard, but the bar indicator no longer reflects the real active workspace, so there is no reliable visual indicator of the current workspace.

Expected Behavior

The workspace indicator should always reflect Hyprland's actual workspace state, even after rapid / overlapping workspace-switch dispatches. Phantom non-persistent, empty workspaces should not remain shown in the indicator.

Steps to Reproduce

  1. Spam Super + number keys in a random, very fast order, e.g. Super then 1 2 3 4 4 5 6 7 8 9 0.
  2. Observe the bar's workspace widget.
  3. Note it can get stuck showing a workspace number (e.g. 3) as active, and an empty non-persistent workspace (e.g. 9) as visible.
  4. Confirm via hyprctl workspaces -j that those workspaces are not actually present/active.
  5. Switching workspaces with Super+number still changes the real workspace, but the indicator stays stale.

A omarchy restart shell (or omarchy refresh shell) restores the correct indicator, suggesting the widget's internal workspace tracking desyncs from Hyprland during rapid events.

System Details

  • Omarchy version: 4.0.1-1 (channel: stable)
  • Hyprland: 0.56.2 (commit efb50993)
  • Shell widget: omarchy.workspaces (Workspaces.qml) — "Workspace number indicators"
  • CPU: Intel Core i7-3520M
  • GPU: Intel HD Graphics 4000 (Ivy Bridge) + NVIDIA GF117M
  • Monitors: LVDS-1 (built-in) and VGA-1 (external) — both active
  • Package set last upgraded: Thursday, August 27 2026

Diagnostics

Note: the omarchy debug command referenced in the bug-report guide does not exist in this version (omarchy debug -> "Unknown Omarchy command"), so diagnostics were gathered manually.

hyprctl workspaces -j at time of bug (only workspaces 1 and 2 actually exist; no 3 or 9):

[{"id":1,"name":"1","monitor":"VGA-1","windows":1,"ispersistent":true},
 {"id":2,"name":"2","monitor":"LVDS-1","windows":0,"ispersistent":false}]

Capture

Screenshot of the stuck indicator (workspace 3 shown active, 9 shown visible): /home/arch/Pictures/screenshot-2026-08-28_11-11-16.png

(github: please drag-drop attach — gh cannot upload media)

mayaanhafeez avatar Aug 28 '26 17:08 mayaanhafeez

This is fixed by #8794, which is open and waiting on the maintainer. Workspaces.qml is unchanged from 4.0.1 to current quattro, so the bug is still live there.

That pull request was reproduced on a worker VM built from the Omarchy ISO, with two outputs like yours. After 360 overlapping workspace switches, quattro left the bar marking the wrong workspace and listing workspaces Hyprland no longer had, in 3 of 3 runs. It stayed wrong through later switches until the shell restarted. With #8794 it was correct in 3 of 3 runs. The change gives the widget a fixed set of ten buttons instead of rebuilding them on every workspace create and destroy.

A likely reason it never recovers on its own: Hyprland 0.56.2 drops an event-socket client once 64 events are queued for it (src/managers/EventManager.cpp), and Quickshell 0.3.1 does not reconnect when that happens (src/wayland/hyprland/ipc/connection.cpp). From then on the shell's whole view of Hyprland is frozen, which matches switching still working while the indicator stays stale. Rebuilding the buttons on every event slows the shell enough to fall that far behind. This is inferred from source, not observed. If it happens again before #8794 lands, two log lines would confirm it: Socket2 fd ... overflowed event queue, removing in Hyprland's log and Hyprland event socket disconnected in the shell's.

This is not a duplicate of #8183 (each monitor's bar marking the globally focused workspace) or #10187 (moving a workspace between monitors). Both are in the same widget, but the triggers and causes are different.

Diagnosed by Claude Opus 5.5. The second opinion came from Codex Medium. It agreed with the diagnosis and that this is not a duplicate, and it found the socket-overflow mechanism above, which I then checked in both projects' source. Its agreement on the rest is not independent: it could read the earlier review.

omarchybot avatar Oct 09 '26 06:10 omarchybot