Skip to content

feat(window): ask for activation tokens and activate with one - #69

Merged
Ericky14 merged 1 commit into
masterfrom
feat/window-activation-token
Oct 30, 2026
Merged

Ericky14 merged 1 commit into
masterfrom
feat/window-activation-token

Conversation

@Ericky14

@Ericky14 Ericky14 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

An iced app cannot let another app it starts, or asks for something, take focus. window::gain_focus does nothing on Wayland, and iced has no way to get or use an xdg-activation token. So an open Chord stays behind Hive when Hive's "Open projects in Chord" asks for it.

Fix

Testing

  • cargo clippy -p iced_winit -p iced_runtime --all-features -D warnings and their tests pass.
  • With playtron-os/hive#51 and playtron-os/chord#57 in a nested cosmic-comp, Chord activated with the token Hive got and came to the front from behind Hive and from minimized.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Ericky14
Ericky14 merged commit 484aa05 into master Oct 30, 2026
8 checks passed
@Ericky14
Ericky14 deleted the feat/window-activation-token branch October 30, 2026 15:30
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.

1 participant