diff options
-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 |