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

Hide vacant tags config option on River #3823

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

thetwistedlogic
Copy link

@thetwistedlogic thetwistedlogic commented Dec 12, 2024

Adds the ability to hide vacant tags on river. Vacant means not occupied and not focused.
image
image

Addresses:
#3790
#2537

buttons_[i].get_style_context()->add_class("focused");
} else {
buttons_[i].get_style_context()->remove_class("focused");
if (hide_vacant && !buttons_[i].get_style_context()->has_class("occupied")) {
Copy link
Author

@thetwistedlogic thetwistedlogic Dec 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit hacky but I'm not sure of a better solution.

Without this extra condition, tags will remain permanently visible as long as they have been focused (even after moving to another tag).

@thetwistedlogic thetwistedlogic changed the title feat: implement hide vacant for river Hide vacant tags config option on River Dec 12, 2024
This fixes an edge case where focused tags would get hidden if all
clients on a tag get killed
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