summaryrefslogtreecommitdiff
path: root/src/FbTk/KeyUtil.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/KeyUtil.hh')
-rw-r--r--src/FbTk/KeyUtil.hh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FbTk/KeyUtil.hh b/src/FbTk/KeyUtil.hh
index a6051f6..019fbc5 100644
--- a/src/FbTk/KeyUtil.hh
+++ b/src/FbTk/KeyUtil.hh
@@ -19,7 +19,7 @@
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: KeyUtil.hh,v 1.2 2003/10/05 07:20:35 rathnor Exp $ 22// $Id: KeyUtil.hh,v 1.3 2003/10/13 19:31:56 fluxgen Exp $
23 23
24#ifndef FBTK_KEYUTIL_HH 24#ifndef FBTK_KEYUTIL_HH
25#define FBTK_KEYUTIL_HH 25#define FBTK_KEYUTIL_HH
@@ -27,6 +27,8 @@
27#include <X11/Xlib.h> 27#include <X11/Xlib.h>
28#include <X11/keysym.h> 28#include <X11/keysym.h>
29 29
30#include <memory>
31
30namespace FbTk { 32namespace FbTk {
31 33
32class KeyUtil { 34class KeyUtil {
@@ -36,7 +38,7 @@ public:
36 ~KeyUtil(); 38 ~KeyUtil();
37 39
38 void init(); 40 void init();
39 static KeyUtil *instance(); 41 static KeyUtil &instance();
40 42
41 /** 43 /**
42 Grab the specified key 44 Grab the specified key
@@ -78,7 +80,7 @@ private:
78 void loadModmap(); 80 void loadModmap();
79 81
80 XModifierKeymap *m_modmap; 82 XModifierKeymap *m_modmap;
81 static KeyUtil *s_keyutil; 83 static std::auto_ptr<KeyUtil> s_keyutil;
82}; 84};
83 85
84} // end namespace FbTk 86} // end namespace FbTk