diff options
Diffstat (limited to 'src/Keys.hh')
-rw-r--r-- | src/Keys.hh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Keys.hh b/src/Keys.hh index 2dc1c10..e51911d 100644 --- a/src/Keys.hh +++ b/src/Keys.hh | |||
@@ -93,7 +93,8 @@ public: | |||
93 | 93 | ||
94 | private: | 94 | private: |
95 | class t_key; // helper class to build a 'keytree' | 95 | class t_key; // helper class to build a 'keytree' |
96 | typedef std::map<std::string, t_key *> keyspace_t; | 96 | typedef FbTk::RefCount<t_key> RefKey; |
97 | typedef std::map<std::string, RefKey> keyspace_t; | ||
97 | typedef std::map<Window, int> WindowMap; | 98 | typedef std::map<Window, int> WindowMap; |
98 | typedef std::map<Window, FbTk::EventHandler*> HandlerMap; | 99 | typedef std::map<Window, FbTk::EventHandler*> HandlerMap; |
99 | 100 | ||
@@ -107,16 +108,16 @@ private: | |||
107 | 108 | ||
108 | // Load default keybindings for when there are errors loading the keys file | 109 | // Load default keybindings for when there are errors loading the keys file |
109 | void loadDefaults(); | 110 | void loadDefaults(); |
110 | void setKeyMode(t_key *keyMode); | 111 | void setKeyMode(const FbTk::RefCount<t_key> &keyMode); |
111 | 112 | ||
112 | 113 | ||
113 | // member variables | 114 | // member variables |
114 | FbTk::AutoReloadHelper* m_reloader; | 115 | FbTk::AutoReloadHelper* m_reloader; |
115 | t_key *m_keylist; | 116 | RefKey m_keylist; |
116 | keyspace_t m_map; | 117 | keyspace_t m_map; |
117 | 118 | ||
118 | // former doAction static var, we need to access it from deleteTree | 119 | RefKey next_key; |
119 | t_key *next_key, *saved_keymode; | 120 | RefKey saved_keymode; |
120 | 121 | ||
121 | WindowMap m_window_map; | 122 | WindowMap m_window_map; |
122 | HandlerMap m_handler_map; | 123 | HandlerMap m_handler_map; |