---
name: "XkbSASetGroup"
section: "3"
platform: "linux"
package: "libx11"
version: "1.8.14-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XkbSASetGroup"
---

# XkbSASetGroup(3)

Sets the group\_XXX field of act from the group index grp

## NAME

XkbSASetGroup - Sets the group\_XXX field of act from the group index grp

## SYNOPSIS

**void XkbSASetGroup** **(XkbAction** *act***,** **int** *grp***);**

## ARGUMENTS

- *act*

  action from which to set group

- *grp*

  group index to set in group\_XXX

## DESCRIPTION

*XkbSASetGroup* sets the *group\_XXX* field of *act* from the group index *grp.*

## STRUCTURE

Actions associated with the XkbGroupAction structure change the current group state when keys are pressed and released:

```
    typedef struct _XkbGroupAction {
        unsigned char    type;       /* XkbSA_{Set|Latch|Lock}Group */
        unsigned char    flags;      /* with type, controls the effect on groups */
        char             group_XXX;  /* represents a group index or delta */
    } XkbGroupAction;
```

## WARNING

This manpage seems to be incomplete
