< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp
Print this page
*** 1018,1028 ****
AwtWindow *window = (AwtWindow *)pData; // safe cast since we are called
// with the WWindowPeer object
HWND hWnd = window->GetHWnd();
! if (!::SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0,
SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOSIZE))
{
J2dTraceLn1(J2D_TRACE_ERROR,
"Error %d setting topmost attribute to fs window",
::GetLastError());
--- 1018,1030 ----
AwtWindow *window = (AwtWindow *)pData; // safe cast since we are called
// with the WWindowPeer object
HWND hWnd = window->GetHWnd();
! // 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,
"Error %d setting topmost attribute to fs window",
::GetLastError());
< prev index next >