diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ef388b8c08..2f51a2e3875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - - various authors +## [1.4.0] - 2024-04-23 - various authors +### Added + - `BaseEvent::is_from_send_event` (#262) + - feature `libxcb_v1_14` (enabled by default) (#250) + +### Fixed + - Special event API (#261) + - DisplayInfo members visibility (#263) + ## [1.3.0] - 2023-12-09 - various authors ### Added - add `Connection::poll_for_reply` and `Connection::poll_for_reply_unchecked` (#245) diff --git a/Cargo.toml b/Cargo.toml index c37f25886d2..31a80f7809b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xcb" -version = "1.3.0" +version = "1.4.0" authors = [ "Remi Thebault " ] description = "Rust safe bindings for XCB" repository = "https://github.com/rust-x-bindings/rust-xcb" diff --git a/src/base.rs b/src/base.rs index 7a6a96ab5ac..fb3a151382a 100644 --- a/src/base.rs +++ b/src/base.rs @@ -1326,7 +1326,8 @@ impl Connection { /// Stop listening to a special event #[deprecated(note = "use `unregister_for_special_event` instead")] #[cfg(any(feature = "xinput", feature = "present"))] - pub fn unregister_for_special_xge(&self, se: SpecialEvent) { + #[allow(deprecated)] + pub fn unregister_for_special_xge(&self, se: SpecialEventId) { unsafe { xcb_unregister_for_special_event(self.c, se.raw); } @@ -1335,7 +1336,8 @@ impl Connection { /// Returns the next event from a special queue, blocking until one arrives #[deprecated(note = "Broken API: use `wait_for_special_event2` instead")] #[cfg(any(feature = "xinput", feature = "present"))] - pub fn wait_for_special_event(&self, se: SpecialEvent) -> Result { + #[allow(deprecated)] + pub fn wait_for_special_event(&self, se: SpecialEventId) -> Result { unsafe { let ev = xcb_wait_for_special_event(self.c, se.raw); self.handle_wait_for_event(ev) @@ -1345,7 +1347,8 @@ impl Connection { /// Returns the next event from a special queue #[deprecated(note = "Broken API: use `poll_for_special_event2` instead")] #[cfg(any(feature = "xinput", feature = "present"))] - pub fn poll_for_special_event(&self, se: SpecialEvent) -> Result> { + #[allow(deprecated)] + pub fn poll_for_special_event(&self, se: SpecialEventId) -> Result> { unsafe { let ev = xcb_poll_for_special_event(self.c, se.raw); self.handle_poll_for_event(ev)