summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2009-02-28 12:32:08 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2009-02-28 12:32:08 +0900
commitdb192fc5cfeb47d8e861277b9833d5ae30f35a70 (patch)
tree63f4a9b8caa68c95763bd88261d63b70264f17eb
parent2ac06c21cbf9d38f25f6466c9e357d87d8a0aa6a (diff)
downloadmousepoll-db192fc5cfeb47d8e861277b9833d5ae30f35a70.tar.gz
mousepoll-db192fc5cfeb47d8e861277b9833d5ae30f35a70.tar.bz2
Added 'active' getter
-rw-r--r--mousepoll.cpp6
-rw-r--r--mousepoll.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/mousepoll.cpp b/mousepoll.cpp
index 41204f3..dc828ff 100644
--- a/mousepoll.cpp
+++ b/mousepoll.cpp
@@ -147,6 +147,12 @@ MousePoller::stop ()
ms->removeTimer (this);
}
+bool
+MousePoller::active ()
+{
+ return mActive;
+}
+
CompPoint
MousePoller::getCurrentPosition ()
{
diff --git a/mousepoll.h b/mousepoll.h
index 0209831..7061792 100644
--- a/mousepoll.h
+++ b/mousepoll.h
@@ -41,6 +41,9 @@ class MousePoller
void
stop ();
+ bool
+ active ();
+
CompPoint
getPosition ();