mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 18:36:34 +11:00
cocoa: Post Awakened events at the end of the queue to avoid floods.
Closes servo/webrender#179.
This commit is contained in:
parent
6a6d7a29d5
commit
bcd7999bf6
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue