JRE-695 AWT popup stays above other process windows after alt-tab
(cherry picked from commit 55799e9)
diff --git a/src/windows/native/sun/windows/awt_Window.cpp b/src/windows/native/sun/windows/awt_Window.cpp
index 5a4588e..0f910ef 100644
--- a/src/windows/native/sun/windows/awt_Window.cpp
+++ b/src/windows/native/sun/windows/awt_Window.cpp
@@ -1360,7 +1360,7 @@
if (nCmdShow == SW_SHOWNA) {
flags |= SWP_NOACTIVATE;
}
- ::SetWindowPos(GetHWnd(), HWND_TOPMOST, 0, 0, 0, 0, flags);
+ ::SetWindowPos(GetHWnd(), HWND_TOP, 0, 0, 0, 0, flags);
} else {
::ShowWindow(GetHWnd(), nCmdShow);
}