aboutsummaryrefslogtreecommitdiff
path: root/src/FbAtoms.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 20:09:06 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 20:09:06 (GMT)
commit8a08110f194170cff462d292d5851735aa5f19ed (patch)
tree6047d4ea2b95fef762c0dfb31c8fa90cc77aab5b /src/FbAtoms.hh
parentdc5a105c3e79e8ede296e22217e7406cf24e9495 (diff)
downloadfluxbox-8a08110f194170cff462d292d5851735aa5f19ed.zip
fluxbox-8a08110f194170cff462d292d5851735aa5f19ed.tar.bz2
simpler way of expressing 'Singleton' for 'FbAtoms'
Diffstat (limited to 'src/FbAtoms.hh')
-rw-r--r--src/FbAtoms.hh17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/FbAtoms.hh b/src/FbAtoms.hh
index 2a48e6e..3ed52a5 100644
--- a/src/FbAtoms.hh
+++ b/src/FbAtoms.hh
@@ -27,7 +27,6 @@
27/// atom handler for basic X atoms 27/// atom handler for basic X atoms
28class FbAtoms { 28class FbAtoms {
29public: 29public:
30 FbAtoms();
31 ~FbAtoms(); 30 ~FbAtoms();
32 31
33 static FbAtoms *instance(); 32 static FbAtoms *instance();
@@ -45,16 +44,16 @@ public:
45 Atom getFluxboxAttributesAtom() const { return blackbox_attributes; } 44 Atom getFluxboxAttributesAtom() const { return blackbox_attributes; }
46 45
47private: 46private:
48 void initAtoms(); 47 FbAtoms();
49// NETAttributes 48
50 Atom blackbox_attributes; 49 Atom blackbox_attributes;
51 Atom motif_wm_hints; 50 Atom motif_wm_hints;
52 51 Atom xa_wm_protocols;
53 Atom xa_wm_protocols, xa_wm_state, 52 Atom xa_wm_state;
54 xa_wm_delete_window, xa_wm_take_focus, xa_wm_change_state; 53 Atom xa_wm_delete_window;
55 54 Atom xa_wm_take_focus;
56 bool m_init; 55 Atom xa_wm_change_state;
57 static FbAtoms *s_singleton;
58}; 56};
59 57
60#endif //FBATOMS_HH 58#endif //FBATOMS_HH
59