mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 06:41:31 +11: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:
commit
366608d026
|
@ -204,7 +204,7 @@ impl WindowProxy {
|
||||||
NSEvent::otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(
|
NSEvent::otherEventWithType_location_modifierFlags_timestamp_windowNumber_context_subtype_data1_data2_(
|
||||||
nil, NSApplicationDefined, NSPoint::new(0.0, 0.0), NSEventModifierFlags::empty(),
|
nil, NSApplicationDefined, NSPoint::new(0.0, 0.0), NSEventModifierFlags::empty(),
|
||||||
0.0, 0, nil, NSApplicationActivatedEventType, 0, 0);
|
0.0, 0, nil, NSApplicationActivatedEventType, 0, 0);
|
||||||
NSApp().postEvent_atStart_(event, YES);
|
NSApp().postEvent_atStart_(event, NO);
|
||||||
pool.drain();
|
pool.drain();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue