aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2021-03-23 19:57:19 +0100
committerAndre Weissflog <floooh@gmail.com>2021-03-23 19:57:19 +0100
commitd44328073d2316f73cec5a99b846593fadd51ba3 (patch)
treea5f2b8260efc3486a7264becfbe0b63ce7574481
parent31acf61cb0e1000e66ce55e9b60bf0b67fd9cac8 (diff)
sokol_app.h macOS: temporarily out-comment event-polling
See: https://github.com/floooh/sokol/pull/483#issuecomment-805148815
-rw-r--r--sokol_app.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h
index a0e1b79d..e68f3617 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -2873,6 +2873,14 @@ _SOKOL_PRIVATE void _sapp_macos_frame(void) {
#endif
_SOKOL_PRIVATE void _sapp_macos_poll_input_events() {
+ /*
+
+ NOTE: late event polling temporarily out-commented to check if this
+ causes infrequent and almost impossible to reproduce probelms with the
+ window close events, see:
+ https://github.com/floooh/sokol/pull/483#issuecomment-805148815
+
+
const NSEventMask mask = NSEventMaskLeftMouseDown |
NSEventMaskLeftMouseUp|
NSEventMaskRightMouseDown |
@@ -2904,6 +2912,7 @@ _SOKOL_PRIVATE void _sapp_macos_poll_input_events() {
[NSApp sendEvent:event];
}
}
+ */
}
- (void)drawRect:(NSRect)rect {