Lines Matching defs:xkb
50 XkbDescPtr xkb;
69 if (!(xkb = XkbAllocKeyboard())) {
73 if (XkbGetIndicatorMap(display, XkbAllIndicatorsMask, xkb)) {
77 if (XkbGetNames(display, XkbAllNamesMask, xkb)) {
82 if (xkb->indicators->phys_indicators & (1 << i)) {
83 printf("led %d = %d\n", i, xkb->indicators->maps[i].flags);
84 old[i] = xkb->indicators->maps[i].flags;
85 xkb->indicators->maps[i].flags = XkbIM_NoAutomatic;
88 printf("XkbSetIndicatorMap = %d\n", XkbSetIndicatorMap(display, ~0, xkb));
89 XkbFreeKeyboard(xkb, 0, True);
92 if (!(xkb = XkbAllocKeyboard())) {
96 if (XkbGetIndicatorMap(display, XkbAllIndicatorsMask, xkb)) {
101 if (xkb->indicators->phys_indicators & (1 << i))
102 printf("led %d = %d\n", i, xkb->indicators->maps[i].flags);
117 if (xkb->indicators->phys_indicators & (i << 1))
118 xkb->indicators->maps[i].flags = old[i];
119 printf("XkbSetIndicatorMap = %d\n", XkbSetIndicatorMap(display, ~0, xkb));
121 XkbFreeKeyboard(xkb, 0, True);