--- a/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java Thu Oct 14 14:07:50 2010 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java Thu Oct 14 18:24:36 2010 +0400
@@ -604,7 +604,9 @@
public void handleWindowFocusIn_Dispatch() {
if (EventQueue.isDispatchThread()) {
XKeyboardFocusManagerPeer.setCurrentNativeFocusedWindow((Window) target);
- target.dispatchEvent(new WindowEvent((Window)target, WindowEvent.WINDOW_GAINED_FOCUS));
+ WindowEvent we = new WindowEvent((Window)target, WindowEvent.WINDOW_GAINED_FOCUS);
+ SunToolkit.setSystemGenerated(we);
+ target.dispatchEvent(we);
}
}