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

X.L.NoBorders: Listen to DestroyWindowEvents and garbage collect #914

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

liskin
Copy link
Member

@liskin liskin commented Nov 23, 2024

Description

Previously, it was necessary to use borderEventHook to make sure the alwaysHidden/neverHidden lists are garbage collected when a window is destroyed, but this was largely undocumented. Since xmonad v0.17.0, the DestroyWindowEvent is broadcast to layouts, so we can just use that instead and deprecate the event hook.

Checklist

  • I've read CONTRIBUTING.md

  • I've considered how to best test these changes (property, unit, manually, ...) and concluded:
    I'll be running with this for a while and see if everything's okay but it's pretty trivial, it should be okay.

  • I updated the CHANGES.md file

Previously, it was necessary to use `borderEventHook` to make sure the
`alwaysHidden`/`neverHidden` lists are garbage collected when a window
is destroyed, but this was largely undocumented. Since xmonad v0.17.0,
the DestroyWindowEvent is broadcast to layouts, so we can just use that
instead and deprecate the event hook.
@slotThe slotThe merged commit 0dc8796 into xmonad:master Nov 24, 2024
20 checks passed
@liskin liskin deleted the noborders-resetborder branch November 24, 2024 12:25
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.

3 participants