all repos — fluxbox @ 61b04e336632ff1cf0bf38ef6b35ebf29288060c

custom fork of the fluxbox windowmanager

need to reset keybindings when keymap changes
Mark Tiefenbruck mark@fluxbox.org
commit

61b04e336632ff1cf0bf38ef6b35ebf29288060c

parent

398b63c7c54f16f92dfbd305f6899253372a4260

2 files changed, 6 insertions(+), 7 deletions(-)

jump to
M src/Keys.hhsrc/Keys.hh

@@ -75,8 +75,11 @@ void unregisterWindow(Window win);

const std::string& filename() const { return m_filename; } /** - Reload configuration from filename - @return true on success, else false + Load configuration from file + */ + void reload(); + /** + Reload configuration if keys file has changed */ void reconfigure(); void keyMode(const std::string& keyMode);

@@ -94,10 +97,6 @@ void grabButton(unsigned int button, unsigned int mod, int context);

void ungrabButtons(); void grabWindow(Window win); - /** - Load configuration from file - */ - void reload(); // Load default keybindings for when there are errors loading the keys file void loadDefaults(); void setKeyMode(t_key *keyMode);
M src/fluxbox.ccsrc/fluxbox.cc

@@ -751,7 +751,7 @@ || e->xmapping.request == MappingModifier) {

XRefreshKeyboardMapping(&e->xmapping); FbTk::KeyUtil::instance().init(); // reinitialise the key utils // reconfigure keys (if the mapping changes, they don't otherwise update - m_key->reconfigure(); + m_key->reload(); } break; case CreateNotify: