Repository navigation
Bypass Homerow-generated events - #1358
Merged
Merged
Conversation
LinearMouse was rewriting Homerow synthetic scroll events, which discarded Homerow scroll speed and Dash multiplier. Keep Homerow events out of the transformation pipeline while preserving existing Shottr compatibility and rejecting unknown sources.
Collaborator
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Related to nchudleigh/homerow#109
User impact
Homerow implements keyboard scrolling by posting synthetic scroll-wheel events. When LinearMouse processes those events again, the visible Homerow settings remain unchanged but their runtime effect is lost.
Root cause
GlobalEventTapreads the originating PID from theeventSourceUnixProcessIDfield on each captured event and passes it toEventTransformerManager. The manager resolves that PID to an application bundle identifier.Unless the global bypass option is enabled or the source bundle identifier is in the compatibility bypass set, LinearMouse routes the event through its normal transformation pipeline. That behavior is correct for physical input, but it also transforms the scroll events that Homerow has already calculated from its
scroll-px-per-msanddash-speed-multipliersettings.The global Bypass events from other applications setting fixes the symptom because it returns a no-op transformer for all source-tagged events. Requiring that broad setting is unnecessary because the conflict is specific and the manager already has a targeted bypass mechanism for applications such as Shottr.
Resolution
Add
com.superultra.Homerowto the existing source-application bypass set. Homerow-generated events then use the no-op transformer path and retain their original scroll deltas.Extract the bundle-identifier decision into a named predicate and cover these cases:
cc.ffitch.shottrbypass.com.superultra.Homerow.Scope and compatibility