diff options
author | Sven Gothel <[email protected]> | 2011-10-26 21:02:52 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-26 21:02:52 +0200 |
commit | 323f49744d473ba33726d5e372ac68fa611cbd1a (patch) | |
tree | 6d9da5172a01a1f0e58d22f1bc637a5cf2741d21 /src/newt | |
parent | e8f45dad086d78c9961f72d9e9530b57a0afb3e8 (diff) |
NEWT/OSX: Can't use sending key/mouse directly to WindowImpl, deadlock .. see comment
Diffstat (limited to 'src/newt')
-rw-r--r-- | src/newt/native/NewtMacWindow.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/newt/native/NewtMacWindow.m b/src/newt/native/NewtMacWindow.m index 0b6386b2d..43e66506c 100644 --- a/src/newt/native/NewtMacWindow.m +++ b/src/newt/native/NewtMacWindow.m @@ -86,7 +86,13 @@ static jmethodID focusChangedID = NULL; static jmethodID windowDestroyNotifyID = NULL; static jmethodID windowRepaintID = NULL; -#define USE_SENDIO_DIRECT 1 +// Can't use USE_SENDIO_DIRECT, ie w/o enqueueing to EDT, +// since we may operate on AWT-AppKit (Main Thread) +// and direct issuing 'requestFocus()' would deadlock: +// AWT-AppKit +// AWT-EventQueue-0 +// +// #define USE_SENDIO_DIRECT 1 @implementation NewtView |