mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
Release winit 0.15.0 (#530)
This commit is contained in:
parent
17373a4e91
commit
282770f11a
4 changed files with 13 additions and 11 deletions
|
@ -1,5 +1,7 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
# Version 0.15.0 (2018-05-22)
|
||||||
|
|
||||||
- `Icon::to_cardinals` is no longer public, since it was never supposed to be.
|
- `Icon::to_cardinals` is no longer public, since it was never supposed to be.
|
||||||
- Wayland: improve diagnostics if initialization fails
|
- 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
|
- 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.
|
- 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.
|
- **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.
|
- 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.
|
- On Windows, using `CursorState::Hide` when the cursor is grabbed now ungrabs the cursor first.
|
||||||
- Implemented `MouseCursor::NoneCursor` on Windows.
|
- Implemented `MouseCursor::NoneCursor` on Windows.
|
||||||
- Added `WindowBuilder::with_always_on_top` and `Window::set_always_on_top`. Implemented on Windows, macOS, and X11.
|
- Added `WindowBuilder::with_always_on_top` and `Window::set_always_on_top`. Implemented on Windows, macOS, and X11.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "winit"
|
name = "winit"
|
||||||
version = "0.14.0"
|
version = "0.15.0"
|
||||||
authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"]
|
||||||
description = "Cross-platform window creation library."
|
description = "Cross-platform window creation library."
|
||||||
keywords = ["windowing"]
|
keywords = ["windowing"]
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
winit = "0.14"
|
winit = "0.15"
|
||||||
```
|
```
|
||||||
|
|
||||||
## [Documentation](https://docs.rs/winit)
|
## [Documentation](https://docs.rs/winit)
|
||||||
|
|
|
@ -53,14 +53,14 @@ impl WindowType {
|
||||||
pub(crate) fn as_atom(&self, xconn: &Arc<XConnection>) -> ffi::Atom {
|
pub(crate) fn as_atom(&self, xconn: &Arc<XConnection>) -> ffi::Atom {
|
||||||
use self::WindowType::*;
|
use self::WindowType::*;
|
||||||
let atom_name: &[u8] = match self {
|
let atom_name: &[u8] = match self {
|
||||||
Desktop => b"_NET_WM_WINDOW_TYPE_DESKTOP\0",
|
&Desktop => b"_NET_WM_WINDOW_TYPE_DESKTOP\0",
|
||||||
Dock => b"_NET_WM_WINDOW_TYPE_DOCK\0",
|
&Dock => b"_NET_WM_WINDOW_TYPE_DOCK\0",
|
||||||
Toolbar => b"_NET_WM_WINDOW_TYPE_TOOLBAR\0",
|
&Toolbar => b"_NET_WM_WINDOW_TYPE_TOOLBAR\0",
|
||||||
Menu => b"_NET_WM_WINDOW_TYPE_MENU\0",
|
&Menu => b"_NET_WM_WINDOW_TYPE_MENU\0",
|
||||||
Utility => b"_NET_WM_WINDOW_TYPE_UTILITY\0",
|
&Utility => b"_NET_WM_WINDOW_TYPE_UTILITY\0",
|
||||||
Splash => b"_NET_WM_WINDOW_TYPE_SPLASH\0",
|
&Splash => b"_NET_WM_WINDOW_TYPE_SPLASH\0",
|
||||||
Dialog => b"_NET_WM_WINDOW_TYPE_DIALOG\0",
|
&Dialog => b"_NET_WM_WINDOW_TYPE_DIALOG\0",
|
||||||
Normal => b"_NET_WM_WINDOW_TYPE_NORMAL\0",
|
&Normal => b"_NET_WM_WINDOW_TYPE_NORMAL\0",
|
||||||
};
|
};
|
||||||
unsafe { get_atom(xconn, atom_name) }
|
unsafe { get_atom(xconn, atom_name) }
|
||||||
.expect("Failed to get atom for `WindowType`")
|
.expect("Failed to get atom for `WindowType`")
|
||||||
|
|
Loading…
Add table
Reference in a new issue