summaryrefslogtreecommitdiff
path: root/fadedesktop.h
diff options
context:
space:
mode:
Diffstat (limited to 'fadedesktop.h')
-rw-r--r--fadedesktop.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/fadedesktop.h b/fadedesktop.h
index 9c5a899..bde4152 100644
--- a/fadedesktop.h
+++ b/fadedesktop.h
@@ -36,17 +36,18 @@ class FadedesktopScreen :
{
public:
- typedef enum
- {
- FD_STATE_OFF = 0,
- FD_STATE_OUT,
- FD_STATE_ON,
- FD_STATE_IN
- } FadeDesktopState;
+ typedef enum {
+ Off,
+ Out,
+ On,
+ In
+ } State;
public:
FadedesktopScreen (CompScreen *);
+ void activateEvent (bool);
+
void preparePaint (int);
void donePaint ();
@@ -56,8 +57,8 @@ class FadedesktopScreen :
CompositeScreen *cScreen;
GLScreen *gScreen;
- FadeDesktopState state;
- int fadeTime;
+ State state;
+ int fadeTime;
};
class FadedesktopWindow :
@@ -69,6 +70,8 @@ class FadedesktopWindow :
FadedesktopWindow (CompWindow *);
+ bool isFadedesktopWindow ();
+
bool glPaint (const GLWindowPaintAttrib &,
const GLMatrix &,
const CompRegion &,