Skip to content

The focused window's box changes shape while the pointer is over a workspace widget #626

Closed

Description

@M4n0x

What happens

With focusedWindowStyle set and magnification off, the box behind the focused window's icon shrinks while the pointer is anywhere over the workspace widget, and grows back when it leaves. With the default 14 pt icon it goes from 20 × 18 pt to 18 × 14 pt, so the box changes shape on every hover.

Steps to reproduce

  1. Use a workspace widget with "workspace": { "windows": true, "focusedWindowStyle": {} } and no magnification.
  2. Move the pointer over the widget, then away.

Expected

The box keeps its size and shape on hover. It should only hug the icon when magnification is on and icons zoom, which is why the shrink exists.

Environment

  • StableBar 0.15.0-beta.20261113075115.1005
  • macOS 27.2.1
  • AeroSpace, Tonhalle Line theme, "windows": true, magnification not set

Evidence

Measured on two captures of the same bar: 20 × 18 pt with the pointer away, 18 × 14 pt with it over the widget. Nothing else in the configuration changes between them.

Diagnosis

WorkspaceView passes magnifying: magnifier.isActive to FocusedWindowHighlight (Sources/StableBar/BarView.swift). The magnifier tracks every hover through onContinuousHover, whether magnification is set or not, so isActive turns true on any hover. FocusedWindowHighlight then drops its outset from 3 × 2 pt to 2 × 0 pt. It should count as magnifying only when magnification is set.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 13, 2026
  2. stablebar-releases commented on Nov 14, 2026

    @stablebar-releases

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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions