aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/Keys.cc4
-rw-r--r--src/Keys.hh3
-rw-r--r--src/fluxbox.cc2
4 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 67ee11d..bc9f25a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.1.2 2Changes for 1.1.2
3*08/11/01:
4 * Don't reload keys file when modifier map changes, just regrab (Mark)
5 Keys.cc/hh fluxbox.cc
3*08/10/15: 6*08/10/15:
4 * Don't allow resizing to negative dimensions (Mathias) 7 * Don't allow resizing to negative dimensions (Mathias)
5 Window.cc/hh 8 Window.cc/hh
diff --git a/src/Keys.cc b/src/Keys.cc
index 658820e..ac25588 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -571,6 +571,10 @@ void Keys::reconfigure() {
571 m_reloader->checkReload(); 571 m_reloader->checkReload();
572} 572}
573 573
574void Keys::regrab() {
575 setKeyMode(m_keylist);
576}
577
574void Keys::keyMode(const string& keyMode) { 578void Keys::keyMode(const string& keyMode) {
575 keyspace_t::iterator it = m_map.find(keyMode + ":"); 579 keyspace_t::iterator it = m_map.find(keyMode + ":");
576 if (it == m_map.end()) 580 if (it == m_map.end())
diff --git a/src/Keys.hh b/src/Keys.hh
index 9502643..af64a1d 100644
--- a/src/Keys.hh
+++ b/src/Keys.hh
@@ -73,6 +73,9 @@ public:
73 /// unregister window 73 /// unregister window
74 void unregisterWindow(Window win); 74 void unregisterWindow(Window win);
75 75
76 /// grab keys again when keymap changes
77 void regrab();
78
76 const std::string& filename() const { return m_filename; } 79 const std::string& filename() const { return m_filename; }
77 /** 80 /**
78 Load configuration from file 81 Load configuration from file
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 706556c..93768da 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -772,7 +772,7 @@ void Fluxbox::handleEvent(XEvent * const e) {
772 XRefreshKeyboardMapping(&e->xmapping); 772 XRefreshKeyboardMapping(&e->xmapping);
773 FbTk::KeyUtil::instance().init(); // reinitialise the key utils 773 FbTk::KeyUtil::instance().init(); // reinitialise the key utils
774 // reconfigure keys (if the mapping changes, they don't otherwise update 774 // reconfigure keys (if the mapping changes, they don't otherwise update
775 m_key->reload(); 775 m_key->regrab();
776 } 776 }
777 break; 777 break;
778 case CreateNotify: 778 case CreateNotify: