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:
|
case 2:
|
||||||
HWND hwndBOINCGraphicsWindow = NULL;
|
HWND hwndBOINCGraphicsWindow = NULL;
|
||||||
HWND hwndActiveWindow = NULL;
|
HWND hwndForegroundWindow = NULL;
|
||||||
int iReturnValue = 0;
|
int iReturnValue = 0;
|
||||||
int iStatus = 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 );
|
hwndBOINCGraphicsWindow = FindWindow( BOINC_WINDOW_CLASS_NAME, NULL );
|
||||||
if ( NULL != hwndBOINCGraphicsWindow )
|
if ( NULL != hwndBOINCGraphicsWindow )
|
||||||
{
|
{
|
||||||
hwndActiveWindow = GetForegroundWindow();
|
hwndForegroundWindow = GetForegroundWindow();
|
||||||
if ( hwndActiveWindow != hwndBOINCGraphicsWindow )
|
if ( hwndForegroundWindow != hwndBOINCGraphicsWindow )
|
||||||
{
|
{
|
||||||
SetForegroundWindow(hwndBOINCGraphicsWindow);
|
SetForegroundWindow(hwndBOINCGraphicsWindow);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue