Skip to content

Added focus_on_click functionality #217

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

a0405u
Copy link

@a0405u a0405u commented May 24, 2025

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.

  • Added focus_on_click command that enables the feature, it defaults to false.
  • Added focus_button command to select the button you want to work as focusing one, default: 1.
  • Added internal functions that grab and ungrab buttons on a window.
  • Added functionality to detect window clicks if 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.

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