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 X11 extensions using x11rb instead of Xlib #2968

Merged
merged 7 commits into from
Aug 29, 2023

Conversation

notgull
Copy link
Member

@notgull notgull commented Jul 21, 2023

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

Ports the code for the XInput and XRandr to use x11rb instead of Xlib.

Draft because there's still more to do, and also I seem to have broken raw event inputs.

@notgull notgull marked this pull request as ready for review July 21, 2023 22:54
@notgull notgull requested a review from kchibisov as a code owner July 21, 2023 22:54
@notgull
Copy link
Member Author

notgull commented Jul 21, 2023

Weirdly, it looks like device handling is pretty tightly kneaded into Xlib's event handling, so I can't take it out until #2767 merges. So I guess what's here is what's here.

Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

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

Could we have a one commit per extension change? So XRandr and Xinput separatelly?

src/platform_impl/linux/mod.rs Outdated Show resolved Hide resolved
src/platform_impl/linux/x11/xdisplay.rs Outdated Show resolved Hide resolved
src/platform_impl/linux/x11/util/randr.rs Outdated Show resolved Hide resolved
src/platform_impl/linux/mod.rs Outdated Show resolved Hide resolved
src/platform_impl/linux/x11/mod.rs Outdated Show resolved Hide resolved
src/platform_impl/linux/x11/mod.rs Outdated Show resolved Hide resolved
notgull and others added 7 commits August 27, 2023 09:35
Removes Xlib code by replacing it with the x11rb equivalent.

Signed-off-by: John Nunley <dev@notgull.net>
Signed-off-by: John Nunley <dev@notgull.net>
Transfers more functionality from Xlib to x11rb
It seems that Xlib's event code ignores device events if I don't do
this. Once rust-windowing#2767 is merged we can work around this issue.
Signed-off-by: John Nunley <dev@notgull.net>
Signed-off-by: John Nunley <dev@notgull.net>
@kchibisov kchibisov merged commit bb9b629 into rust-windowing:master Aug 29, 2023
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants