aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-07-10 14:10:39 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-07-10 17:44:43 (GMT)
commit1ecc9ef56e74e6eea3d6cecb77a76562b8e103d7 (patch)
tree5e6334754b5e6cad6d51eb61d60e1ac0dda675ff /src/Keys.hh
parenta579f3b278e59ea3dcd1002bedcdb96e0bb89cb6 (diff)
downloadfluxbox_pavel-1ecc9ef56e74e6eea3d6cecb77a76562b8e103d7.zip
fluxbox_pavel-1ecc9ef56e74e6eea3d6cecb77a76562b8e103d7.tar.bz2
Attach a modifiedSig handler to the session.keyFile resource
Diffstat (limited to 'src/Keys.hh')
-rw-r--r--src/Keys.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Keys.hh b/src/Keys.hh
index 43f4445..2dc1c10 100644
--- a/src/Keys.hh
+++ b/src/Keys.hh
@@ -23,6 +23,7 @@
23#define KEYS_HH 23#define KEYS_HH
24 24
25#include "FbTk/NotCopyable.hh" 25#include "FbTk/NotCopyable.hh"
26#include "FbTk/Signal.hh"
26 27
27#include <X11/Xlib.h> 28#include <X11/Xlib.h>
28#include <string> 29#include <string>
@@ -35,7 +36,7 @@ namespace FbTk {
35 class AutoReloadHelper; 36 class AutoReloadHelper;
36} 37}
37 38
38class Keys:private FbTk::NotCopyable { 39class Keys: private FbTk::NotCopyable, private FbTk::SignalTracker {
39public: 40public:
40 41
41 // contexts for events 42 // contexts for events
@@ -79,7 +80,6 @@ public:
79 /// grab keys again when keymap changes 80 /// grab keys again when keymap changes
80 void regrab(); 81 void regrab();
81 82
82 const std::string& filename() const { return m_filename; }
83 /** 83 /**
84 Load configuration from file 84 Load configuration from file
85 */ 85 */
@@ -87,7 +87,6 @@ public:
87 /** 87 /**
88 Reload configuration if keys file has changed 88 Reload configuration if keys file has changed
89 */ 89 */
90 void reconfigure();
91 void keyMode(const std::string& keyMode); 90 void keyMode(const std::string& keyMode);
92 91
93 bool inKeychain() const { return saved_keymode != 0; } 92 bool inKeychain() const { return saved_keymode != 0; }
@@ -112,7 +111,6 @@ private:
112 111
113 112
114 // member variables 113 // member variables
115 std::string m_filename;
116 FbTk::AutoReloadHelper* m_reloader; 114 FbTk::AutoReloadHelper* m_reloader;
117 t_key *m_keylist; 115 t_key *m_keylist;
118 keyspace_t m_map; 116 keyspace_t m_map;