aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2015-08-20 10:53:37 +0200
committerPaul Rouget <me@paulrouget.com>2015-08-20 10:53:44 +0200
commitcb78383da017fc8ce4f8f70a5b719ef08e024be9 (patch)
tree35f00e14395a05b006fbd915c8ff42f9669849be /examples
parenta982c599d0956fde67b66b56a38b204dc422ae67 (diff)
downloadglutin-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')
0 files changed, 0 insertions, 0 deletions