From 282770f11a3d814d98913065240a94005f56d7e8 Mon Sep 17 00:00:00 2001 From: Francesca Frangipane Date: Tue, 22 May 2018 14:17:41 -0400 Subject: [PATCH] Release winit 0.15.0 (#530) --- CHANGELOG.md | 4 +++- Cargo.toml | 2 +- README.md | 2 +- src/platform/linux/x11/util/hint.rs | 16 ++++++++-------- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddf06f31..c1325606 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Unreleased +# Version 0.15.0 (2018-05-22) + - `Icon::to_cardinals` is no longer public, since it was never supposed to be. - Wayland: improve diagnostics if initialization fails - Fix some system event key doesn't work when focused, do not block keyevent forward to system on macOS @@ -17,7 +19,7 @@ - Added the `Window::set_ime_spot(x: i32, y: i32)` method, which is implemented on X11 and macOS. - **Breaking**: `os::unix::WindowExt::send_xim_spot(x: i16, y: i16)` no longer exists. Switch to the new `Window::set_ime_spot(x: i32, y: i32)`, which has equivalent functionality. - Fixed detection of `Pause` and `Scroll` keys on Windows. -- On Windows, alt-tabbing while the cursor is grabbed no longer makes it impossible to re-grab the window. +- On Windows, alt-tabbing while the cursor is grabbed no longer makes it impossible to re-grab the cursor. - On Windows, using `CursorState::Hide` when the cursor is grabbed now ungrabs the cursor first. - Implemented `MouseCursor::NoneCursor` on Windows. - Added `WindowBuilder::with_always_on_top` and `Window::set_always_on_top`. Implemented on Windows, macOS, and X11. diff --git a/Cargo.toml b/Cargo.toml index ca716e20..18376fb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "winit" -version = "0.14.0" +version = "0.15.0" authors = ["The winit contributors, Pierre Krieger "] description = "Cross-platform window creation library." keywords = ["windowing"] diff --git a/README.md b/README.md index 8be5b349..4fe260fb 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ```toml [dependencies] -winit = "0.14" +winit = "0.15" ``` ## [Documentation](https://docs.rs/winit) diff --git a/src/platform/linux/x11/util/hint.rs b/src/platform/linux/x11/util/hint.rs index 25a49e0f..abd90a16 100644 --- a/src/platform/linux/x11/util/hint.rs +++ b/src/platform/linux/x11/util/hint.rs @@ -53,14 +53,14 @@ impl WindowType { pub(crate) fn as_atom(&self, xconn: &Arc) -> ffi::Atom { use self::WindowType::*; let atom_name: &[u8] = match self { - Desktop => b"_NET_WM_WINDOW_TYPE_DESKTOP\0", - Dock => b"_NET_WM_WINDOW_TYPE_DOCK\0", - Toolbar => b"_NET_WM_WINDOW_TYPE_TOOLBAR\0", - Menu => b"_NET_WM_WINDOW_TYPE_MENU\0", - Utility => b"_NET_WM_WINDOW_TYPE_UTILITY\0", - Splash => b"_NET_WM_WINDOW_TYPE_SPLASH\0", - Dialog => b"_NET_WM_WINDOW_TYPE_DIALOG\0", - Normal => b"_NET_WM_WINDOW_TYPE_NORMAL\0", + &Desktop => b"_NET_WM_WINDOW_TYPE_DESKTOP\0", + &Dock => b"_NET_WM_WINDOW_TYPE_DOCK\0", + &Toolbar => b"_NET_WM_WINDOW_TYPE_TOOLBAR\0", + &Menu => b"_NET_WM_WINDOW_TYPE_MENU\0", + &Utility => b"_NET_WM_WINDOW_TYPE_UTILITY\0", + &Splash => b"_NET_WM_WINDOW_TYPE_SPLASH\0", + &Dialog => b"_NET_WM_WINDOW_TYPE_DIALOG\0", + &Normal => b"_NET_WM_WINDOW_TYPE_NORMAL\0", }; unsafe { get_atom(xconn, atom_name) } .expect("Failed to get atom for `WindowType`")