all repos — fluxbox @ f5fdbab98c437fe4eb5f74d82152a9a9ef7a47ed

custom fork of the fluxbox windowmanager

don't reload keys file on modifier map events, just re-grab keys
Mark Tiefenbruck mark@fluxbox.org
commit

f5fdbab98c437fe4eb5f74d82152a9a9ef7a47ed

parent

3b9611b61ddc023225092a85b21867131fb363cc

4 files changed, 11 insertions(+), 1 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,8 @@

(Format: Year/Month/Day) Changes for 1.1.2 +*08/11/01: + * Don't reload keys file when modifier map changes, just regrab (Mark) + Keys.cc/hh fluxbox.cc *08/10/15: * Don't allow resizing to negative dimensions (Mathias) Window.cc/hh
M src/Keys.ccsrc/Keys.cc

@@ -571,6 +571,10 @@ m_reloader->setMainFile(m_filename);

m_reloader->checkReload(); } +void Keys::regrab() { + setKeyMode(m_keylist); +} + void Keys::keyMode(const string& keyMode) { keyspace_t::iterator it = m_map.find(keyMode + ":"); if (it == m_map.end())
M src/Keys.hhsrc/Keys.hh

@@ -73,6 +73,9 @@ void registerWindow(Window win, FbTk::EventHandler &handler, int context);

/// unregister window void unregisterWindow(Window win); + /// grab keys again when keymap changes + void regrab(); + const std::string& filename() const { return m_filename; } /** Load configuration from file
M src/fluxbox.ccsrc/fluxbox.cc

@@ -772,7 +772,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->reload(); + m_key->regrab(); } break; case CreateNotify: