--- old/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp 2015-05-05 17:09:24.952976900 +0530 +++ new/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp 2015-05-05 17:09:24.421909500 +0530 @@ -1020,7 +1020,9 @@ // with the WWindowPeer object HWND hWnd = window->GetHWnd(); - if (!::SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, + // Place the window at top of Z-order. we do not want HWND_TOPMOST as it + // maintains topmost position even when it is not in focus + if (!::SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOSIZE)) { J2dTraceLn1(J2D_TRACE_ERROR,