summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2009-02-28 15:42:42 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2009-02-28 15:42:42 +0900
commit9c74bb789afb7b4b6d1f093efcea2df621998373 (patch)
tree78dc39a012fda9b179bc2ced55a5a4f4a9a0d8a9
parentdb192fc5cfeb47d8e861277b9833d5ae30f35a70 (diff)
downloadmousepoll-9c74bb789afb7b4b6d1f093efcea2df621998373.tar.gz
mousepoll-9c74bb789afb7b4b6d1f093efcea2df621998373.tar.bz2
Store plugin ABI in screen
-rw-r--r--mousepoll.cpp10
-rw-r--r--private.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/mousepoll.cpp b/mousepoll.cpp
index dc828ff..4c126b5 100644
--- a/mousepoll.cpp
+++ b/mousepoll.cpp
@@ -249,5 +249,15 @@ MousepollPluginVTable::init ()
getMetadata ()->addFromOptionInfo (mousepollOptionInfo, MP_OPTION_NUM);
getMetadata ()->addFromFile (name ());
+ CompPrivate p;
+ p.uval = COMPIZ_MOUSEPOLL_ABI;
+ screen->storeValue ("mousepoll_ABI", p);
+
return true;
}
+
+void
+MousepollPluginVTable::fini ()
+{
+ screen->eraseValue ("mousepoll_ABI");
+}
diff --git a/private.h b/private.h
index 12a8d4c..34662cf 100644
--- a/private.h
+++ b/private.h
@@ -76,6 +76,7 @@ class MousepollPluginVTable :
public:
bool init ();
+ void fini ();
PLUGIN_OPTION_HELPER (MousepollScreen);