diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-02-29 15:10:35 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-02-29 15:12:35 -0800 |
commit | bcd7999bf60c49c6df5f1e1536b53c44d5801e13 (patch) | |
tree | c77cd7f675add0f10dbea6f429dd3c1154d909fc /src | |
parent | 6a6d7a29d5d8216a4756b6550ddb0065d556fb4a (diff) | |
download | glutin-bcd7999bf60c49c6df5f1e1536b53c44d5801e13.tar.gz glutin-bcd7999bf60c49c6df5f1e1536b53c44d5801e13.zip |
cocoa: Post Awakened events at the end of the queue to avoid floods.
Closes servo/webrender#179.
Diffstat (limited to 'src')
-rw-r--r-- | src/api/cocoa/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index 429572f..abcd735 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -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(); } } |