mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Allow serialization for WindowType (#762)
* Allow serialization for WindowType * Update CHANGELOG.md * Update CHANGELOG.md Co-Authored-By: saschagrunert <sgrunert@suse.com>
This commit is contained in:
parent
ddf133dd66
commit
26e37590e8
|
@ -1,5 +1,7 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- Added serde serialization to `os::unix::XWindowType`.
|
||||||
|
|
||||||
# Version 0.18.1 (2018-12-30)
|
# Version 0.18.1 (2018-12-30)
|
||||||
|
|
||||||
- On macOS, fix `Yen` (JIS) so applications receive the event.
|
- On macOS, fix `Yen` (JIS) so applications receive the event.
|
||||||
|
|
|
@ -24,6 +24,7 @@ impl From<bool> for StateOperation {
|
||||||
/// X window type. Maps directly to
|
/// X window type. Maps directly to
|
||||||
/// [`_NET_WM_WINDOW_TYPE`](https://specifications.freedesktop.org/wm-spec/wm-spec-1.5.html).
|
/// [`_NET_WM_WINDOW_TYPE`](https://specifications.freedesktop.org/wm-spec/wm-spec-1.5.html).
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||||
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub enum WindowType {
|
pub enum WindowType {
|
||||||
/// A desktop feature. This can include a single window containing desktop icons with the same dimensions as the
|
/// A desktop feature. This can include a single window containing desktop icons with the same dimensions as the
|
||||||
/// screen, allowing the desktop environment to have full control of the desktop, without the need for proxying
|
/// screen, allowing the desktop environment to have full control of the desktop, without the need for proxying
|
||||||
|
|
Loading…
Reference in a new issue