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

Maintain a collection of "hidden" views #75

Merged
merged 2 commits into from
Nov 6, 2024
Merged

Maintain a collection of "hidden" views #75

merged 2 commits into from
Nov 6, 2024

Conversation

sdilts
Copy link
Collaborator

@sdilts sdilts commented Nov 6, 2024

Introduce the ring-list data structure, which is designed to hold all of the views that aren't currently in a frame. This is roughly equivalent to the window-list data structure in Stumpwm.

Use it to restore the most recently hidden view when a view is removed / closed.

The ring-list object is a circular list that you can add, remove, and
swap items in. There is some confusion over where items should be
added and what moving forward and backward over the list should do,
but it represents the basic principle of what we need. The interface
is the important part, and we can deal with behavior if this doesn't
work out.
+ Add extremely basic tests
Put the non-visible views in the new ring-list data structure so we
can pull them out in the correct order. Use this to restore the most
recently hidden view when a view is removed / closed.
@sdilts sdilts merged commit 2b5a127 into master Nov 6, 2024
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.

1 participant