---
name: "X11::XCB::Connection"
section: "3pm"
platform: "linux"
package: "libx11-xcb-perl"
version: "0.22-1+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/X11::XCB::Connection"
---

# X11::XCB::Connection(3pm)

connection to the X server

## NAME

X11::XCB::Connection - connection to the X server

## METHODS

### atom

Returns a new `"X11::XCB::Atom"` assigned to this connection.

### color

Returns a new `"X11::XCB::Color"` assigned to this connection.

### root

Returns a new `"X11::XCB::Window"` representing the X11 root window.

### input\_focus

Returns the X11 input focus (a window ID).

### screens

Returns an arrayref of X11::XCB::Screens.

### get\_keymap

Returns intrinsically created array with X11 Keymap:

```
  [
    undef, # index in array is a key's scan code: 0
    ...
    [0x31, 0x21, 0x31, 0x21, 0x0, 0x0, 0x0], # key symbol codes. scan code 10 represents key '1'
    ...
  ]
```

### get\_query\_tree\_children

Returns intrinsically created array with children windows identifiers for specified window:

```
  [ id1, id2, id3 ]
```
