-
-
Notifications
You must be signed in to change notification settings - Fork 737
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
Attempt to fix force_zero_scaling for tablet and touch #3644
Attempt to fix force_zero_scaling for tablet and touch #3644
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's it
also, needs a clang-format |
Done. |
you resolved conversations without addressing them |
Sorry, I do not understand what you want me to do. Be kind. |
in both cases your calculations are wrong and I commented the correct formulas |
corresponds, for me, to The other one is more convoluted due to the use of I tested the code (and I am actually using the modified version) and it seems to work (I admit this is not a proof). I did tests with |
that is correct |
Ok, so should I consider the code is now ok and resolve the conversations ? |
well, no, you are still calculating it differently and I am pretty sure it is wrong |
I'll test it on my laptop tomorrow and edit myself. But it definitely is wrong |
this fixes both my comments, and works properly. |
Done. The last commit contains your patch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
* Attempt to fix force_zero_scaling for tablet and touch for XWayland apps. * Formated using clang-format. * Simpler way to compute touch origin.
Describe your PR, what does it fix/add?
Tries to fix tablet and touch events not scaled back (mouse is OK) when using
force_zero_scaling
on XWayland windows and output scale is not 1. (Fixing #3573 )Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
My knowledge of the code base and event propagation mechanisms of Hyprland is really limited. I hope I haven't forgotten anything.
Is it ready for merging, or does it need work?
It needs to be thoroughly tested. I'm currently using it with Krita (which doesn't support Wayland) and I've done some tests with xev to check that mouse, tablet and touch positions match.