Repository navigation
hyprland: add focus follows mouse toggle - #3755
Conversation
|
There is similar controls for other wms, niri being the one I use which has a focus_follows_mouse setting. If this gets added for hyprland, implementations for other compositors should be added for completeness and feature parity across compositors. |
|
/claude review |
Claude reviewNo issues found. |
Agreed, but I only have hyprland in my env, so may need help from the community😊 |
|
This looks good, thanks for the PR! I will have a follow up parity option on mango and niri inbound. |
Description
Add Focus follows mouse to Settings → Input → Mouse & touchpad on Hyprland. Enabling writes
follow_mouse = 1; disabling writesfollow_mouse = 0through the existing DMS input Lua generator and reload flow.An untouched setting inherits the current compositor mode instead of changing existing configurations. Reset removes the override. Read the live mode at startup and on
configreloaded, without polling. Hide the row when the option is unsupported and require the existing writable input include and active Lua config.This controls
input:follow_mouseonly. Hyprland's independentinput:float_switch_override_focuscan still change focus between tiled and floating windows when the toggle is off; that behavior was checked locally and is documented, but is outside this change.Three new tests cover generated overrides, live mode reads, and persistence/reset. Regenerate the settings search index; leave translation catalogs to the maintainer sync.
AI disclosure: a meaningful part of the implementation and this description was generated with OpenAI Codex. The submitted diff was reviewed and tested locally.
Type of change
Screenshots / video
Local preview on Hyprland 0.56.2. The screenshot includes a local Chinese translation of the two new strings; translation catalog edits are not part of this PR.
Checklist
make test-qmlpasses (300 logic tests, including 3 new tests, and 64 Qt tests). Built and ran the shell locally; checked the saved setting and effectivefollow_mouseoption.I18n.tr()with translator contextmake lint-qmlpasses (3 entrypoints);git diff --checkpassesNo Go changes.