Added focus_on_click functionality #217
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solved another issue I mentioned. It was depressing that such a good wm had issues with pointer focus because of sxhkd, so I added functionality to manage focus on click internally. I think it goes well with other move and resize features that are a part of wm. Maybe it would be better to fix the issue with sxhkd itself but I'm not sure if it's possible.
focus_on_click
command that enables the feature, it defaults tofalse
.focus_button
command to select the button you want to work as focusing one, default:1
.focus_on_click
is enabled.Focus button feature might be superfluous, but I've included it in case of special preferences. If we leave this feature it might be a good idea to propagate this button to decoration manipulation as well.