mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
Merge pull request #731 from pcwalton/event-deflooding-tomaka
cocoa: Post Awakened events at the end of the queue to avoid floods.
This commit is contained in:
@@ -204,7 +204,7 @@ impl WindowProxy {
|
||||
NSEvent::otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(
|
||||
nil, NSApplicationDefined, NSPoint::new(0.0, 0.0), NSEventModifierFlags::empty(),
|
||||
0.0, 0, nil, NSApplicationActivatedEventType, 0, 0);
|
||||
NSApp().postEvent_atStart_(event, YES);
|
||||
NSApp().postEvent_atStart_(event, NO);
|
||||
pool.drain();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user