accessing current keyboard group (layout) using GDK

It is possible to access much of the keyboard state in GDK. For example, gdk_keymap_get_caps_lock_state gets the state of the caps lock modifier. It is also possible to get the entire modifier state using gdk_keymap_get_modifier_state. Is it possible to get the current keyboard group? GDK must keep track of it to be able to translate keycode to keysyms. I’m willing to accept a method that peeks behind the GDK abstraction and gets the underlying XKB keyboard state, but I don’t want to use a method that only works under X11.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.