summaryrefslogtreecommitdiff
path: root/src/action.cpp
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-08 21:55:32 +0800
commite9784868c65bf0cf7c1f7e354fcbe00d8da4edfe (patch)
treee78b9f435445b1066fce203ef3af2144fbfdf2f6 /src/action.cpp
parent86d92fd7eb95c24d0f99e9c8f17d3f07d66c4468 (diff)
downloadunity-window-decorator-e9784868c65bf0cf7c1f7e354fcbe00d8da4edfe.tar.gz
unity-window-decorator-e9784868c65bf0cf7c1f7e354fcbe00d8da4edfe.tar.bz2
Don't increase core action register reference counts if the same action was already registered
Diffstat (limited to 'src/action.cpp')
-rw-r--r--src/action.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/action.cpp b/src/action.cpp
index ab8cfb5..2c97244 100644
--- a/src/action.cpp
+++ b/src/action.cpp
@@ -620,6 +620,12 @@ CompAction::edgeToString (unsigned int edge)
return edges[edge].name;
}
+bool
+CompAction::active ()
+{
+ return priv->active;
+}
+
PrivateAction::PrivateAction () :
initiate (),
terminate (),
@@ -628,7 +634,8 @@ PrivateAction::PrivateAction () :
key (),
button (),
bell (false),
- edgeMask (0)
+ edgeMask (0),
+ active (false)
{
memset (&priv, 0, sizeof (CompPrivate));
}