diff --git a/x11/Cargo.toml b/x11/Cargo.toml index 2a2a8cc..8fa396e 100644 --- a/x11/Cargo.toml +++ b/x11/Cargo.toml @@ -10,5 +10,5 @@ documentation = "https://docs.rs/clipboard_x11" keywords = ["clipboard", "x11"] [dependencies] -x11rb = "0.9" +x11rb = "0.11" thiserror = "1.0" diff --git a/x11/src/lib.rs b/x11/src/lib.rs index 346bf51..95247fe 100644 --- a/x11/src/lib.rs +++ b/x11/src/lib.rs @@ -5,7 +5,7 @@ pub use error::Error; use x11rb::connection::Connection as _; 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::rust_connection::RustConnection as Connection; use x11rb::wrapper::ConnectionExt; @@ -388,7 +388,7 @@ impl Worker { &self.context.connection, false, event.requestor, - 0u32, + EventMask::NO_EVENT, xproto::SelectionNotifyEvent { response_type: 31, sequence: event.sequence,