GNOME Bugzilla – Bug 616401
Noneffective gdk_keymap_map_virtual_modifiers in early use
Last modified: 2010-08-25 05:07:32 UTC
Using Gtk+ 2.20.0-2 (debian package, unstable). My application uses gdk_keymap_map_virtual_modifiers and this function is uneffective if called early enough in the process. Virtual modifiers are not mapped to non-virtual (in this case, testing Super, mapped to Mod4). Later use (after opening first application window, the virtuals are correctly mapped). I wonder if the function gdk_keymap_map_virtual_modifiers for example needs to call the update_modmap function from the same source file. Or what else can my application do to make sure the keymap it uses (gdk_keymap_get_default()) is "up to date"?
Note: Working with my theory, I added a call to 'gdk_keymap_have_bidi_layouts(keymap)' just before the call to 'gdk_keymap_map_virtual_modifiers(keymap, &modifiers);'. This workaround actually makes the application map the virtuals.
I guess you are right. A patch would be appreciated.