checkpoint. adding screen saver support. only on X so far

and untested.  also some known problems:  not detecting an
xscreensaver started after us and not detecting built-in
screen saver activation (not sure if we can without using
ugly extensions).
This commit is contained in:
crs
2002-06-22 19:20:21 +00:00
parent 4e37691a9c
commit 504bfa2def
16 changed files with 532 additions and 30 deletions

View File

@@ -10,7 +10,9 @@
#endif
class IClipboard;
class IScreenSaver;
class CXWindowsClipboard;
class CXWindowsScreenSaver;
class CXWindowsScreen {
public:
@@ -68,6 +70,10 @@ protected:
bool getDisplayClipboard(ClipboardID,
IClipboard* clipboard) const;
// get the screen saver object
CXWindowsScreenSaver*
getScreenSaver() const;
// called by openDisplay() to allow subclasses to prepare the display.
// the display is locked and passed to the subclass.
virtual void onOpenDisplay(Display*) = 0;
@@ -116,6 +122,9 @@ private:
// clipboards
CXWindowsClipboard* m_clipboard[kClipboardEnd];
// screen saver
CXWindowsScreenSaver* m_screenSaver;
// X is not thread safe
CMutex m_mutex;