Skip to content

Commit 5f23596

Browse files
authored
Merge pull request #264 from rtbo/release_1.4.0
Release 1.4.0
2 parents 07bdff9 + c6ac1f6 commit 5f23596

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased] - - various authors
88

9+
## [1.4.0] - 2024-04-23 - various authors
10+
### Added
11+
- `BaseEvent::is_from_send_event` (#262)
12+
- feature `libxcb_v1_14` (enabled by default) (#250)
13+
14+
### Fixed
15+
- Special event API (#261)
16+
- DisplayInfo members visibility (#263)
17+
918
## [1.3.0] - 2023-12-09 - various authors
1019
### Added
1120
- add `Connection::poll_for_reply` and `Connection::poll_for_reply_unchecked` (#245)

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "xcb"
3-
version = "1.3.0"
3+
version = "1.4.0"
44
authors = [ "Remi Thebault <remi.thebault@gmail.com>" ]
55
description = "Rust safe bindings for XCB"
66
repository = "https://github.com/rust-x-bindings/rust-xcb"

src/base.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,8 @@ impl Connection {
13261326
/// Stop listening to a special event
13271327
#[deprecated(note = "use `unregister_for_special_event` instead")]
13281328
#[cfg(any(feature = "xinput", feature = "present"))]
1329-
pub fn unregister_for_special_xge(&self, se: SpecialEvent) {
1329+
#[allow(deprecated)]
1330+
pub fn unregister_for_special_xge(&self, se: SpecialEventId) {
13301331
unsafe {
13311332
xcb_unregister_for_special_event(self.c, se.raw);
13321333
}
@@ -1335,7 +1336,8 @@ impl Connection {
13351336
/// Returns the next event from a special queue, blocking until one arrives
13361337
#[deprecated(note = "Broken API: use `wait_for_special_event2` instead")]
13371338
#[cfg(any(feature = "xinput", feature = "present"))]
1338-
pub fn wait_for_special_event(&self, se: SpecialEvent) -> Result<Event> {
1339+
#[allow(deprecated)]
1340+
pub fn wait_for_special_event(&self, se: SpecialEventId) -> Result<Event> {
13391341
unsafe {
13401342
let ev = xcb_wait_for_special_event(self.c, se.raw);
13411343
self.handle_wait_for_event(ev)
@@ -1345,7 +1347,8 @@ impl Connection {
13451347
/// Returns the next event from a special queue
13461348
#[deprecated(note = "Broken API: use `poll_for_special_event2` instead")]
13471349
#[cfg(any(feature = "xinput", feature = "present"))]
1348-
pub fn poll_for_special_event(&self, se: SpecialEvent) -> Result<Option<Event>> {
1350+
#[allow(deprecated)]
1351+
pub fn poll_for_special_event(&self, se: SpecialEventId) -> Result<Option<Event>> {
13491352
unsafe {
13501353
let ev = xcb_poll_for_special_event(self.c, se.raw);
13511354
self.handle_poll_for_event(ev)

0 commit comments

Comments
 (0)