Review request for 7129825 - [macosx] Native activation is not changed when focusing other frame's owned window (original) (raw)
Anton V. Tarasov anton.tarasov at oracle.com
Mon Jan 30 04:03:06 PST 2012
- Previous message: Review request for 7129825 - [macosx] Native activation is not changed when focusing other frame's owned window
- Next message: Review request for 7129825 - [macosx] Native activation is not changed when focusing other frame's owned window
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 30.01.2012 16:06, Dmitry Cherepanov wrote:
Hi Anton,
The fix looks fine to me. Just one comment - the fix introduces new isActive method in the PlatformWindow interface (and removes parameters from requestWindowFocus). Could you please add some implementation into the CPlatformEmbeddedFrame class (simply returning true should be fine) as the class implements the PlatformWindow interface.
Sure, I missed it. Here's the updated version:
http://cr.openjdk.java.net/~ant/7129825/webrev.1/
Thanks!
Anton.
Thanks, Dmitry Anton V. Tarasov wrote: Hello,
Please review a fix for 7129825. webrev: http://cr.openjdk.java.net/~ant/7129825/webrev.0/ The fix contains the following changes: 1. When a simple window requests focus its owner is properly activated. 2. The code that requests focus on a window from LWWindowPeer initial mouse handler is removed. It duplicates the logic implemented by LWWindowPeer.handleEvent(). Additionally, a window requests focus when its unfocusable component is clicked, or its empty spot is clicked. In this case KeyboardFocusManager sets focus on the window's default component. 3. The nativeIsApplicationActive() method is moved to LWToolkit. 4. Two native methods are changed to be called synchronously (performOnMainThreadWaiting:YES) as they are called from EDT. 5. Some minor changes. Tested with test/java/awt/Focus/* against regressions. Thanks, Anton.
- Previous message: Review request for 7129825 - [macosx] Native activation is not changed when focusing other frame's owned window
- Next message: Review request for 7129825 - [macosx] Native activation is not changed when focusing other frame's owned window
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]