mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 10:26:34 +11:00
Map UserEvent
properly in Event::to_static
(#1468)
This commit is contained in:
parent
bc29931434
commit
e88e8bc194
2 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
- On Wayland, fix color from `close_button_icon_color` not applying.
|
- On Wayland, fix color from `close_button_icon_color` not applying.
|
||||||
- Ignore locale if unsupported by X11 backend
|
- Ignore locale if unsupported by X11 backend
|
||||||
- On Wayland, Add HiDPI cursor support
|
- On Wayland, Add HiDPI cursor support
|
||||||
|
- Fix `Event::to_static` returning `None` for user events.
|
||||||
|
|
||||||
# 0.21.0 (2020-02-04)
|
# 0.21.0 (2020-02-04)
|
||||||
|
|
||||||
|
|
|
@ -139,7 +139,7 @@ impl<'a, T> Event<'a, T> {
|
||||||
WindowEvent { window_id, event } => event
|
WindowEvent { window_id, event } => event
|
||||||
.to_static()
|
.to_static()
|
||||||
.map(|event| WindowEvent { window_id, event }),
|
.map(|event| WindowEvent { window_id, event }),
|
||||||
UserEvent(_) => None,
|
UserEvent(event) => Some(UserEvent(event)),
|
||||||
DeviceEvent { device_id, event } => Some(DeviceEvent { device_id, event }),
|
DeviceEvent { device_id, event } => Some(DeviceEvent { device_id, event }),
|
||||||
NewEvents(cause) => Some(NewEvents(cause)),
|
NewEvents(cause) => Some(NewEvents(cause)),
|
||||||
MainEventsCleared => Some(MainEventsCleared),
|
MainEventsCleared => Some(MainEventsCleared),
|
||||||
|
|
Loading…
Add table
Reference in a new issue