Skip to content

feat: implement window toggle functionality for hyprkcs overlay - #75

Merged
kosa12 merged 1 commit into
masterfrom
feature/keyboard-toggle-killactive
May 9, 2026
Merged

kosa12 merged 1 commit into
masterfrom
feature/keyboard-toggle-killactive

Conversation

@kosa12

@kosa12 kosa12 commented May 9, 2026

Copy link
Copy Markdown
Owner

This pull request improves the user experience when launching the hyprkcs overlay by making repeated launches toggle the overlay closed, providing a more intuitive and keyboard-friendly way to dismiss it. Additionally, the code is refactored for clarity and reliability, and new unit tests are added to ensure the correct activation behavior.

User experience improvements:

  • Launching hyprkcs while it is already open now toggles (closes) the existing overlay, making dismissal easier without relying on compositor-specific behavior. (README.md)

Code refactoring and reliability:

  • Introduced the ActivationAction enum and the activation_action function to clearly distinguish between building a new window and closing an existing one, improving code clarity and maintainability. (src/ui/window.rs)

Testing:

  • Added unit tests for the activation logic to ensure correct behavior when toggling the overlay. (src/ui/window.rs)

Fixing issue #74

@kosa12 kosa12 self-assigned this May 9, 2026
@kosa12 kosa12 added the enhancement New feature or request label May 9, 2026
@kosa12
kosa12 merged commit 60195dd into master May 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant