diff options
author | Paul Rouget <me@paulrouget.com> | 2015-08-20 10:53:37 +0200 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2015-08-20 10:53:44 +0200 |
commit | cb78383da017fc8ce4f8f70a5b719ef08e024be9 (patch) | |
tree | 35f00e14395a05b006fbd915c8ff42f9669849be /examples/support | |
parent | a982c599d0956fde67b66b56a38b204dc422ae67 (diff) | |
download | glutin-cb78383da017fc8ce4f8f70a5b719ef08e024be9.tar.gz glutin-cb78383da017fc8ce4f8f70a5b719ef08e024be9.zip |
Do not call nextEventMatchingMask twice
wait_event used to call nextEventMatchingMask twice. Once with untilDate:distantFuture,
and dequeue:NO to wait until the next event but witout consuming it, and again with
untilDate:distantPast and dequeue:YES to retrieve the event (via poll_events).
For some reason, with osx 10.11, calling nextEventMatchingMask with dequeue:NO never
returns if the user scrolls, freezing the app.
So we now call nextEventMatchingMask only once, with dequeue:YES.
Diffstat (limited to 'examples/support')
0 files changed, 0 insertions, 0 deletions