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

Implement relative mouse mode emulation using cursor centering #1614

Open
rdb opened this issue Feb 9, 2024 · 1 comment
Open

Implement relative mouse mode emulation using cursor centering #1614

rdb opened this issue Feb 9, 2024 · 1 comment
Milestone

Comments

@rdb
Copy link
Member

rdb commented Feb 9, 2024

Description

Implement relative mouse mode emulation by using confined mode with automatic cursor centering, if other methods fail.

Use Case

At the moment, if neither libxi nor xxf86dga are installed on Linux, relative mouse does not work. This can be worked around but this is a rare occurrence so developers are not prepared for it.

If we implemented a fallback, developers can always count on the mode working and do not have to implement fallback cases themselves.

@rdb rdb added the enhancement label Feb 9, 2024
@rdb rdb added this to the 1.11.0 milestone Feb 9, 2024
@rdb
Copy link
Member Author

rdb commented Mar 24, 2024

Apparently, cursor warping is not supported on XWayland, making it not a reliable fallback option. So this fallback would only work on proper X.Org. I don't have an X.Org installation so it's hard for me to implement this.

I'm wondering if instead we should be statically linking libXi, or manually implementing those functions somehow.

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

No branches or pull requests

1 participant