aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2016-02-29 15:10:35 -0800
committerPatrick Walton <pcwalton@mimiga.net>2016-02-29 15:12:35 -0800
commitbcd7999bf60c49c6df5f1e1536b53c44d5801e13 (patch)
treec77cd7f675add0f10dbea6f429dd3c1154d909fc
parent6a6d7a29d5d8216a4756b6550ddb0065d556fb4a (diff)
downloadglutin-bcd7999bf60c49c6df5f1e1536b53c44d5801e13.tar.gz
glutin-bcd7999bf60c49c6df5f1e1536b53c44d5801e13.zip
cocoa: Post Awakened events at the end of the queue to avoid floods.
Closes servo/webrender#179.
-rw-r--r--src/api/cocoa/mod.rs2
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();
}
}