Skip to content

Conversation

@sebastianlay
Copy link
Contributor

This adds a little shake to the launcher icon when a new window cannot be opened.
The code for the animation is mostly a copy of the animation in the PolkitDialog:
https://github.com/elementary/pantheon-agent-polkit/blob/main/src/PolkitDialog.vala#L287

Fixes #305

@lenemter lenemter requested a review from a team August 9, 2025 14:35
@sebastianlay sebastianlay force-pushed the add-shake-on-denied-window branch from 189eb01 to 1fe5aeb Compare August 9, 2025 19:13
@sebastianlay
Copy link
Contributor Author

Sure thing. I have implemented the two suggestions and squashed the changes.

@sebastianlay sebastianlay force-pushed the add-shake-on-denied-window branch from 1fe5aeb to 7abcdca Compare August 9, 2025 21:14
Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

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

You also need to remove animation in cleanup method to avoid memory leak

@sebastianlay sebastianlay force-pushed the add-shake-on-denied-window branch from 7abcdca to 177f9b9 Compare August 10, 2025 17:39
@sebastianlay sebastianlay force-pushed the add-shake-on-denied-window branch from 504fd5c to d368132 Compare August 10, 2025 17:41
@sebastianlay
Copy link
Contributor Author

Good point. I have added the animation to the cleanup method and rebased the branch onto main.

@lenemter lenemter moved this to Needs review in OS 8.1.0 Aug 11, 2025
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.

Looks good to me. Nice work!

@danirabbit danirabbit requested a review from lenemter August 14, 2025 16:49
Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

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

LGTM

@lenemter lenemter merged commit aabd437 into elementary:main Aug 15, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from Needs review to Done in OS 8.1.0 Aug 15, 2025
@sebastianlay sebastianlay deleted the add-shake-on-denied-window branch August 15, 2025 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Shake app icon when new window can't be opened

3 participants