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

--ignore-scrolling does not work with gentoo #58

Closed
toniz4 opened this issue Aug 13, 2020 · 16 comments · Fixed by #65
Closed

--ignore-scrolling does not work with gentoo #58

toniz4 opened this issue Aug 13, 2020 · 16 comments · Fixed by #65

Comments

@toniz4
Copy link

toniz4 commented Aug 13, 2020

On gentoo the flag --ignore-scrolling apparently does not make a difference, i tried compiling from the repo and got the same problem. I'm using a trackpoint, scrolling with the middle button, but the same setup was working in arch just fine.

@Airblader
Copy link
Owner

Can you verify using xev which buttons are being pressed? It could be that it used something other than 4 and 5.

@toniz4
Copy link
Author

toniz4 commented Aug 13, 2020

the middle button only notify a button release event, and when i'm scrolling,i'm only getting 4 and 5 events

@chelovechishko
Copy link
Contributor

chelovechishko commented Aug 14, 2020 via email

@Airblader
Copy link
Owner

Indeed, this seems to be the same issue, thanks.

@toniz4 Can you try using --jitter 1?

@toniz4
Copy link
Author

toniz4 commented Aug 14, 2020

with --jiter 1 with the mouse works as intended, but i have the same issue with the trackpoint

@Airblader
Copy link
Owner

Can you run the same experiments with the trackpoint? Are we sure there are no non-scrolling events?

@toniz4
Copy link
Author

toniz4 commented Sep 25, 2020

sorry for the late response, my trackpoint reports button 6 events when scrolling "harder". It might be a libinput bug, but i made a pr if you are willing to merge it.

Thanks!

@Airblader
Copy link
Owner

@toniz4 If you do end up filing a bug please feel free to link it here for context. :-)

@chelovechishko
Copy link
Contributor

chelovechishko commented Sep 25, 2020 via email

@toniz4
Copy link
Author

toniz4 commented Sep 25, 2020

@chelovechishko apparently for me too, after some tinkering i discovered that i have to ignore button 7 too. But when i try to debug this with xev i don't see button 7/6 when scrolling horizontally only buttons 4/5. Disabling HorizontalScrolling in the xorg configs works too, but i use horizontal scrolling sometimes. Weird stuff. Do you know any better way to debug this?

@Airblader
Copy link
Owner

I forgot about this earlier, but instead of ignore scrolling you can use ignore buttons to specify other buttons to ignore, see #41. That should give you a good workaround.

@chelovechishko
Copy link
Contributor

chelovechishko commented Sep 25, 2020 via email

@toniz4
Copy link
Author

toniz4 commented Sep 25, 2020

I did some research and apparently button 6 and 7 is for horizontal scrolling, as the libinput(4) manpage says:

BUTTON MAPPING
X clients receive events with logical button numbers, where 1, 2, 3 are usually
interpreted as left, middle, right and logical buttons 4, 5, 6, 7 are usually
interpreted as scroll up, down, left, right. The fourth and fifth physical but‐
tons on a device will thus send logical buttons 8 and 9.

@Airblader
Copy link
Owner

Yeah, but I'd like to not change the default behavior here since this can be achieved with another flag already anyway.

@mjkalyan
Copy link
Contributor

Should probably close this issue as it's a result of sending other button events and not a bug. --ignore-scrolling works fine for me (on gentoo, not that it would matter here) with --jitter 1

Airblader added a commit that referenced this issue Nov 16, 2020
@Airblader
Copy link
Owner

I'll close this, but I'll make sure to mention this in the man page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants