Re: Thread blocking issue with AWT (but not NEWT) on OSX

Posted by Sven Gothel on
URL: https://forum.jogamp.org/Thread-blocking-issue-with-AWT-but-not-NEWT-on-OSX-tp4026674p4026683.html

On 11/01/2012 12:28 AM, hharrison [via jogamp] wrote:

> Sorry, I was waiting for comment from you before pushing further, I just got
> sidetracked
> before pushing out a commit you could pull.  I'll see what can be done WRT a
> unit test.
>
> The unit test would essentially be, create two AWT Frames with a NewtAWTCanvas in
> each frame.  Alternately set each window to be the focused frame, for us it
> locked
> up trivially.
>
> If you hold off pushing this out, I will craft a commit w/ explanatory message
> for you to
> Review/pull in the next few hours.
I have experienced at least one regression on Win7 w/ Java6 64bit,
see attached files.

Hence this patch is not ready yet. Yes, the NewtCanvasAWT NEWT/AWT focus handling
is complicated and .. well, not clean. Just look at the focus-handler in NEWT Window
for this task, the clear-menu thingy .. etc.

To not break other applications relying on it, we have to wait until a patch is matured more.
In general .. it does the right thing - but then again, it's tricky .. timing etc.

~Sven

>
> Harvey

TEST-com.jogamp.opengl.test.junit.newt.TestFocus02SwingAWTRobot.xml (463K) Download Attachment
TestFocus02SwingAWTRobot-Regression-Log.txt (1M) Download Attachment
signature.asc (907 bytes) Download Attachment