mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-03 07:10:05 -04:00
Fix comment on event conversion special case
This commit is contained in:
@@ -226,9 +226,9 @@ impl EventsLoop {
|
|||||||
// FIXME: Despite not being documented anywhere, an `NSEvent` is produced when a user opens
|
// FIXME: Despite not being documented anywhere, an `NSEvent` is produced when a user opens
|
||||||
// Spotlight while the NSApplication is in focus. This `NSEvent` produces a `NSEventType`
|
// Spotlight while the NSApplication is in focus. This `NSEvent` produces a `NSEventType`
|
||||||
// with value `21`. This causes a SEGFAULT as soon as we try to match on the `NSEventType`
|
// with value `21`. This causes a SEGFAULT as soon as we try to match on the `NSEventType`
|
||||||
// enum as there is variant associated with the value. Thus, we return early if this sneaky
|
// enum as there is no variant associated with the value. Thus, we return early if this
|
||||||
// event occurs. If someone does find some documentation on this, please fix this by adding
|
// sneaky event occurs. If someone does find some documentation on this, please fix this by
|
||||||
// an appropriate variant to the `NSEventType` enum in the cocoa-rs crate.
|
// adding an appropriate variant to the `NSEventType` enum in the cocoa-rs crate.
|
||||||
if ns_event.eventType() as u64 == 21 {
|
if ns_event.eventType() as u64 == 21 {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user