changeset 14156:1326c5bd5baa

7185280: Jre7cert: focusgained does not get called for all focus req when do alt + tab Reviewed-by: anthony
author leonidr
date Tue, 09 Oct 2012 18:00:58 +0400
parents 8889b37053e6
children 5d50d32dd770
files jdk/src/windows/native/sun/windows/awt_Window.cpp
diffstat 1 files changed, 2 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/windows/native/sun/windows/awt_Window.cpp	Wed Oct 03 21:01:47 2012 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_Window.cpp	Tue Oct 09 18:00:58 2012 +0400
@@ -1559,21 +1559,8 @@
 
 BOOL AwtWindow::AwtSetActiveWindow(BOOL isMouseEventCause, UINT hittest)
 {
-    // Fix for 6458497.
-    // Retreat if current foreground window is out of both our and embedder process.
-    // The exception is when activation is requested due to a mouse event.
-    if (!isMouseEventCause) {
-        HWND fgWindow = ::GetForegroundWindow();
-        if (NULL != fgWindow) {
-            DWORD fgProcessID;
-            ::GetWindowThreadProcessId(fgWindow, &fgProcessID);
-            if (fgProcessID != ::GetCurrentProcessId()
-                && !AwtToolkit::GetInstance().IsEmbedderProcessId(fgProcessID))
-            {
-                return FALSE;
-            }
-        }
-    }
+    // We used to reject non mouse window activation if our app wasn't active.
+    // This code since has been removed as the fix for 7185280
 
     HWND proxyContainerHWnd = GetProxyToplevelContainer();
     HWND proxyHWnd = GetProxyFocusOwner();