need to reset keybindings when keymap changes

This commit is contained in:
Mark Tiefenbruck 2008-05-15 12:30:11 -07:00
parent 398b63c7c5
commit 61b04e3366
2 changed files with 6 additions and 7 deletions

View file

@ -75,8 +75,11 @@ public:
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 @@ private:
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);

View file

@ -751,7 +751,7 @@ void Fluxbox::handleEvent(XEvent * const e) {
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: