diff options
author | oga <oga> | 2008-07-22 21:01:54 +0000 |
---|---|---|
committer | oga <oga> | 2008-07-22 21:01:54 +0000 |
commit | 04441482d4ceab6eab0eaadc5188997a245bf061 (patch) | |
tree | e4503178a9c64b969123b4ef028003a4b0f96794 /calmwm.h | |
parent | 0df9e0673c948d588be79ba5beef761d3709b3d5 (diff) | |
download | cwm-04441482d4ceab6eab0eaadc5188997a245bf061.tar.gz cwm-04441482d4ceab6eab0eaadc5188997a245bf061.tar.xz cwm-04441482d4ceab6eab0eaadc5188997a245bf061.zip |
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.h')
-rw-r--r-- | calmwm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/calmwm.h b/calmwm.h index 7433f56..c20e66d 100644 --- a/calmwm.h +++ b/calmwm.h @@ -369,6 +369,7 @@ void xev_handle_keyrelease(struct xevent *, XEvent *); void xev_handle_expose(struct xevent *, XEvent *); void xev_handle_clientmessage(struct xevent *, XEvent *); void xev_handle_shape(struct xevent *, XEvent *); +void xev_handle_mapping(struct xevent *, XEvent *); #define XEV_QUICK(a, b, c, d, e) do { \ xev_register(xev_new(a, b, c, d, e)); \ |