diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2014-04-09 20:40:13 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2014-04-09 20:40:13 (GMT) |
commit | 617635f8eb87bd21ef9e57a578398fbba14173f2 (patch) | |
tree | d4bdc5357effa12b2af765d3cfd40bb7b5d1300d /src/fluxbox.hh | |
parent | 121bd23862ad49e2acb3d47bc19cad5294383e4e (diff) | |
download | fluxbox-617635f8eb87bd21ef9e57a578398fbba14173f2.zip fluxbox-617635f8eb87bd21ef9e57a578398fbba14173f2.tar.bz2 |
fix excessive loading of keys file caused by xmodmap
xmodmap (and other tools) trigger MappingNotify events. a single xmodmap
expression such as "keycode comma = comma semicolon" might trigger 4 or 5
MappingNotify events. loading the keys file on each of them is quite
unefficient.
fluxbox now uses a (250ms) timer which is reset upon further events.
Diffstat (limited to 'src/fluxbox.hh')
-rw-r--r-- | src/fluxbox.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fluxbox.hh b/src/fluxbox.hh index f6a8f26..d0bc239 100644 --- a/src/fluxbox.hh +++ b/src/fluxbox.hh | |||
@@ -277,6 +277,7 @@ private: | |||
277 | 277 | ||
278 | ///< when we execute reconfig command we must wait until next event round | 278 | ///< when we execute reconfig command we must wait until next event round |
279 | FbTk::Timer m_reconfig_timer; | 279 | FbTk::Timer m_reconfig_timer; |
280 | FbTk::Timer m_key_reload_timer; | ||
280 | bool m_showing_dialog; | 281 | bool m_showing_dialog; |
281 | 282 | ||
282 | std::auto_ptr<Keys> m_key; | 283 | std::auto_ptr<Keys> m_key; |