Lines Matching defs:xkb
40 InitVModInfo(VModInfo * info, XkbDescPtr xkb)
42 ClearVModInfo(info, xkb);
48 ClearVModInfo(VModInfo * info, XkbDescPtr xkb)
50 if (XkbAllocNames(xkb, XkbVirtualModNamesMask, 0, 0) != Success)
52 if (XkbAllocServerMap(xkb, XkbVirtualModsMask, 0) != Success)
54 info->xkb = xkb;
56 if (xkb && xkb->names)
62 if (xkb->names->vmods[i] != None)
88 srv = info->xkb->server;
89 names = info->xkb->names;
91 XkbInternAtom(info->xkb->dpy, XkbAtomGetString(NULL, stmt->name),
157 * Returns the index of the given modifier in the xkb->names->vmods array.
159 * @param priv Pointer to the xkb data structure.
174 XkbDescPtr xkb;
176 xkb = (XkbDescPtr) priv;
177 if ((xkb == NULL) || (xkb->names == NULL) || (elem != None)
183 fieldStr = XkbAtomGetString(xkb->dpy, field);
193 char *modStr = XkbAtomGetString(xkb->dpy, xkb->names->vmods[i]);
207 * @param priv Pointer to xkb data structure.
227 FindKeypadVMod(XkbDescPtr xkb)
229 if (xkb) {
230 Atom name = XkbInternAtom(xkb->dpy, "NumLock", False);
233 if (LookupVModIndex((XPointer) xkb, None, name, TypeInt, &rtrn))
247 names = info->xkb->names;
254 str1 = XkbAtomGetString(info->xkb->dpy, names->vmods[i]);