Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.4.0 #264

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>" ]
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 @@ -1309,9 +1309,9 @@
unsafe {
let ext: *mut xcb_extension_t = match XGE::EXTENSION {
#[cfg(feature = "xinput")]
Extension::Input => &mut xinput::FFI_EXT as *mut _,

Check warning on line 1312 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged

Check warning on line 1312 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged
#[cfg(feature = "present")]
Extension::Present => &mut present::FFI_EXT as *mut _,

Check warning on line 1314 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged

Check warning on line 1314 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged
_ => unreachable!("only Input and Present have XGE events"),
};

Expand All @@ -1326,7 +1326,8 @@
/// 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 @@
/// 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 @@
/// 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 All @@ -1367,9 +1370,9 @@
unsafe {
let ext: *mut xcb_extension_t = match extension {
#[cfg(feature = "xinput")]
Extension::Input => &mut xinput::FFI_EXT as *mut _,

Check warning on line 1373 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged

Check warning on line 1373 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged
#[cfg(feature = "present")]
Extension::Present => &mut present::FFI_EXT as *mut _,

Check warning on line 1375 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged

Check warning on line 1375 in src/base.rs

View workflow job for this annotation

GitHub Actions / Build and Test

creating a mutable reference to mutable static is discouraged
_ => panic!("only Input and Present have XGE events"),
};

Expand Down
Loading