зеркало из https://github.com/mozilla/gecko-dev.git
Bug #242249 --> opening another instance of thunderbird.exe should unminimize (restore/maximize) window.
Patch by Jeongkyu Kim (jeongkyu.kim@gmail.com) r=bsmedberg sr=mscott
This commit is contained in:
Родитель
33a75c4caa
Коммит
b0ba8b6f6f
|
@ -527,6 +527,10 @@ struct MessageWindow {
|
|||
COPYDATASTRUCT cds = { 0, ::strlen( cmd ) + 1, (void*)cmd };
|
||||
HWND newWin = (HWND)::SendMessage( mHandle, WM_COPYDATA, 0, (LPARAM)&cds );
|
||||
if ( newWin ) {
|
||||
// Restore the window if it is minimized.
|
||||
if ( ::IsIconic( newWin ) ) {
|
||||
::ShowWindow( newWin, SW_RESTORE );
|
||||
}
|
||||
::SetForegroundWindow( newWin );
|
||||
}
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче