Skip to content

Clicking a window that OmniWM still lists after its app closed it shows "OmniWM: not_found" #651

Closed

Description

@Jonathanm10

What happens

With the OmniWM workspace source and workspace.windows: true, some apps keep their window when you close it. Dayflow does this: macOS keeps the window offscreen. Sometimes OmniWM keeps listing that window in query windows (isVisible: false, hiddenReason: "workspace-inactive"), so the widget still shows its icon. Clicking the icon runs omniwmctl window focus <id>, which fails with not_found. The bar shows "OmniWM: not_found", and the window doesn't come back.

Steps to reproduce

  1. Use OmniWM with a workspace widget that has "workspace": { "windows": true }.
  2. Open Dayflow, then close its window with the red button. The app keeps running.
  3. If OmniWM still lists the window (it doesn't every time), its icon stays on its workspace.
  4. Click the icon.

Expected

The window shows again, as it does when you click the app's Dock icon.

Environment

  • StableBar 0.15.0
  • macOS 27.2.1
  • OmniWM 0.8.0 (protocol 22)

Evidence

  • omniwmctl query windows listed Dayflow's window 20370 on workspace 4 with isVisible: false and hiddenReason: "workspace-inactive", while macOS reported the window offscreen.
  • omniwmctl window focus <that id> --format json returned {"ok": false, "kind": "window", "code": "not_found"}.
  • open -b teleportlabs.com.Dayflow and NSWorkspace.openApplication both brought the same window 20370 back onscreen and focused.

Diagnosis

WorkspaceStore.focus(_:) in Sources/StableBar/Workspaces.swift runs window focus for OmniWM. When it fails, run(_:about:) reads the workspaces again and keeps the error because the window is still listed (#521). The listing comes from OmniWM, so the item and the error stay.

Related

Triaged by Claude Code (claude-opus-5-5).

Activity

  1. added
    needs-triage
    on Nov 14, 2026
  2. added a commit that references this issue on Nov 14, 2026
    5dda2f4
  3. added
    bug
    P2
    and removed
    needs-triage
    on Nov 14, 2026
  4. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions