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

Add active/inactive variants of {close,maximize,minimize}-path #70

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

lambdadog
Copy link
Contributor

@lambdadog lambdadog commented Apr 12, 2022

{close,maximize,minimize}-path->{close,maximize,minimize}-{active,inactive}-path

I chose to go ahead and set up a ButtonState enum and change the config options to enum indexed arrays, since there's discussion in #57 about extending the possible states further.

Note that while I haven't implemented it in this PR in the interest of doing one thing at a time, it may be reasonable to get rid of ButtonState and instead have just a FocusState (or focused boolean value, if you're not concerned about the type system insurance from using a dedicated enum I suppose) on each client and moving every active/inactive switched value to be an array[FocusState, t] where t is their type. Then when adding hover states you could just have the button paths' config types be array[FocusState, array[HoverState, string]].

Ashlynn Anderson added 2 commits April 12, 2022 10:49
Also closes code block for frame-left example, which was causing
issues in my editor although it rendered fine on github.
@codic12
Copy link
Owner

codic12 commented Apr 13, 2022

Looks good to me! Thanks, I'll work on adding support for hovered buttons tomorrow a bit.

@codic12 codic12 merged commit 849c9e6 into codic12:main Apr 13, 2022
@codic12
Copy link
Owner

codic12 commented Apr 13, 2022

Ok, so this might just be an issue with my current setup - certainly a really weird one but I think it is. For some reason, both before and after this PR I think, moving windows around after you set the close-active-path is very laggy, in Xephyr and the native X server.

Do you have this issue? I presume not, and opensuse is just being weird with x11 somehow... I definitely wasn't having this issue on my other arch system.

@lambdadog
Copy link
Contributor Author

No, I don't have any notable issues, sorry.

@codic12
Copy link
Owner

codic12 commented Apr 13, 2022

Also, in order to not break compatibility, I plan to re-add after all this is implemented close/minimize/maximize-path, which just sets all the states to the same value.

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.

None yet

2 participants