Skip to content

Commit

Permalink
Merge pull request rust-x-bindings#264 from rtbo/release_1.4.0
Browse files Browse the repository at this point in the history
Release 1.4.0
  • Loading branch information
rtbo authored Apr 23, 2024
2 parents 07bdff9 + c6ac1f6 commit 5f23596
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xcb"
version = "1.3.0"
version = "1.4.0"
authors = [ "Remi Thebault <remi.thebault@gmail.com>" ]
description = "Rust safe bindings for XCB"
repository = "https://github.com/rust-x-bindings/rust-xcb"
Expand Down
9 changes: 6 additions & 3 deletions src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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<Event> {
#[allow(deprecated)]
pub fn wait_for_special_event(&self, se: SpecialEventId) -> Result<Event> {
unsafe {
let ev = xcb_wait_for_special_event(self.c, se.raw);
self.handle_wait_for_event(ev)
Expand All @@ -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<Option<Event>> {
#[allow(deprecated)]
pub fn poll_for_special_event(&self, se: SpecialEventId) -> Result<Option<Event>> {
unsafe {
let ev = xcb_poll_for_special_event(self.c, se.raw);
self.handle_poll_for_event(ev)
Expand Down

0 comments on commit 5f23596

Please sign in to comment.