From 1de3cf470353049ee9974bd6d9a437f556931bea Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 12 Nov 2014 18:35:06 +0100 Subject: Update keybindings when XKB keyboard layout changes * Select for XKB keyboard notification events explicitly; since GTK+ has selected for XKB events, delivery of old-school MappingNotify events is disabled. * Fix a bug where once a keycode was loaded for a key binding, it would never be reassigned; we want to laod new keycodes for all bindings that have a key symbol rather than a fixed keycode. [ With fixes from Owen W. Taylor ] Based on metacity commit: c262e3d65a37abedc507705cddfec72c901c321f From: Derek Poon Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=565540 --- src/core/display.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/display.c') diff --git a/src/core/display.c b/src/core/display.c index 68569f3a..8a81d8f4 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -2580,6 +2580,10 @@ static gboolean event_callback(XEvent* event, gpointer data) meta_bell_notify (display, xkb_ev); } break; + case XkbNewKeyboardNotify: + case XkbMapNotify: + meta_display_process_mapping_event (display, event); + break; } } #endif -- cgit v1.2.1