diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-08 20:09:06 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-08 20:09:06 (GMT) |
commit | 8a08110f194170cff462d292d5851735aa5f19ed (patch) | |
tree | 6047d4ea2b95fef762c0dfb31c8fa90cc77aab5b /src/FbAtoms.hh | |
parent | dc5a105c3e79e8ede296e22217e7406cf24e9495 (diff) | |
download | fluxbox-8a08110f194170cff462d292d5851735aa5f19ed.zip fluxbox-8a08110f194170cff462d292d5851735aa5f19ed.tar.bz2 |
simpler way of expressing 'Singleton' for 'FbAtoms'
Diffstat (limited to 'src/FbAtoms.hh')
-rw-r--r-- | src/FbAtoms.hh | 17 |
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 |
28 | class FbAtoms { | 28 | class FbAtoms { |
29 | public: | 29 | public: |
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 | ||
47 | private: | 46 | private: |
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 | |||