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

fixes #9322, take active_area_size into account when sending tip event #9325

Merged
merged 5 commits into from
Feb 9, 2025

Conversation

clamydo
Copy link
Contributor

@clamydo clamydo commented Feb 4, 2025

Describe your PR, what does it fix/add?

Fixes #9322. Also fixes #9132 (comment) (so relative_input = true has priority).

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

The transformation basically was just copied over from void CInputManager::onTabletAxis.

So perhaps the transformation should be applied instead in warpAbsolute? I'm not familiar with the codebase. In this revision, the transformation is applied at any position changing event (as far as I understand).

Note that when relative_input = true is set active_area_* is ignored. Perhaps in the future both could be combined (but I think the value in having both is low).

Is it ready for merging, or does it need work?

It fixes the bug and works for me. But would be cool if somebody could check it; especially if it does not introduce additional issues.

vaxerski
vaxerski previously approved these changes Feb 4, 2025
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
@clamydo
Copy link
Contributor Author

clamydo commented Feb 5, 2025

I've refactored the transformation in its own function so the code is shared. This makes sure the same transformation is used for both events.

Does this work for you?

@clamydo clamydo requested a review from vaxerski February 5, 2025 13:20
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
@clamydo clamydo requested a review from vaxerski February 5, 2025 15:45
@clamydo clamydo force-pushed the fix_pen_cursor_jump branch from 81c3a76 to c541e7f Compare February 6, 2025 14:11
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than that nit, gtg

src/managers/input/Tablets.cpp Outdated Show resolved Hide resolved
@clamydo clamydo requested a review from vaxerski February 8, 2025 10:36
@vaxerski vaxerski merged commit 56f6f61 into hyprwm:main Feb 9, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: Cursor jumps vertically when reducing y-active area size
3 participants