aboutsummaryrefslogtreecommitdiff
path: root/src/FbAtoms.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbAtoms.hh')
-rw-r--r--src/FbAtoms.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/FbAtoms.hh b/src/FbAtoms.hh
index 63882e2..3fb8b2b 100644
--- a/src/FbAtoms.hh
+++ b/src/FbAtoms.hh
@@ -19,21 +19,21 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbAtoms.hh,v 1.5 2002/08/12 19:25:35 fluxgen Exp $ 22// $Id: FbAtoms.hh,v 1.6 2002/08/14 21:53:07 fluxgen Exp $
23#ifndef FBATOMS_HH 23#ifndef FBATOMS_HH
24#define FBATOMS_HH 24#define FBATOMS_HH
25 25
26#include <X11/Xlib.h> 26#include <X11/Xlib.h>
27#include <X11/Xatom.h> 27#include <X11/Xatom.h>
28
28/** 29/**
29 atom handler, should probably be a singleton 30 atom handler, should probably be a singleton
30*/ 31*/
31class FbAtoms 32class FbAtoms {
32{
33public: 33public:
34 explicit FbAtoms(Display *display); 34 explicit FbAtoms(Display *display);
35 virtual ~FbAtoms(); 35 virtual ~FbAtoms();
36 void initAtoms(Display *display); 36 static FbAtoms *instance();
37 37
38#ifdef GNOME 38#ifdef GNOME
39 inline Atom getGnomeProtAtom() const { return gnome_wm_prot; } 39 inline Atom getGnomeProtAtom() const { return gnome_wm_prot; }
@@ -125,6 +125,7 @@ public:
125#endif // NEWWMSPEC 125#endif // NEWWMSPEC
126 126
127private: 127private:
128 void initAtoms(Display *disp);
128// NETAttributes 129// NETAttributes
129 Atom blackbox_attributes, blackbox_change_attributes, blackbox_hints; 130 Atom blackbox_attributes, blackbox_change_attributes, blackbox_hints;
130 131
@@ -177,6 +178,7 @@ private:
177 xa_wm_delete_window, xa_wm_take_focus, xa_wm_change_state, 178 xa_wm_delete_window, xa_wm_take_focus, xa_wm_change_state,
178 motif_wm_hints; 179 motif_wm_hints;
179 bool m_init; 180 bool m_init;
181 static FbAtoms *s_singleton;
180}; 182};
181 183
182#endif //FBATOMS_HH 184#endif //FBATOMS_HH