Skip to content

stackoverlay: switch ClickOverlay to using destroy for cleaning up StackOverlay - #1184

Open
alaviss wants to merge 2 commits into
paperwm:developfrom
alaviss:push-zrupsqtwxmyp
Open

stackoverlay: switch ClickOverlay to using destroy for cleaning up StackOverlay#1184
alaviss wants to merge 2 commits into
paperwm:developfrom
alaviss:push-zrupsqtwxmyp

Conversation

@alaviss

@alaviss alaviss commented Sep 2, 2026

Copy link
Copy Markdown

ClickOverlay was using its own version of destroy for StackOverlay, which misses a few resources allocated by the latter.

Switch to StackOverlay.destroy to simplify the code and avoid resource leaks.

ClickOverlay was re-implementing the destroy() method of StackOverlay,
and its version is vastly out-of-date compared to StackOverlay.destroy.
This could lead to leaking resources that are cleaned up in StackOverlay
but not ClickOverlay.

Call StackOverlay.destroy method directly to avoid this split-brain
problem.
Ensure that the tracked source is always up-to-date to avoid false
clearing by the destroy method.
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