OpenJDK / jdk / jdk
changeset 135:3d873ae9aa88
6599270: Using EmbeddedFrame in SWT leads to a hang
Summary: Excluding EmbeddedFrame from the workaround of activating a toplevel in not foreground process.
Reviewed-by: son
author | ant |
---|---|
date | Fri, 21 Mar 2008 09:54:50 +0300 |
parents | 6c750e108213 |
children | a67fedfd0b21 b7466e0d720d 2d7b6a4f8002 |
files | jdk/src/windows/native/sun/windows/awt_Frame.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/jdk/src/windows/native/sun/windows/awt_Frame.cpp Thu Mar 20 18:06:41 2008 +0300 +++ b/jdk/src/windows/native/sun/windows/awt_Frame.cpp Fri Mar 21 09:54:50 2008 +0300 @@ -408,8 +408,9 @@ * message. This breaks Java focus. To workaround the problem we * set the toplevel being shown foreground programmatically. * The fix is localized to non-foreground process case only. + * (See also: 6599270) */ - if (show == TRUE && status == 0) { + if (!IsEmbeddedFrame() && show == TRUE && status == 0) { HWND fgHWnd = ::GetForegroundWindow(); if (fgHWnd != NULL) { DWORD fgProcessID;