aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authoroga2008-07-22 21:01:54 +0000
committeroga2008-07-22 21:01:54 +0000
commitdd42db089ff9274876abed27db09073d2450fa29 (patch)
tree566b78bec8cb8bae01f6a9f0a5708dee35923f07 /calmwm.c
parent67b8780562e9d846a7ca5912fb0bd385c7ae5da5 (diff)
downloadcwm-dd42db089ff9274876abed27db09073d2450fa29.tar.gz
fix the froggy problem.
Implement a handler for the MappingEvent, meaning that the keymap has changed. When this happens, ungrab all bindings, update the map, and regrab. Fixes the problem where some keybindings wouldn't work under non us or uk keymaps (especially the .fr map, it seems). Issue noticed by ajacoutot@, ratchov@, and a few people on misc. Based on an initial diff from ratchov@. ok okan.
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calmwm.c b/calmwm.c
index 77f9f52..6508f1d 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.c,v 1.26 2008/07/22 20:51:54 oga Exp $
+ * $Id: calmwm.c,v 1.27 2008/07/22 21:01:54 oga Exp $
*/
#include "headers.h"
@@ -101,6 +101,7 @@ main(int argc, char **argv)
XEV_QUICK(NULL, NULL, Expose, xev_handle_expose, NULL);
XEV_QUICK(NULL, NULL, DestroyNotify, xev_handle_destroynotify, NULL);
XEV_QUICK(NULL, NULL, ClientMessage, xev_handle_clientmessage, NULL);
+ XEV_QUICK(NULL, NULL, MappingNotify, xev_handle_mapping, NULL);
xev_loop();