Skip to content

feat(applets): add destroy tooltip popup action#1138

Merged
wash2 merged 1 commit into
pop-os:masterfrom
hammerlink:feature/add-destroy-tooltip-popup
Apr 3, 2026
Merged

feat(applets): add destroy tooltip popup action#1138
wash2 merged 1 commit into
pop-os:masterfrom
hammerlink:feature/add-destroy-tooltip-popup

Conversation

@hammerlink
Copy link
Copy Markdown
Contributor

@hammerlink hammerlink commented Feb 21, 2026

Problem

When an applet is minimized, its tooltip remains visible after activating the minimized button.
After the applet button is clicked it gets removed and it is no longer capable of detecting mouse movements.

Solution

After the applet button is removed destroy the tooltip popup.

At the moment the cosmic-applet-minimize cannot access the WindowId of the popup.
Therefor this PR exposes a Surface Action to destroy the tooltip popup on Window TOOLTIP_WINDOW_ID.
An alternative can be to expose TOOLTIP_WINDOW_ID directly instead of adding a new Surface action. Will change if wanted.

Related to pop-os/cosmic-panel#458
Needed for pop-os/cosmic-applets#1324

Checks

  • I have disclosed use of any AI generated code in my commit messages.
    • If you are using an LLM, and do not fully understand the changes it is making to the code base, do not create a PR.
    • In our experience, AI generated code often results in overly complex code that lacks enough context for a proper fix or feature inclusion. This results in considerably longer code reviews. Due to this, AI authored or partially authored PRs may be closed without comment.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.

Comment thread src/app/cosmic.rs Outdated
@hammerlink hammerlink force-pushed the feature/add-destroy-tooltip-popup branch from d975166 to 3e710ff Compare March 23, 2026 20:31
@hammerlink hammerlink requested a review from wash2 March 23, 2026 20:37
wash2
wash2 previously approved these changes Apr 2, 2026
@wash2
Copy link
Copy Markdown
Contributor

wash2 commented Apr 2, 2026

Ahh this has conflicts now, could you rebase and update the feature gate? I'll re-approve and merge after that.

This commit adds a new surface action to explicitly destroy the tooltip
popup on `TOOLTIP_WINDOW_ID`, allowing proper cleanup when minimizing
applets.
@hammerlink hammerlink force-pushed the feature/add-destroy-tooltip-popup branch from 3e710ff to 8dccedb Compare April 3, 2026 06:20
@wash2 wash2 merged commit 97a805e into pop-os:master Apr 3, 2026
15 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.

2 participants