aboutsummaryrefslogtreecommitdiff
path: root/src/AtomHandler.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-13 20:04:24 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-13 20:04:24 (GMT)
commitdeb6a1ebf43f458b720abbc6a7180e9a8e04771a (patch)
treeecff64e1eb70e43ff15b93de2f98953cfadd0067 /src/AtomHandler.hh
parentf6af17aa58701cdb579cca52ac83edf289e118e7 (diff)
downloadfluxbox-deb6a1ebf43f458b720abbc6a7180e9a8e04771a.zip
fluxbox-deb6a1ebf43f458b720abbc6a7180e9a8e04771a.tar.bz2
code simplification
we do not need a std::map just to store an attribute on an AtomHandler, it makes housekeeping just more annoying.
Diffstat (limited to 'src/AtomHandler.hh')
-rw-r--r--src/AtomHandler.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/AtomHandler.hh b/src/AtomHandler.hh
index aa38ed2..6e517d0 100644
--- a/src/AtomHandler.hh
+++ b/src/AtomHandler.hh
@@ -23,6 +23,7 @@
23#ifndef ATOMHANDLER_HH 23#ifndef ATOMHANDLER_HH
24#define ATOMHANDLER_HH 24#define ATOMHANDLER_HH
25 25
26#include <string>
26#include <X11/Xlib.h> 27#include <X11/Xlib.h>
27 28
28class FluxboxWindow; 29class FluxboxWindow;
@@ -61,6 +62,10 @@ public:
61 62
62 /// should this object be updated or not? 63 /// should this object be updated or not?
63 bool update() const { return m_update; } 64 bool update() const { return m_update; }
65
66 void setName(const std::string& name) { m_name = name; }
67 const std::string& getName() const { return m_name; }
68
64protected: 69protected:
65 AtomHandler():m_update(true) { } 70 AtomHandler():m_update(true) { }
66 71
@@ -68,6 +73,7 @@ protected:
68 void enableUpdate() { m_update = true; } 73 void enableUpdate() { m_update = true; }
69private: 74private:
70 bool m_update; ///< do we get update or not 75 bool m_update; ///< do we get update or not
76 std::string m_name; ///< name of atomhandler
71}; 77};
72 78
73#endif // ATOMHANDLER_HH 79#endif // ATOMHANDLER_HH