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

Update to latest x11rb #2231

Merged
merged 2 commits into from
Jul 25, 2022
Merged

Update to latest x11rb #2231

merged 2 commits into from
Jul 25, 2022

Conversation

psychon
Copy link
Contributor

@psychon psychon commented Jul 24, 2022

This PR updates to the latest version of x11rb, getting rid of one old version of nix in the dependency tree.

While doing this, I noticed a comment referring to an x11rb issue that was already fixed two years ago and released in v0.7.0. Thus, the x11rb version you are using should already provide everything that is needed. CC @jneem FYI

psychon added 2 commits July 24, 2022 11:04
The only necessary change was in error handling: X11Error now contains
more information about the request that caused the error. Namely, the
name of its X11 extension is saved in an Option<String> and this is not
Copy, so we need to .clone().

Signed-off-by: Uli Schlachter <[email protected]>
x11rb was split into two crates, x11rb and x11rb-protocol. This is
pretty transparent for us except that x11rb::resource_manager::Database
is now a re-export of x11rb_protocol::resource_manager::Database and
does not have a new_from_default() associated method. Thus, we have to
switch to x11rb::resource_manager::new_from_default() for the same
functionality.

Signed-off-by: Uli Schlachter <[email protected]>
@xStrom xStrom added the shell/x11 concerns the X11 backend label Jul 24, 2022
@xStrom xStrom merged commit 235d721 into linebender:master Jul 25, 2022
@psychon psychon deleted the update-x11rb branch July 25, 2022 19:35
xarvic pushed a commit to xarvic/druid that referenced this pull request Jul 29, 2022
* Update to x11rb 0.9.0

The only necessary change was in error handling: X11Error now contains
more information about the request that caused the error. Namely, the
name of its X11 extension is saved in an Option<String> and this is not
Copy, so we need to .clone().

Signed-off-by: Uli Schlachter <[email protected]>

* Update to x11rb 0.10

x11rb was split into two crates, x11rb and x11rb-protocol. This is
pretty transparent for us except that x11rb::resource_manager::Database
is now a re-export of x11rb_protocol::resource_manager::Database and
does not have a new_from_default() associated method. Thus, we have to
switch to x11rb::resource_manager::new_from_default() for the same
functionality.

Signed-off-by: Uli Schlachter <[email protected]>
xarvic pushed a commit to xarvic/druid that referenced this pull request Jul 29, 2022
* Update to x11rb 0.9.0

The only necessary change was in error handling: X11Error now contains
more information about the request that caused the error. Namely, the
name of its X11 extension is saved in an Option<String> and this is not
Copy, so we need to .clone().

Signed-off-by: Uli Schlachter <[email protected]>

* Update to x11rb 0.10

x11rb was split into two crates, x11rb and x11rb-protocol. This is
pretty transparent for us except that x11rb::resource_manager::Database
is now a re-export of x11rb_protocol::resource_manager::Database and
does not have a new_from_default() associated method. Thus, we have to
switch to x11rb::resource_manager::new_from_default() for the same
functionality.

Signed-off-by: Uli Schlachter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shell/x11 concerns the X11 backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants