Skip to content

Fix panel opening on the active macOS Space - #188

Merged
validatedev merged 2 commits into
robinebers:mainfrom
AdamAmr05:fix-panel-active-space
Feb 17, 2026
Merged

validatedev merged 2 commits into
robinebers:mainfrom
AdamAmr05:fix-panel-active-space

Conversation

@AdamAmr05

@AdamAmr05 AdamAmr05 commented Feb 16, 2026 •

Copy link
Copy Markdown

Description

Fix macOS Space behavior so the OpenUsage panel opens in the currently active Space, before when you pressed it in another active space it just opened it in the first one not the active one you are in.

Root Cause

The panel collection behavior used:

  • can_join_all_spaces()
  • stationary()

This caused the panel to appear in the wrong Space for some users.

Fix

Updated panel collection behavior in /Users/adamamr/openusage/src-tauri/src/panel.rs to:

  • move_to_active_space()
  • keep full_screen_auxiliary()

Validation

  • bun run build passed
  • bun run test --run passed
  • Manual verification:
    • From Space 3/4, tray click opens panel in current Space
    • Switching Space still closes panel (existing behavior)

Checklist

  • [yes] I read CONTRIBUTING.md
  • [yes] My PR targets the main branch
  • [yes] I did not introduce new dependencies without justification

Summary by cubic

Fixes a macOS issue where the OpenUsage panel could open in a different Space. It now opens in the active Space when triggered.

  • Bug Fixes
    • Replaced can_join_all_spaces() + stationary() with move_to_active_space(); kept full_screen_auxiliary().
    • Synced with main; build/tests pass; tray click opens in current Space; Space switch still closes the panel.

Written for commit a782533. Summary will update on new commits.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@davidarny
davidarny self-requested a review February 17, 2026 06:39

@davidarny davidarny left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@davidarny
davidarny force-pushed the fix-panel-active-space branch from a6654c6 to fd86cde Compare February 17, 2026 06:40
@validatedev
validatedev self-requested a review February 17, 2026 08:59

@validatedev validatedev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM also! Thank you.

@validatedev
validatedev merged commit 3997b9a into robinebers:main Feb 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants