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.A.DynamicProjects: No longer autodelete dynamic projects #903

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

jackroi
Copy link
Contributor

@jackroi jackroi commented Aug 31, 2024

Description

No longer autodelete projects when switching to another project from an empty workspace. This fixes #902 where static workspaces would be deleted when switching to a dynamic project. Moreover, it's a more intuitive behaviour, where the user can decide when to close a project.

I considered adding a function to delete projects, but upon further reflection, I realized it's unnecessary and could cause issues. In fact, the only projects stored in the state are those statically defined in xmonad.hs (the truly dynamic projects are just dynamic workspaces), and deleting them would render them unusable.
To close projects, the existing removeWorkspace function (and similar) from the DynamicWorkspaces module already provides the needed functionality (delete the workspace associated to a project). So, I also briefly documented how to close projects.

Checklist

  • I've read CONTRIBUTING.md

  • I've considered how to best test these changes (property, unit,
    manually, ...) and concluded: Manually: seems to work fine.

  • I updated the CHANGES.md file

Fixes xmonad#902 by no longer deleting projects on switch, as it is more confusing than useful.
Describe how to close projects and the output of `currentProject` function.
@geekosaur geekosaur merged commit 1e5fcb1 into xmonad:master Sep 4, 2024
20 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.

X.A.DynamicProjects removes current static workspace if empty when switching to a project
2 participants