mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4718
This commit is contained in:
parent
6aa04b9cf2
commit
6d31cb5666
|
@ -20572,3 +20572,15 @@ Bruce 2 Dec 2004
|
|||
db_ops.inc
|
||||
ops/
|
||||
db_form.inc
|
||||
|
||||
Rom 2 Dec 2004
|
||||
- Bug Fix: On certain versions of Windows it might be necessary for the
|
||||
screensaver to force the foreground window depending on the state in
|
||||
which the screensaver was launched. This is the slightly less
|
||||
aggressive way to do this. Ideally the active process is the screensaver
|
||||
and so therefore can promote another process into the foreground.
|
||||
|
||||
client/win/
|
||||
win_screensaver.cpp
|
||||
lib/
|
||||
gui_rpc_client.h
|
||||
|
|
|
@ -830,6 +830,20 @@ LRESULT CScreensaver::PrimarySaverProc( HWND hWnd, UINT uMsg, WPARAM wParam, LPA
|
|||
{
|
||||
switch (iStatus)
|
||||
{
|
||||
case SS_STATUS_ENABLED:
|
||||
HWND hwndBOINCGraphicsWindow = NULL;
|
||||
HWND hwndActiveWindow = NULL;
|
||||
|
||||
hwndBOINCGraphicsWindow = FindWindow( BOINC_WINDOW_CLASS_NAME, NULL );
|
||||
if ( NULL != hwndBOINCGraphicsWindow )
|
||||
{
|
||||
hwndActiveWindow = GetForegroundWindow();
|
||||
if ( hwndActiveWindow != hwndBOINCGraphicsWindow )
|
||||
{
|
||||
SetForegroundWindow(hwndBOINCGraphicsWindow);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case SS_STATUS_RESTARTREQUEST:
|
||||
m_bBOINCCoreNotified = FALSE;
|
||||
break;
|
||||
|
|
|
@ -55,6 +55,8 @@
|
|||
#define SS_STATUS_NOGRAPHICSAPPSEXECUTING 7
|
||||
#define SS_STATUS_QUIT 8
|
||||
|
||||
#define BOINC_WINDOW_CLASS_NAME "BOINC_app"
|
||||
|
||||
struct GUI_URL {
|
||||
std::string name;
|
||||
std::string description;
|
||||
|
|
Loading…
Reference in New Issue