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

# XkbGetXlibControls(3)

Determines the current state of the Library Controls

## NAME

XkbGetXlibControls - Determines the current state of the Library Controls

## SYNOPSIS

**unsigned int XkbGetXlibControls** **(Display  \****display***);**

## ARGUMENTS

- *display*

  connection to X server

## DESCRIPTION

*XkbGetXlibControls* returns the current state of the Library Controls as a bit mask that is an inclusive OR of the control masks from Table 1 for the controls that are enabled. For the optional compose processing controls, the fact that a control is enabled does not imply that it is actually implemented.

| | |
| --- | --- |
| Table 1 Library Control Masks |
| Library Control Mask | Value |
| XkbLC\_ForceLatin1Lookup | (1 \<\< 0) |
| XkbLC\_ConsumeLookupMods | (1 \<\< 1) |
| XkbLC\_AlwaysConsumeShiftAndLock | (1 \<\< 2) |
| XkbLC\_IgnoreNewKeyboards | (1 \<\< 3) |
| XkbLC\_ConsumeKeysOnComposeFail | (1 \<\< 29) |
| XkbLC\_ComposeLED | (1 \<\< 30) |
| XkbLC\_BeepOnComposeFail | (1 \<\< 31) |
| XkbLC\_AllControls | (0xc0000007) |
