get_group_for_state


Description:

[ Version ( since = "3.6" ) ]
public int get_group_for_state (uint state)

Extracts the group from the state field sent in an X Key event.

This is only needed for code processing raw X events, since EventKey directly includes an is_modifier field.

Parameters:

this

a Keymap

state

raw state returned from X

Returns:

the index of the active keyboard group for the event