Merge pull request #22 from ids1024/x11rb

x11: Update `x11rb`
This commit is contained in:
Héctor Ramón 2023-02-27 01:30:21 +01:00 committed by GitHub
commit 45cda23798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -10,5 +10,5 @@ documentation = "https://docs.rs/clipboard_x11"
keywords = ["clipboard", "x11"] keywords = ["clipboard", "x11"]
[dependencies] [dependencies]
x11rb = "0.9" x11rb = "0.11"
thiserror = "1.0" thiserror = "1.0"

View file

@ -5,7 +5,7 @@ pub use error::Error;
use x11rb::connection::Connection as _; use x11rb::connection::Connection as _;
use x11rb::errors::ConnectError; use x11rb::errors::ConnectError;
use x11rb::protocol::xproto::{self, Atom, AtomEnum, Window}; use x11rb::protocol::xproto::{self, Atom, AtomEnum, EventMask, Window};
use x11rb::protocol::Event; use x11rb::protocol::Event;
use x11rb::rust_connection::RustConnection as Connection; use x11rb::rust_connection::RustConnection as Connection;
use x11rb::wrapper::ConnectionExt; use x11rb::wrapper::ConnectionExt;
@ -388,7 +388,7 @@ impl Worker {
&self.context.connection, &self.context.connection,
false, false,
event.requestor, event.requestor,
0u32, EventMask::NO_EVENT,
xproto::SelectionNotifyEvent { xproto::SelectionNotifyEvent {
response_type: 31, response_type: 31,
sequence: event.sequence, sequence: event.sequence,