Method

GdkX11X11Keymapget_group_for_state

since: 3.6

Declaration [src]

gint
gdk_x11_keymap_get_group_for_state (
  GdkKeymap* keymap,
  guint state
)

Description [src]

Extracts the group from the state field sent in an X Key event. This is only needed for code processing raw X events, since GdkEventKey directly includes an is_modifier field.

Available since: 3.6

Parameters

state

Type: guint

Raw state returned from X.

Return value

Type: gint

The index of the active keyboard group for the event.