mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4720
This commit is contained in:
parent
0b6ad56a62
commit
485f70e77c
|
@ -775,7 +775,7 @@ LRESULT CScreensaver::PrimarySaverProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
|||
|
||||
case 2:
|
||||
HWND hwndBOINCGraphicsWindow = NULL;
|
||||
HWND hwndActiveWindow = NULL;
|
||||
HWND hwndForegroundWindow = NULL;
|
||||
int iReturnValue = 0;
|
||||
int iStatus = 0;
|
||||
|
||||
|
@ -828,8 +828,8 @@ LRESULT CScreensaver::PrimarySaverProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
|||
hwndBOINCGraphicsWindow = FindWindow( BOINC_WINDOW_CLASS_NAME, NULL );
|
||||
if ( NULL != hwndBOINCGraphicsWindow )
|
||||
{
|
||||
hwndActiveWindow = GetForegroundWindow();
|
||||
if ( hwndActiveWindow != hwndBOINCGraphicsWindow )
|
||||
hwndForegroundWindow = GetForegroundWindow();
|
||||
if ( hwndForegroundWindow != hwndBOINCGraphicsWindow )
|
||||
{
|
||||
SetForegroundWindow(hwndBOINCGraphicsWindow);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue