Fixing regression on Windows Ce. b=259816. r=ere. WINCE only.
git-svn-id: svn://10.0.0.236/trunk@199005 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0b30b8ca4e
commit
ffea275095
@ -1710,9 +1710,11 @@ NS_METHOD nsWindow::Show(PRBool bState)
|
||||
break;
|
||||
default :
|
||||
mode = SW_SHOWNORMAL;
|
||||
#ifndef WINCE
|
||||
// Don't take focus if the active window is not one of ours (e.g. bug 259816)
|
||||
if (!GetNSWindowPtr(::GetForegroundWindow()))
|
||||
mode = SW_SHOWNOACTIVATE;
|
||||
#endif
|
||||
}
|
||||
::ShowWindow(mWnd, mode);
|
||||
if (mode == SW_SHOWNOACTIVATE)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user