Commit Graph

66 Commits

Author SHA1 Message Date
Charlie Fenton ae839a75f4 WINSCR: Fix compile error
svn path=/trunk/boinc/; revision=24568
2011-11-10 01:14:04 +00:00
Rom Walton e934982cf8 Quick Updates
svn path=/trunk/boinc/; revision=24562
2011-11-09 16:31:39 +00:00
Rom Walton f64ed84e36 - WINSCR: Sync up the timer IDs.
clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=24561
2011-11-09 16:28:25 +00:00
Rom Walton b7be27cc2a - WINSCR: In the ResetProc message pump, change the call for CloseWindow()
to DestroyWindow().
       
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=24560
2011-11-09 16:22:47 +00:00
Rom Walton 09428f0633 - WINSCR: Add a reference to SCRAPPERR_BOINCNOGRAPHICSAPPSEXECUTING
in the message lookup table.
       
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=24559
2011-11-09 15:35:18 +00:00
Rom Walton 4cc8b3d4e8 Quick Updates
svn path=/trunk/boinc/; revision=24554
2011-11-09 00:22:10 +00:00
Rom Walton bfea72054e - WINSCR: Move the reset display call to the end of the full screensaver
section.  We do not need to perform a display reset in the various
        test modes.
        
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=24389
2011-10-13 14:41:24 +00:00
Rom Walton 0671d2ed97 - WINSCR: Before shutting down the screensaver, quickly reinitialize the OpenGL device
on the primary display.  Some of the issues being reported with the screensaver
        is a left over ghost image of the OpenGL display before the graphics application
        was terminated because keyboard/mouse activity was detected.

    clientscr/
        screensaver_win.cpp
    win_build/
        boinc_os_ss.vcproj

svn path=/trunk/boinc/; revision=24331
2011-10-04 18:39:02 +00:00
Rom Walton e8fe929958 Quick Updates
svn path=/trunk/boinc/; revision=24115
2011-09-02 16:54:46 +00:00
Rom Walton 16b2a83b41 - WINSCR: Based on feedback from WCG about the screensaver lock-up
problem attempt to provoke Windows into redrawing the primary
        display.  It turns out that the screensaver image is a ghost
        image, so create a blank top-most window and close it after
        the graphics application has been terminated.
        
    clientscr/
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=24013
2011-08-18 09:56:11 +00:00
Rom Walton d3cde89d7b - WINSCR: Remove diagnostics screensaver dialog when the screensaver fails to
be able open up the log files.

    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=23810
2011-07-07 14:37:18 +00:00
Rom Walton 5fd6ca42cc Quick Updates
svn path=/trunk/boinc/; revision=23768
2011-06-22 16:16:08 +00:00
Rom Walton 50f88192fd Quick Updates
svn path=/trunk/boinc/; revision=23442
2011-04-25 17:21:16 +00:00
Rom Walton c307c3dfe5 - SCR: In certain cases WM_QUIT is sent to the message proc, which is
is causing some type of deadlock and we don't break out of the message
        pump like we are suppose too.  For debug purposes, let us call DebugBreak()
        and see what the other threads are up too.
        
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=23441
2011-04-25 17:17:42 +00:00
Rom Walton d049739cd8 Quick Updates
svn path=/trunk/boinc/; revision=23304
2011-03-31 19:56:47 +00:00
Rom Walton d8b9b8b268 - WINSCR: So after looking over all the logs from WCG and now from Jacob
Klein a pattern started to emerge.  At the end of the log files the last
        message logged was 0x12 which translates into WM_QUIT.  The latest
        documentation on WM_QUIT states it should never show up in the message
        loop to begin with.
        
        The docs now say that WM_QUIT should not be sent to the message loop by
        way of PostMessage.  We have been doing things this way for over 5 years.
        For all I know, this could have been carried over from the original screen
        saver sample application.
        
        Change the shutdown logic so that only the primary curtain window can call
        PostQuitMessage() and all other curtain windows just exit when they receive
        a WM_DESTROY message.
        
        I'm not sure what causes this to be a problem on some machines and not
        others.  But preliminary results from Jacob are encouraging.
        
    clientscr/
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=23294
2011-03-29 20:59:09 +00:00
Rom Walton 3f8cc63c8f - API: Flush buffers before terminating.
- SCR: Flush buffers before terminating.
    
    api/
        boinc_api.cpp
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=23286
2011-03-28 17:53:43 +00:00
Rom Walton efd3c4caf7 - SCR: Follow the Mac's lead and gracefully exit the Data Management
thread.  Preserve the handle to take more drastic actions should
        that not work.
        
    clientscr/
        mac_saver_module.cpp, .h
        screensaver.cpp
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=23233
2011-03-14 18:58:04 +00:00
Rom Walton 66190aa0fc - MGR: Display the default action in the system tray menu in bold again.
- MGR: If connected to the localhost, don't display the computer name
        in the window title.
    - MGR: Change the exit menu item text to be a little more specific about
        what is being shutdown.  Use the same scheme as the exit text in the
        status bar so that it'll automatically be localized.
    - SCR: Remove some old Win9x code.
    
    clientgui/
        AdvancedFrame.cpp
        BOINCTaskBar.cpp
    clientscr/
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=22402
2010-09-23 18:35:06 +00:00
Rom Walton 0ec362318c - WINSCR: Set the screen saver log directory to the data directory.
- WINSCR: Already create a log file, even on release builds, just don't
        write trace messages.
    - WINSCR: Be a bit more paranoid about not being able to detect keyboard
        and mouse activity.  If the function fails for whatever reason
        shutdown the screensaver.
        
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=22341
2010-09-13 19:47:29 +00:00
Rom Walton e14e1cad34 - Remove BOINC_RCSID tags from source files, we are doing branching and tagging
properly.
        
    <Various Files>

svn path=/trunk/boinc/; revision=20873
2010-03-12 16:51:57 +00:00
Rom Walton 887aff86ec - WINSCR: Remove some more crufty code from the screensaver.
clientscr/
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=19992
2009-12-19 22:10:46 +00:00
Rom Walton 2d25b6698d - Cleanup various warnings
- WINSCR: Implement new configuration dialog with new parameters
    - WINSCR: Remove crufty code
    - WINSCR: Update copyrights in resource files
    
    client/
        app.cpp
    clientscr/
        boinc_ss.h
        boinc_ss.rc
        boinc_ss_opengl.h
        boinc_ss_opengl.rc
    clientscr/
        screensaver.cpp, .h
        screensaver_win.cpp, .h
    lib/
        common_defs.h
        crypt.cpp
        idlemon_win.cpp
        win_util.cpp
    samples/worker/
        worker.cpp
    win_build/
        boinc_ss.vcproj
        multi_thread.vcproj
        sleeper.vcproj
        ss_app.vcproj
        uc2_graphics.vcproj

svn path=/trunk/boinc/; revision=19923
2009-12-16 19:55:09 +00:00
Charlie Fenton 317e240b46 SS: Allow users to set screensaver durations from ss control panel
svn path=/trunk/boinc/; revision=19890
2009-12-14 13:10:49 +00:00
Rom Walton c7587fea9d - WINSCR: Remove Win9x compatibility code from the screen saver.
clientscr/    
        screensaver.cpp
        screensaver_win.cpp
        screensaver_win.h

svn path=/trunk/boinc/; revision=18719
2009-07-25 03:53:25 +00:00
Rom Walton 85066ced1c minor modification
svn path=/trunk/boinc/; revision=17731
2009-04-02 21:18:14 +00:00
Rom Walton 760dc42e12 - WINSCR: It appears newer notebook models with multiple video
chipsets exhibit an interesting situation.  It appears as though
        in certain conditions a single monitor machine actually reports
        itself as having three monitors.  Normally the monitor that
        contains the primary window (coord 0,0) is on monitor 0, but on
        these machines coord 0,0 is actually on monitor 2.  This led to the
        screensaver not properly exiting when keyboard and/or mouse activity
        was detected.  Now when we detect that keyboard and/or mouse activity
        has happened we send the WM_INTERRUPTSAVER event to all windows
        on all monitors.
        
    clientscr/
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=17728
2009-04-02 19:04:10 +00:00
Charlie Fenton 2bf1427dce WINSCR: fix a bug. Mac screensaver: logic to stop Data Management thread even if hung on an RPC.
svn path=/trunk/boinc/; revision=17444
2009-03-03 12:08:49 +00:00
Rom Walton 956b06f624 - WINSCR: Remove the progress indication code from the coordinator.
It is not handled by the default screensaver app.
    - WINSCR: Clean-up some of the thread cleanup logic.
    
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=17349
2009-02-24 20:00:02 +00:00
Charlie Fenton 6ff6bda42d screensaver: Fix a bug I introduced during code consolidation
svn path=/trunk/boinc/; revision=17346
2009-02-24 12:47:54 +00:00
Rom Walton b402864705 - WINSCR: Fix the BOINC text displayed is the screensaver control
panel applet
    - WINSCR: Get rid of the 'Up to 5 second wait' for the data thread
        to terminate.  Force terminate the thread and clean up the
        graphics app in a clean-up routine.  Forcing the user to wait
        when they return to the system isn't a good idea.
    - WINSCR: Fix screensaver issue where the screensaver locks up
        when the graphics application deadlocks for one reason or
        another.
        
        Create two new threads:
          1. Monitor system for keyboard and mouse events.
          2. Shuffle window z-order positions if needed.
          
        The keyboard/mouse event monitor is isolated from either
          the core client getting stuck in a loop and not returning
          the results of an RPC or the window shuffling code which
          can get stuck if the graphics application dead locks.
          
        The window shuffle code is isolated due to the
          BroadcastSystemMessage() API using something akin to
          SendMessage() which waits for a return value from the
          target windows winproc.  If a graphics application
          deadlocks for one reason or another it'll cause
          the thread to stall.  This isn't terminal and so we
          just wait for the next time the data thread chooses
          a new application and terminates the old one which
          will cause the thread to resume.
          
        This should resolve all outstanding issues with the
          screensaver not exiting when the mouse or keyboard
          is used.
          
    clientscr/
        boinc_ss.rc
        screensaver.cpp
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=17336
2009-02-23 06:09:16 +00:00
Charlie Fenton b4c78c27b4 screensaver: Implement new screensaver coordinator logic as requested by Rom.
svn path=/trunk/boinc/; revision=17322
2009-02-20 11:49:49 +00:00
Charlie Fenton 0668305208 SS: On Windows, get paths to BOINC data and executable directories from Windows registry
svn path=/trunk/boinc/; revision=17256
2009-02-13 11:08:32 +00:00
Rom Walton 7652d57839 - MGR: Bug fixes for the new Exit dialog.
clientgui/
        BOINCBaseFrame.cpp
        BOINCClientManager.h
        BOINCGUIApp.cpp, .h
        BOINCTaskBar.cpp
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=16414
2008-11-04 16:51:31 +00:00
Rom Walton 59d0152c9b - MGR: Provide a way to enable/disable launching from the BOINC Manager
at startup from within the BOINC Manager itself.
    - MGR: Add a command line argument which specifies that the Manager was
        launched by the OS.
    - SCR: Remove the code that checks for the BOINC Manager shortcuts.

    clientgui/
        AdvancedFrame.cpp
        BOINCGUIApp.cpp, .h
        DlgOptions.cpp, .h
        boinc_ss.h
        boinc_ss.rc
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=16406
2008-11-04 09:33:03 +00:00
Rom Walton e8688254e2 - SCR: Fix GDI/Memory leak in the screen saver. Pointed out by David
Barnard.
        
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=16001
2008-09-16 01:14:30 +00:00
Rom Walton d666a7fa07 - WINSCR: Comment updates from Nicolas Alvarez
clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=15871
2008-08-17 17:27:24 +00:00
Rom Walton 8b5adc903a - WINSCR: Certain checks should be done regularly like keyboard/mouse
activity and the notification window check. They should not depend
        on whether or not the graphics window has been displayed or not.
        
    clientscr/
        screensaver.cpp
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=15840
2008-08-14 19:09:01 +00:00
Rom Walton 5d915bf830 - Update copyright strings in various Windows resource files.
client/win/
        boinc_cli.rc
        boinc_cli_2003.rc
        boinc_cmd.rc
    clientgui/
        BOINCGUIApp.rc
        BOINCGUIApp_2003.rc
    clientlib/win/
        boinc_dll.rc
        boinc_dll_2003.rc
    clientscr/
        boinc_ss.rc
        boinc_ss_2003.rc
    clienttray/
        boinc_tray.rc

svn path=/trunk/boinc/; revision=15827
2008-08-13 20:44:08 +00:00
David Anderson 4f66bb4c95 - added copyright and license info to .C, .cpp, .h files
- scheduler: fix bug in adaptive replication:
    if send an unreplicated job to untrusted host,
    set both wu.target_nresults and wu.min_quorum to app.target_nresults.

svn path=/trunk/boinc/; revision=15762
2008-08-06 18:36:30 +00:00
Rom Walton 7e7486a34b - SCR: Don't treat CPU throttling as BOINC beeing suspended.
Fixes #706
    - MGR: If the reminder frequency is 0, then don't show any
        reminder messages.

    clientgui/
        BOINCDialupManager.cpp
    clientscr/
        screensaver.cpp
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=15731
2008-08-01 02:58:20 +00:00
Rom Walton df046f6753 - SCR: BOINC's screensaver module in preview mode only displays
the BOINC icon, since the preview window is only 300x200 or
        so. We shouldn't launch the data management thread when
        launched in preview mode.
        
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=15227
2008-05-15 21:39:40 +00:00
Charlie Fenton c347df8021 SCR: Further changes and cleanup of new Mac screensaver; Fix bug in Windows screensaver
svn path=/trunk/boinc/; revision=14760
2008-02-19 13:27:11 +00:00
Charlie Fenton 86ac82b9af SCR: When running V5 GFX applications as a service / daemon, display appropriate error message instead of trying to display graphics.
svn path=/trunk/boinc/; revision=14645
2008-01-30 04:22:42 +00:00
David Anderson a463661f6b - web: add "max CPU % for graphics" project-specific preference.
Projects should copy or merge
    project.sample/project_specific_prefs.inc
- screensaver: change
        Running research for PROJECT
        Workunit: X
    to
        Computing for PROJECT
        Task: X

svn path=/trunk/boinc/; revision=14637
2008-01-29 20:04:38 +00:00
Rom Walton f0fbf22972 Quick Updates
svn path=/trunk/boinc/; revision=14387
2007-12-14 19:38:42 +00:00
Rom Walton cc9439c1cb Quick Updates
svn path=/trunk/boinc/; revision=14386
2007-12-14 19:36:32 +00:00
Rom Walton ca959f9849 - SCR: Reimplement the screensaver rpc test for v6 so that the
screensaver can trip the firewall while the user is at the
        terminal.
        
    clientscr/
        screensaver_win.cpp

svn path=/trunk/boinc/; revision=14384
2007-12-14 18:26:24 +00:00
Frank Thomas fbcfeaf456 - Removed the svn:executable property from files that should not be executable,
like source code and text files. I skipped to check most files in html/
  and mac_*/ though.
- Added svn:executable to tools/watch_tcp because it has a shebang.


svn path=/trunk/boinc/; revision=13819
2007-10-10 09:25:40 +00:00
Charlie Fenton 5ba31b473f Fix minor bugs in Windows screensaver and cleanup.
svn path=/trunk/boinc/; revision=13808
2007-10-09 12:41:38 +00:00