Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DesktopIntegration/focus_window: Shake window and bell if already focused #2006

Merged
merged 4 commits into from
Aug 8, 2024

Conversation

leolost2605
Copy link
Member

Sounds a bell and shakes the window if trying to focus an already focused window.

The shake is taken from the polkit dialog. However we could alternatively do something like a more relaxed bounce or similar.

Fixes #1978

@leolost2605 leolost2605 requested a review from a team August 4, 2024 17:39
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Yo this is so good!

src/DesktopIntegration.vala Outdated Show resolved Hide resolved
@leolost2605
Copy link
Member Author

I'm currently scaling the offset by which the window is shaken is that right?

And we can easily change duration, easing, etc. so if anybody has suggestions go ahead because I dont know what looks good :)

@leolost2605 leolost2605 requested review from lenemter and tintou August 8, 2024 16:56
@tintou
Copy link
Member

tintou commented Aug 8, 2024

Really glad you did it, it can be tweaked afterwards!

@danirabbit danirabbit enabled auto-merge (squash) August 8, 2024 20:36
@danirabbit danirabbit merged commit 7314387 into main Aug 8, 2024
2 of 4 checks passed
@danirabbit danirabbit deleted the leolost/shake-focused-window branch August 8, 2024 20:37
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.

Bounce window when focusing an already focused window
4 participants