From 323f49744d473ba33726d5e372ac68fa611cbd1a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 26 Oct 2011 21:02:52 +0200 Subject: NEWT/OSX: Can't use sending key/mouse directly to WindowImpl, deadlock .. see comment --- src/newt/native/NewtMacWindow.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/newt/native/NewtMacWindow.m') 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 -- cgit v1.2.3