Home | History | Annotate | Download | only in mxkbledpanel

Lines Matching defs:xkb

117 /*      Handles events generated by the Xkb server extension.		*/
155 XkbDescPtr xkb;
180 xkb=XkbGetMap(theDisplay,0,XkbUseCoreKbd);
183 if (!xkb)
188 if (XkbGetIndicatorMap(theDisplay,XkbAllIndicatorsMask,xkb)!=Success)
191 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
196 if (XkbGetNames(theDisplay,XkbIndicatorNamesMask,xkb)!=Success)
199 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
206 XkbIndicatorMapPtr map= &xkb->indicators->maps[i];
208 if (xkb->names->indicators[i]!=None)
211 name = XGetAtomName(theDisplay,xkb->names->indicators[i]);
215 ledAtoms[i] = xkb->names->indicators[i];
225 if (xkb->indicators->phys_indicators&bit)
287 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
302 XkbDescPtr xkb;
304 xkb = XkbGetMap(theDisplay,0,XkbUseCoreKbd);
305 if (!xkb)
311 if (XkbGetIndicatorMap(theDisplay,XkbAllIndicatorsMask,xkb)!=Success)
314 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
326 * protocol *or* XKB). If NoAutomatic *and* NoExplicit are set,
331 * protocol or XKB.
333 switch (xkb->indicators->maps[led].flags &
339 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
360 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
376 if (xkb->indicators->maps[led].ctrls)
378 unsigned long which = xkb->indicators->maps[led].ctrls;
380 XkbGetControls(theDisplay,XkbAllControlsMask,xkb);
382 xkb->ctrls->enabled_ctrls |= which;
384 xkb->ctrls->enabled_ctrls &= ~which;
385 XkbSetControls(theDisplay,which|XkbControlsEnabledMask,xkb);
392 if (xkb->indicators->maps[led].groups)
406 xkb->indicators->maps[led].groups)
408 if (xkb->indicators->maps[led].which_groups &
411 else if (xkb->indicators->maps[led].which_groups&XkbIM_UseLatched)
416 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
427 xkb->indicators->maps[led].groups))
447 if (xkb->indicators->maps[led].mods.real_mods ||
448 xkb->indicators->maps[led].mods.mask)
453 affect = (xkb->indicators->maps[led].mods.real_mods |
454 xkb->indicators->maps[led].mods.mask);
461 if (xkb->indicators->maps[led].which_mods &
464 else if (xkb->indicators->maps[led].which_mods &
470 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
475 XkbFreeKeyboard(xkb,XkbAllComponentsMask,True);
577 /* See if the server has XKB. */
583 fprintf(stderr,"Could not initialize XKB extension.\n");