mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 07:24:47 +00:00
Fixing regression on Windows Ce. b=259816. r=ere. WINCE only.
This commit is contained in:
parent
b7ffba23d1
commit
027444ff90
@ -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