-
Notifications
You must be signed in to change notification settings - Fork 47
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
Chromium can't differentiate between pen tip and eraser input #130
Comments
We follow the standard linux convention of sending For the fun of it I made iptsd not send the To me this means that chromium can correctly detect the |
So I took a dive into the Chromium source code. The TL;DR; is: I have no idea what they are doing. So Chromium has code which handles the While the X11 backend seems to ignore touch events entirely (which makes sense, because X11 is from the 80's and doesn't know touchscreens or pens), the Wayland backend does have support for them. But: The only code that can handle the stylus tools appears to use a Wayland protocol that literally exists nowhere, except for the Chromium repository. Further digging revealed, that Chromium includes a Wayland compositor! Because of couse it would. So my assumption is that the only way that Chromium can interpret these stylus tool events on a linux based system is by running Chromium bare-metal as a Wayland compositor, having it translate all the standard events from the evdev API to its own custom API, and then run a second Chromium as a Wayland client of this compositor. Which is probably exactly what ChromeOS is doing... |
I am going to close this as I don't believe this is an iptsd issue. |
First, sorry if this is the wrong repository.
The pen and eraser support works perfectly in xournal++. Now, I tried using Obsidian with the excalidraw extension to make notes. After trying it out, I noticed that the eraser is not working.
I opened an issue in their repository, and they suggested that I should try this command:
The command reported that chromium detects both inputs as button 1. Under windows, the pen tip is recognized as button 1 and the eraser as button 32.
The text was updated successfully, but these errors were encountered: