From 639d5ea89ec78a4e3c1709115a20a058f54d6d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Thebault?= Date: Tue, 23 Apr 2024 08:49:31 +0200 Subject: [PATCH 1/3] changelog 1.4.0 --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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) From 349c635634cea2f1a222d2f8cdff5f867d3c64b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Thebault?= Date: Tue, 23 Apr 2024 08:49:40 +0200 Subject: [PATCH 2/3] bump 1.4.0 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From c6ac1f6a4b32ae73549b73e8222c0acdfd69f426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Thebault?= Date: Tue, 23 Apr 2024 08:58:32 +0200 Subject: [PATCH 3/3] fix semver clash deprecated special event --- src/base.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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)