6599270: Using EmbeddedFrame in SWT leads to a hang
Excluding EmbeddedFrame from the workaround of activating a toplevel in not foreground process. Reviewed-by: son
This commit is contained in:
parent
74107ff438
commit
f865626b54
@ -408,8 +408,9 @@ MsgRouting AwtFrame::WmShowWindow(BOOL show, UINT status)
|
|||||||
* message. This breaks Java focus. To workaround the problem we
|
* message. This breaks Java focus. To workaround the problem we
|
||||||
* set the toplevel being shown foreground programmatically.
|
* set the toplevel being shown foreground programmatically.
|
||||||
* The fix is localized to non-foreground process case only.
|
* 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();
|
HWND fgHWnd = ::GetForegroundWindow();
|
||||||
if (fgHWnd != NULL) {
|
if (fgHWnd != NULL) {
|
||||||
DWORD fgProcessID;
|
DWORD fgProcessID;
|
||||||
|
Loading…
Reference in New Issue
Block a user