GNOME Bugzilla – Bug 164082
metacity does not use custom keybindings the first time GNOME loads it
Last modified: 2009-11-20 21:44:45 UTC
Please describe the problem: When I first start a GNOME session, my internet application keys IA1-IA8, which are assigned to run_command_11, and run_command_2-run_command_8 do not run the assigned keybinding_commands. Steps to reproduce: 1. Use gconf-editor to assign IA1 to apps/metacity/global_keybindings/run_command_11 2. Assign gnome-terminal to apps/metacity/keybinding_commands/command_11 3. Logout of GNOME session and log in again 4. Press IA1 key Actual results: Nothing happens Expected results: gnome-terminal should start Does this happen every time? Yes Other information: Workaround: add "killall metacity" to the gnome-session-properties Startup Programs to force a restart.
Created attachment 36014 [details] Log of initial non-functioning metacity created with METACITY_VERBOSE=1 METACITY_USE_LOGFILE=1
Created attachment 36015 [details] Log of subsequent functioning metacity
The difference in these logs is that the working one has: KEYBINDINGS: Grabbing keybinding IA2 mask 0x0 on 0x3f and so forth. They both load the IA* bindings from gconf. The only reason I can think of why the grabbing wouldn't happen is if keycode == 0 i.e. KeysymToKeycode is returning 0. That would indicate that the keysyms are unbound. Neither log has a line about a Mapping event that I see.
*** Bug 165958 has been marked as a duplicate of this bug. ***
I've just filed bug http://bugzilla.gnome.org/show_bug.cgi?id=565540 with proposed patches. I suspect that it may be the cause of this bug.
Consolidating bugs about not picking up layout changes, hopefully they are all actually the same. *** This bug has been marked as a duplicate of bug 565540 ***