jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java
changeset 6826 1fc6a05552f2
parent 5506 202f599c92aa
child 7668 d4a77089c587
--- 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);
         }
     }