Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Success

Changes

Summary

  1. NEWT/OSX: exec. makeKeyAndOrderFront/makeKeyWindow on MainThread (details)
  2. NEWT/OSX: Proper impl. of NEWT's focus management (fixes NEWT/AWT focus (details)
  3. test script (details)
  4. NEWT/OSX: Send events direct w/o EDT queue (like X11 and Win32) (details)
Commit af332515f76a4017e7a52ebec920e794a5398db4 by Sven Gothel
NEWT/OSX: exec. makeKeyAndOrderFront/makeKeyWindow on MainThread
The file was modifiedsrc/newt/native/MacWindow.m (diff)
Commit cac4e2e3f2d6c69a207077fd5e0ebec803afb6b0 by Sven Gothel
NEWT/OSX: Proper impl. of NEWT's focus management (fixes NEWT/AWT focus behavior/tests)

- Old code was just requesting the focus and made the window upfront
  and notifying a gained focus to WindowImpl. (hack)

- Using proper requestFocus impl. issuing focusAction() and utilizing native
  focus gained/lost messages. This distinguish between 'makeKey' and 'orderFront'.
  Also requesting and accepting (view) first responder role, which is a precursor
  to proper gained/lost focus handling on OSX.

- NEWTCanvasAWT: Adding 'steal AWT focus':
   +++
   void requestFocus() {
     super.requestFocus(); // AWT
     < steal AWT focus >
     NEWTChild.requestFocus()
   }
   +++
   Helps make the focus traversal between NEWT/AWT more reliable.
   Happend on OSX that AWT (NewtCanvasAWT instance) didn't release the focus
   after NEWT child gained the same.
   We are not able to use the 'focusAction()' here (disabled in this code path)
   due to AWT-EDT blocking and recursive focus changes. The latter is also
   intendend to request the AWT focus first ..

- AWT/NEWT focus test 01 passes on OSX
The file was modifiedsrc/newt/native/NewtMacWindow.m (diff)
The file was modifiedsrc/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java (diff)
The file was modifiedsrc/newt/classes/jogamp/newt/driver/macosx/MacWindow.java (diff)
The file was modifiedsrc/newt/native/MacWindow.m (diff)
The file was modifiedsrc/newt/native/NewtMacWindow.h (diff)
The file was modifiedmake/scripts/tests.sh (diff)
Commit 3cffd63dd7bf73344aacdae35f4c7d3639393294 by Sven Gothel
NEWT/OSX: Send events direct w/o EDT queue (like X11 and Win32)
The file was modifiedmake/scripts/tests.sh (diff)
The file was modifiedsrc/newt/native/NewtMacWindow.m (diff)