summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-11-08 21:55:32 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-11-09 22:13:19 +0800
commit60a30874c83678493dc88daf67d3815bf4f1fb80 (patch)
treefd73d3f31920a75b9150d582151aa3be0b350e3e /include
parentd1059ce4bd8eefabde35a0cc1c51e313dfc78fb1 (diff)
downloadmobileperf-60a30874c83678493dc88daf67d3815bf4f1fb80.tar.gz
mobileperf-60a30874c83678493dc88daf67d3815bf4f1fb80.tar.bz2
Don't increase core action register reference counts if the same action was already registered
Diffstat (limited to 'include')
-rw-r--r--include/core/action.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/core/action.h b/include/core/action.h
index 006ba30..0951a33 100644
--- a/include/core/action.h
+++ b/include/core/action.h
@@ -75,7 +75,7 @@ class CompAction {
StateAutoGrab = 1 << 11,
StateNoEdgeDelay = 1 << 12
} StateEnum;
-
+
/**
* Type of event a CompAction is bound to.
*/
@@ -167,6 +167,10 @@ class CompAction {
static CompString edgeToString (unsigned int edge);
+ bool active ();
+
+ friend class CompScreen;
+
private:
PrivateAction *priv;
};