1ea1d6981Smrg 2ea1d6981Smrg<chapter id='XKB_Protocol_Requests'> 3ea1d6981Smrg<title>XKB Protocol Requests</title> 4ea1d6981Smrg 5ea1d6981Smrg<para> 6ea1d6981SmrgThis document uses the syntactic conventions and common types defined by the 7ea1d6981Smrgspecification of the core X protocol with a number of additions, which are 8ea1d6981Smrgdetailed below. 9ea1d6981Smrg</para> 10ea1d6981Smrg 11ea1d6981Smrg<sect1 id='Errors'> 12ea1d6981Smrg<title>Errors</title> 13ea1d6981Smrg 14ea1d6981Smrg<para> 15ea1d6981SmrgIf a client attempts to use any other XKB request except <emphasis> 16ea1d6981SmrgXkbUseExtension</emphasis> 17ea1d6981Smrg before the extension is properly initialized, XKB reports an <emphasis> 18ea1d6981SmrgAccess</emphasis> 19ea1d6981Smrg error and ignores the request. XKB is properly initialized once <emphasis> 20ea1d6981SmrgXkbUseExtension</emphasis> 21ea1d6981Smrg reports that the client has asked for a supported or compatible version of the 22ea1d6981Smrgextension. 23ea1d6981Smrg</para> 24ea1d6981Smrg 25ea1d6981Smrg 26ea1d6981Smrg<sect2 id='Keyboard_Errors'> 27ea1d6981Smrg<title>Keyboard Errors</title> 28ea1d6981Smrg 29ea1d6981Smrg<para> 30ea1d6981SmrgIn addition to all of the errors defined by the core protocol, the X Keyboard 31ea1d6981SmrgExtension defines a single error, <emphasis> 32ea1d6981SmrgKeyboard</emphasis> 33ea1d6981Smrg, which indicates that some request specified an illegal device identifier or 34ea1d6981Smrgan extension device that is not a member of an appropriate. Unless otherwise 35ea1d6981Smrgnoted, any request with an argument of type KB_DEVICESPEC can cause <emphasis> 36ea1d6981SmrgKeyboard</emphasis> 37ea1d6981Smrg errors if an illegal or inappropriate device is specified. 38ea1d6981Smrg</para> 39ea1d6981Smrg 40ea1d6981Smrg 41ea1d6981Smrg<para> 42ea1d6981SmrgWhen the extension reports a Keyboard error, the most significant byte of the 43ea1d6981Smrg<emphasis> 44ea1d6981Smrgresource_id</emphasis> 45ea1d6981Smrg is a further refinement of the error cause, as defined in the table below. The 46ea1d6981Smrgleast significant byte contains the device, class, or feedback id as indicated: 47ea1d6981Smrg</para> 48ea1d6981Smrg 49ea1d6981Smrg<informaltable frame='topbot'> 50ea1d6981Smrg<?dbfo keep-together="always" ?> 51ea1d6981Smrg<tgroup cols='4' align='left' colsep='0' rowsep='0'> 52ea1d6981Smrg<colspec colname='c1' colwidth='2.0*'/> 53ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 54ea1d6981Smrg<colspec colname='c3' colwidth='3.0*'/> 55ea1d6981Smrg<colspec colname='c4' colwidth='2.0*'/> 56ea1d6981Smrg<thead> 57ea1d6981Smrg <row rowsep='1'> 58ea1d6981Smrg <entry>high-order byte</entry> 59ea1d6981Smrg <entry>value</entry> 60ea1d6981Smrg <entry>meaning</entry> 61ea1d6981Smrg <entry>low-order byte</entry> 62ea1d6981Smrg </row> 63ea1d6981Smrg</thead> 64ea1d6981Smrg<tbody> 65ea1d6981Smrg <row> 66ea1d6981Smrg <entry>XkbErr_BadDevice</entry> 67ea1d6981Smrg <entry>0xff</entry> 68ea1d6981Smrg <entry>device not found</entry> 69ea1d6981Smrg <entry>device id</entry> 70ea1d6981Smrg </row> 71ea1d6981Smrg <row> 72ea1d6981Smrg <entry>XkbErr_BadClass</entry> 73ea1d6981Smrg <entry>0xfe</entry> 74ea1d6981Smrg <entry>device found, but is the wrong class</entry> 75ea1d6981Smrg <entry>class id</entry> 76ea1d6981Smrg </row> 77ea1d6981Smrg <row> 78ea1d6981Smrg <entry>XkbErr_BadId</entry> 79ea1d6981Smrg <entry>0xfd</entry> 80ea1d6981Smrg <entry>device found, class ok, but device does not have a feedback with the 81ea1d6981Smrgindicated id</entry> 82ea1d6981Smrg <entry>feedback id</entry> 83ea1d6981Smrg </row> 84ea1d6981Smrg</tbody> 85ea1d6981Smrg</tgroup> 86ea1d6981Smrg</informaltable> 87ea1d6981Smrg 88ea1d6981Smrg</sect2> 89ea1d6981Smrg<sect2 id='Side_Effects_of_Errors'> 90ea1d6981Smrg<title>Side-Effects of Errors</title> 91ea1d6981Smrg 92ea1d6981Smrg<para> 93ea1d6981SmrgWith the exception of <emphasis> 94ea1d6981SmrgAlloc</emphasis> 95ea1d6981Smrg or <emphasis> 96ea1d6981SmrgImplementation</emphasis> 97ea1d6981Smrg errors, which might result in an inconsistent internal state, no XKB request 98ea1d6981Smrgthat reports an error condition has any effect. Unless otherwise stated, 99ea1d6981Smrgrequests which update some aspect of the keyboard description will not apply 100ea1d6981Smrgonly part of a request — if part of a request fails, the whole thing is 101ea1d6981Smrgignored. 102ea1d6981Smrg</para> 103ea1d6981Smrg 104ea1d6981Smrg 105ea1d6981Smrg</sect2> 106ea1d6981Smrg</sect1> 107ea1d6981Smrg<sect1 id='Common_Types'> 108ea1d6981Smrg<title>Common Types</title> 109ea1d6981Smrg 110ea1d6981Smrg<para> 111ea1d6981SmrgThe following types are used in the request and event definitions in subsequent 112ea1d6981Smrgsections: 113ea1d6981Smrg</para> 114ea1d6981Smrg 115ea1d6981Smrg<informaltable frame='topbot'> 116ea1d6981Smrg<?dbfo keep-together="auto" ?> 117ea1d6981Smrg<tgroup cols='2' align='left' colsep='0' rowsep='0'> 118ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 119ea1d6981Smrg<colspec colname='c2' colwidth='2.0*'/> 120ea1d6981Smrg<thead> 121ea1d6981Smrg <row rowsep='1'> 122ea1d6981Smrg <entry>Name</entry> 123ea1d6981Smrg <entry>Value</entry> 124ea1d6981Smrg </row> 125ea1d6981Smrg</thead> 126ea1d6981Smrg<tbody> 127ea1d6981Smrg <row> 128ea1d6981Smrg <entry>LISTofITEMs</entry> 129ea1d6981Smrg <entry> The type LISTofITEMs is special. It is similar to the 130ea1d6981SmrgLISTofVALUE defined by the core protocol, but the elements of a LISTofITEMs are 131ea1d6981Smrgnot necessarily all the same size. The use of a BITMASK to indicate which 132ea1d6981Smrgmembers are present is optional for a LISTofITEMs — it is possible for the 133ea1d6981Smrgset of elements to be derived from one or more fields of the request.</entry> 134ea1d6981Smrg </row> 135ea1d6981Smrg <row> 136ea1d6981Smrg <entry>KB_DEVICESPEC</entry> 137ea1d6981Smrg <entry>8 bit unsigned integer, <emphasis> 138ea1d6981SmrgUseCoreKbd, or UseCorePtr</emphasis> 139ea1d6981Smrg</entry> 140ea1d6981Smrg </row> 141ea1d6981Smrg <row> 142ea1d6981Smrg <entry>KB_LEDCLASSSPEC</entry> 143ea1d6981Smrg <entry>{ <emphasis> 144ea1d6981SmrgKbdFeedbackClass</emphasis> 145ea1d6981Smrg, <emphasis> 146ea1d6981SmrgLedFeedbackClass</emphasis> 147ea1d6981Smrg, <emphasis> 148ea1d6981SmrgDfltXIClass</emphasis> 149ea1d6981Smrg, <emphasis> 150ea1d6981SmrgAllXIClasses</emphasis> 151ea1d6981Smrg, <emphasis> 152ea1d6981SmrgXINone</emphasis> 153ea1d6981Smrg }</entry> 154ea1d6981Smrg </row> 155ea1d6981Smrg <row> 156ea1d6981Smrg <entry>KB_BELLCLASSSPEC</entry> 157ea1d6981Smrg <entry>{ <emphasis> 158ea1d6981SmrgKbdFeedbackClass</emphasis> 159ea1d6981Smrg, <emphasis> 160ea1d6981SmrgBellFeedbackClass</emphasis> 161ea1d6981Smrg, <emphasis> 162ea1d6981SmrgDfltXIClass</emphasis> 163ea1d6981Smrg, <emphasis> 164ea1d6981SmrgAllXIClasses</emphasis> 165ea1d6981Smrg }</entry> 166ea1d6981Smrg </row> 167ea1d6981Smrg <row> 168ea1d6981Smrg <entry>KB_IDSPEC</entry> 169ea1d6981Smrg <entry>8 bit unsigned integer or <emphasis> 170ea1d6981SmrgDfltXIId</emphasis> 171ea1d6981Smrg</entry> 172ea1d6981Smrg </row> 173ea1d6981Smrg <row> 174ea1d6981Smrg <entry>KB_VMODMASK</entry> 175ea1d6981Smrg <entry> CARD16, each bit corresponds to a virtual modifier</entry> 176ea1d6981Smrg </row> 177ea1d6981Smrg <row> 178ea1d6981Smrg <entry>KB_GROUPMASK</entry> 179ea1d6981Smrg <entry>{ <emphasis> 180ea1d6981SmrgGroup1</emphasis> 181ea1d6981Smrg, <emphasis> 182ea1d6981SmrgGroup2</emphasis> 183ea1d6981Smrg, <emphasis> 184ea1d6981SmrgGroup3</emphasis> 185ea1d6981Smrg, <emphasis> 186ea1d6981SmrgGroup4</emphasis> 187ea1d6981Smrg }</entry> 188ea1d6981Smrg </row> 189ea1d6981Smrg <row> 190ea1d6981Smrg <entry>KB_GROUPSWRAP</entry> 191ea1d6981Smrg <entry>{ <emphasis> 192ea1d6981SmrgWrapIntoRange</emphasis> 193ea1d6981Smrg, <emphasis> 194ea1d6981SmrgClampIntoRange</emphasis> 195ea1d6981Smrg, <emphasis> 196ea1d6981SmrgRedirectIntoRange</emphasis> 197ea1d6981Smrg }</entry> 198ea1d6981Smrg </row> 199ea1d6981Smrg <row> 200ea1d6981Smrg <entry>KB_GROUPINFO</entry> 201ea1d6981Smrg <entry>{ groupsWrap: KB_GROUPSWRAP 202ea1d6981SmrgredirectGroup: 1…4, 203ea1d6981SmrgnumGroups: 1…4 }</entry> 204ea1d6981Smrg </row> 205ea1d6981Smrg <row> 206ea1d6981Smrg <entry>KB_NKNDETAILSMASK</entry> 207ea1d6981Smrg <entry>{ <emphasis> 208ea1d6981SmrgNKN_Keycodes</emphasis> 209ea1d6981Smrg, NKN_Geometry, <emphasis> 210ea1d6981SmrgNKN_DeviceID</emphasis> 211ea1d6981Smrg }</entry> 212ea1d6981Smrg </row> 213ea1d6981Smrg <row> 214ea1d6981Smrg <entry>KB_STATEMASK</entry> 215ea1d6981Smrg <entry> KEYBUTMASK or KB_GROUPMASK</entry> 216ea1d6981Smrg </row> 217ea1d6981Smrg <row> 218ea1d6981Smrg <entry>KB_STATEPARTMASK</entry> 219ea1d6981Smrg <entry>{ <emphasis> 220ea1d6981SmrgModifierState</emphasis> 221ea1d6981Smrg, <emphasis> 222ea1d6981SmrgModifierBase</emphasis> 223ea1d6981Smrg, <emphasis> 224ea1d6981SmrgModifierLatch</emphasis> 225ea1d6981Smrg, <emphasis> 226ea1d6981SmrgModifierLock</emphasis> 227ea1d6981Smrg, <emphasis> 228ea1d6981SmrgGroupState</emphasis> 229ea1d6981Smrg, <emphasis> 230ea1d6981SmrgGroupBase</emphasis> 231ea1d6981Smrg, <emphasis> 232ea1d6981SmrgGroupLatch</emphasis> 233ea1d6981Smrg, <emphasis> 234ea1d6981SmrgGroupLock</emphasis> 235ea1d6981Smrg, <emphasis> 236ea1d6981SmrgCompatState</emphasis> 237ea1d6981Smrg, <emphasis> 238ea1d6981SmrgGrabMods</emphasis> 239ea1d6981Smrg, <emphasis> 240ea1d6981SmrgCompatGrabMods</emphasis> 241ea1d6981Smrg, <emphasis> 242ea1d6981SmrgLookupMods</emphasis> 243ea1d6981Smrg, <emphasis> 244ea1d6981SmrgCompatLookupMods</emphasis> 245ea1d6981Smrg, <emphasis> 246ea1d6981SmrgPointerButtons</emphasis> 247ea1d6981Smrg }</entry> 248ea1d6981Smrg </row> 249ea1d6981Smrg <row> 250ea1d6981Smrg <entry>KB_BOOLCTRLMASK</entry> 251ea1d6981Smrg <entry>{ <emphasis> 252ea1d6981SmrgRepeatKeys</emphasis> 253ea1d6981Smrg, <emphasis> 254ea1d6981SmrgSlowKeys</emphasis> 255ea1d6981Smrg, <emphasis> 256ea1d6981SmrgBounceKeys</emphasis> 257ea1d6981Smrg, <emphasis> 258ea1d6981SmrgStickyKeys</emphasis> 259ea1d6981Smrg, <emphasis> 260ea1d6981SmrgMouseKeys</emphasis> 261ea1d6981Smrg, <emphasis> 262ea1d6981SmrgMouseKeysAccel</emphasis> 263ea1d6981Smrg, <emphasis> 264ea1d6981SmrgAccessXKeys</emphasis> 265ea1d6981Smrg, <emphasis> 266ea1d6981SmrgAccessXTimeout</emphasis> 267ea1d6981Smrg, <emphasis> 268ea1d6981SmrgAccessXFeedback</emphasis> 269ea1d6981Smrg, <emphasis> 270ea1d6981SmrgAudibleBell</emphasis> 271ea1d6981Smrg, <emphasis> 272ea1d6981SmrgOverlay1</emphasis> 273ea1d6981Smrg, <emphasis> 274ea1d6981SmrgOverlay2</emphasis> 275ea1d6981Smrg, <emphasis> 276ea1d6981SmrgIgnoreGroupLock</emphasis> 277ea1d6981Smrg }</entry> 278ea1d6981Smrg </row> 279ea1d6981Smrg <row> 280ea1d6981Smrg <entry>KB_CONTROLSMASK</entry> 281ea1d6981Smrg <entry>{ <emphasis> 282ea1d6981SmrgGroupsWrap, InternalMods</emphasis> 283ea1d6981Smrg, <emphasis> 284ea1d6981SmrgIgnoreLockMods</emphasis> 285ea1d6981Smrg, <emphasis> 286ea1d6981SmrgPerKeyRepeat</emphasis> 287ea1d6981Smrg, <emphasis> 288ea1d6981SmrgControlsEnabled</emphasis> 289ea1d6981Smrg } or KB_BOOLCTRLMASK</entry> 290ea1d6981Smrg </row> 291ea1d6981Smrg <row> 292ea1d6981Smrg <entry>KB_MAPPARTMASK</entry> 293ea1d6981Smrg <entry>{ <emphasis> 294ea1d6981SmrgKeyTypes</emphasis> 295ea1d6981Smrg, <emphasis> 296ea1d6981SmrgKeySyms</emphasis> 297ea1d6981Smrg, <emphasis> 298ea1d6981SmrgModifierMap</emphasis> 299ea1d6981Smrg, <emphasis> 300ea1d6981SmrgExplicitComponents</emphasis> 301ea1d6981Smrg, <emphasis> 302ea1d6981SmrgKeyActions</emphasis> 303ea1d6981Smrg, <emphasis> 304ea1d6981SmrgKeyBehaviors</emphasis> 305ea1d6981Smrg, <emphasis> 306ea1d6981SmrgVirtualMods</emphasis> 307ea1d6981Smrg, <emphasis> 308ea1d6981SmrgVirtualModMap</emphasis> 309ea1d6981Smrg}</entry> 310ea1d6981Smrg </row> 311ea1d6981Smrg <row> 312ea1d6981Smrg <entry>KB_CMDETAILMASK</entry> 313ea1d6981Smrg <entry>{ <emphasis> 314ea1d6981SmrgSymInterp</emphasis> 315ea1d6981Smrg, <emphasis> 316ea1d6981SmrgGroupCompat</emphasis> 317ea1d6981Smrg }</entry> 318ea1d6981Smrg </row> 319ea1d6981Smrg <row> 320ea1d6981Smrg <entry>KB_NAMEDETAILMASK</entry> 321ea1d6981Smrg <entry>{ <emphasis> 322ea1d6981SmrgKeycodesName</emphasis> 323ea1d6981Smrg, <emphasis> 324ea1d6981SmrgGeometryName</emphasis> 325ea1d6981Smrg, <emphasis> 326ea1d6981SmrgSymbolsName</emphasis> 327ea1d6981Smrg, 328ea1d6981Smrg <emphasis> 329ea1d6981SmrgPhysSymbolsName</emphasis> 330ea1d6981Smrg, <emphasis> 331ea1d6981SmrgTypesName</emphasis> 332ea1d6981Smrg, <emphasis> 333ea1d6981SmrgCompatName</emphasis> 334ea1d6981Smrg, <emphasis> 335ea1d6981SmrgKeyTypeNames</emphasis> 336ea1d6981Smrg, <emphasis> 337ea1d6981SmrgKTLevelNames</emphasis> 338ea1d6981Smrg, <emphasis> 339ea1d6981SmrgIndicatorNames</emphasis> 340ea1d6981Smrg, <emphasis> 341ea1d6981SmrgKeyNames</emphasis> 342ea1d6981Smrg, <emphasis> 343ea1d6981SmrgKeyAliases</emphasis> 344ea1d6981Smrg, <emphasis> 345ea1d6981SmrgVirtualModNames</emphasis> 346ea1d6981Smrg, <emphasis> 347ea1d6981SmrgGroupNames</emphasis> 348ea1d6981Smrg, <emphasis> 349ea1d6981SmrgRGNames</emphasis> 350ea1d6981Smrg}</entry> 351ea1d6981Smrg </row> 352ea1d6981Smrg <row> 353ea1d6981Smrg <entry>KB_AXNDETAILMASK</entry> 354ea1d6981Smrg <entry>{ <emphasis> 355ea1d6981SmrgAXN_SKPress</emphasis> 356ea1d6981Smrg, <emphasis> 357ea1d6981SmrgAXN_SKAccept</emphasis> 358ea1d6981Smrg, <emphasis> 359ea1d6981SmrgAXN_SKReject</emphasis> 360ea1d6981Smrg, <emphasis> 361ea1d6981SmrgAXN_SKRelease, AXN_BKAccept, AXN_BKReject, AXN_AXKWarning </emphasis> 362ea1d6981Smrg}</entry> 363ea1d6981Smrg </row> 364ea1d6981Smrg <row> 365ea1d6981Smrg <entry>KB_AXSKOPTSMASK</entry> 366ea1d6981Smrg <entry>{ <emphasis> 367ea1d6981SmrgAX_TwoKeys</emphasis> 368ea1d6981Smrg, <emphasis> 369ea1d6981SmrgAX_LatchToLock</emphasis> 370ea1d6981Smrg }</entry> 371ea1d6981Smrg </row> 372ea1d6981Smrg <row> 373ea1d6981Smrg <entry>KB_AXFBOPTSMASK</entry> 374ea1d6981Smrg <entry>{ <emphasis> 375ea1d6981SmrgAX_SKPressFB</emphasis> 376ea1d6981Smrg, <emphasis> 377ea1d6981SmrgAX_SKAcceptFB</emphasis> 378ea1d6981Smrg, <emphasis> 379ea1d6981SmrgAX_FeatureFB</emphasis> 380ea1d6981Smrg, <emphasis> 381ea1d6981SmrgAX_SlowWarnFB</emphasis> 382ea1d6981Smrg, <emphasis> 383ea1d6981SmrgAX_IndicatorFB</emphasis> 384ea1d6981Smrg, <emphasis> 385ea1d6981SmrgAX_StickyKeysFB</emphasis> 386ea1d6981Smrg, <emphasis> 387ea1d6981SmrgAX_SKReleaseFB</emphasis> 388ea1d6981Smrg,<emphasis> 389ea1d6981Smrg AX_SKRejectFB</emphasis> 390ea1d6981Smrg, <emphasis> 391ea1d6981SmrgAX_BKRejectFB</emphasis> 392ea1d6981Smrg, <emphasis> 393ea1d6981SmrgAX_DumbBellFB</emphasis> 394ea1d6981Smrg }</entry> 395ea1d6981Smrg </row> 396ea1d6981Smrg <row> 397ea1d6981Smrg <entry>KB_AXOPTIONSMASK</entry> 398ea1d6981Smrg <entry> KB_AXFBOPTSMASK or KB_AXSKOPTSMASK</entry> 399ea1d6981Smrg </row> 400ea1d6981Smrg <row> 401ea1d6981Smrg <entry>KB_GBNDETAILMASK</entry> 402ea1d6981Smrg <entry>{ <emphasis> 403ea1d6981SmrgGBN_Types</emphasis> 404ea1d6981Smrg, <emphasis> 405ea1d6981SmrgGBN_CompatMap</emphasis> 406ea1d6981Smrg, <emphasis> 407ea1d6981SmrgGBN_ClientSymbols</emphasis> 408ea1d6981Smrg, <emphasis> 409ea1d6981SmrgGBN_ServerSymbols</emphasis> 410ea1d6981Smrg, <emphasis> 411ea1d6981SmrgGBN_IndicatorMap</emphasis> 412ea1d6981Smrg, <emphasis> 413ea1d6981SmrgGBN_KeyNames</emphasis> 414ea1d6981Smrg, <emphasis> 415ea1d6981SmrgGBN_Geometry</emphasis> 416ea1d6981Smrg, <emphasis> 417ea1d6981SmrgGBN_OtherNames</emphasis> 418ea1d6981Smrg }</entry> 419ea1d6981Smrg </row> 420ea1d6981Smrg <row> 421ea1d6981Smrg <entry>KB_BELLDETAILMASK</entry> 422ea1d6981Smrg <entry>{ <emphasis> 423ea1d6981SmrgXkbAllBellNotifyEvents</emphasis> 424ea1d6981Smrg }</entry> 425ea1d6981Smrg </row> 426ea1d6981Smrg <row> 427ea1d6981Smrg <entry>KB_MSGDETAILMASK</entry> 428ea1d6981Smrg <entry>{ <emphasis> 429ea1d6981SmrgXkbAllActionMessages</emphasis> 430ea1d6981Smrg }</entry> 431ea1d6981Smrg </row> 432ea1d6981Smrg <row> 433ea1d6981Smrg <entry>KB_EVENTTYPE</entry> 434ea1d6981Smrg <entry>{ <emphasis> 435ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 436ea1d6981Smrg, <emphasis> 437ea1d6981SmrgXkbMapNotify</emphasis> 438ea1d6981Smrg, <emphasis> 439ea1d6981SmrgXkbStateNotify</emphasis> 440ea1d6981Smrg, <emphasis> 441ea1d6981SmrgXkbControlsNotify</emphasis> 442ea1d6981Smrg, <emphasis> 443ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 444ea1d6981Smrg, <emphasis> 445ea1d6981SmrgXkbIndicatorMapNotify</emphasis> 446ea1d6981Smrg, <emphasis> 447ea1d6981SmrgXkbNamesNotify</emphasis> 448ea1d6981Smrg, <emphasis> 449ea1d6981SmrgXkbCompatMapNotify</emphasis> 450ea1d6981Smrg, <emphasis> 451ea1d6981SmrgXkbBellNotify</emphasis> 452ea1d6981Smrg, <emphasis> 453ea1d6981SmrgXkbActionMessage</emphasis> 454ea1d6981Smrg, <emphasis> 455ea1d6981SmrgXkbAccessXNotify</emphasis> 456ea1d6981Smrg, <emphasis> 457ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 458ea1d6981Smrg }</entry> 459ea1d6981Smrg </row> 460ea1d6981Smrg <row> 461ea1d6981Smrg <entry>KB_ACTION</entry> 462ea1d6981Smrg <entry>[ type: CARD8 463ea1d6981Smrgdata: LISTofCARD8 ]</entry> 464ea1d6981Smrg </row> 465ea1d6981Smrg <row> 466ea1d6981Smrg <entry>KB_BEHAVIOR</entry> 467ea1d6981Smrg <entry>[ type: CARD8, data: CARD 8 ]</entry> 468ea1d6981Smrg </row> 469ea1d6981Smrg <row> 470ea1d6981Smrg <entry>KB_MODDEF</entry> 471ea1d6981Smrg <entry>[ mask: KEYMASK, 472ea1d6981Smrgmods: KEYMASK, 473ea1d6981Smrgvmods: KB_VMODMASK ]</entry> 474ea1d6981Smrg </row> 475ea1d6981Smrg <row> 476ea1d6981Smrg <entry>KB_KTMAPENTRY</entry> 477ea1d6981Smrg <entry>[ active: BOOL, 478ea1d6981Smrglevel: CARD8, 479ea1d6981Smrgmods: KB_MODDEF ]</entry> 480ea1d6981Smrg </row> 481ea1d6981Smrg <row> 482ea1d6981Smrg <entry>KB_KTSETMAPENTRY</entry> 483ea1d6981Smrg <entry>[ level: CARD8, 484ea1d6981Smrgmods: KB_MODDEF ]</entry> 485ea1d6981Smrg </row> 486ea1d6981Smrg <row> 487ea1d6981Smrg <entry>KB_KEYTYPE</entry> 488ea1d6981Smrg <entry>[ mods: KB_MODDEF, 489ea1d6981SmrgnumLevels: CARD8, 490ea1d6981Smrgmap: LISTofKB_KTMAPENTRY, 491ea1d6981Smrgpreserve: LISTofKB_MODDEF ]</entry> 492ea1d6981Smrg </row> 493ea1d6981Smrg <row> 494ea1d6981Smrg <entry>KB_SETKEYTYPE</entry> 495ea1d6981Smrg <entry>[ realMods: KEYMASK, 496ea1d6981Smrgvmods: CARD16, 497ea1d6981SmrgnumLevels: CARD8, 498ea1d6981Smrgmap: LISTofKB_KTSETMAPENTRY, 499ea1d6981Smrgpreserve: LISTofKB_MODDEF ]</entry> 500ea1d6981Smrg </row> 501ea1d6981Smrg <row> 502ea1d6981Smrg <entry>KB_KEYSYMMAP</entry> 503ea1d6981Smrg <entry>[ ktIndex: LISTofCARD8, width: CARD8 504ea1d6981Smrg numGroups: 0…4, 505ea1d6981Smrg groupsWrap: KB_GROUPSWRAP, 506ea1d6981Smrg redirectGroup: 0…3, 507ea1d6981Smrg syms: LISTofKEYSYM ]</entry> 508ea1d6981Smrg </row> 509ea1d6981Smrg <row> 510ea1d6981Smrg <entry>KB_KEYVMODMAP</entry> 511ea1d6981Smrg <entry>[ key: KEYCODE, vmods: CARD16 ]</entry> 512ea1d6981Smrg </row> 513ea1d6981Smrg <row> 514ea1d6981Smrg <entry>KB_KEYMODMAP</entry> 515ea1d6981Smrg <entry>[ key: KEYCODE, mods: KEYMASK ]</entry> 516ea1d6981Smrg </row> 517ea1d6981Smrg <row> 518ea1d6981Smrg <entry>KB_EXPLICITMASK</entry> 519ea1d6981Smrg <entry>{ <emphasis> 520ea1d6981SmrgExplicitKeyType1</emphasis> 521ea1d6981Smrg, <emphasis> 522ea1d6981SmrgExplicitKeyType2</emphasis> 523ea1d6981Smrg, <emphasis> 524ea1d6981SmrgExplicitKeyType3</emphasis> 525ea1d6981Smrg, <emphasis> 526ea1d6981SmrgExplicitKeyType4</emphasis> 527ea1d6981Smrg, <emphasis> 528ea1d6981SmrgExplicitInterpret</emphasis> 529ea1d6981Smrg, <emphasis> 530ea1d6981SmrgExplicitAutoRepeat</emphasis> 531ea1d6981Smrg, <emphasis> 532ea1d6981SmrgExplicitBehavior</emphasis> 533ea1d6981Smrg, <emphasis> 534ea1d6981SmrgExplicitVModMap</emphasis> 535ea1d6981Smrg }</entry> 536ea1d6981Smrg </row> 537ea1d6981Smrg <row> 538ea1d6981Smrg <entry>KB_INDICATORMASK</entry> 539ea1d6981Smrg <entry> CARD32, each bit corresponds to an indicator</entry> 540ea1d6981Smrg </row> 541ea1d6981Smrg <row> 542ea1d6981Smrg <entry>KB_IMFLAGS</entry> 543ea1d6981Smrg <entry>{ <emphasis> 544ea1d6981SmrgIM_NoExplicit</emphasis> 545ea1d6981Smrg, <emphasis> 546ea1d6981SmrgIM_NoAutomatic</emphasis> 547ea1d6981Smrg, <emphasis> 548ea1d6981SmrgIM_LEDDrivesKB</emphasis> 549ea1d6981Smrg }</entry> 550ea1d6981Smrg </row> 551ea1d6981Smrg <row> 552ea1d6981Smrg <entry>KB_IMMODSWHICH</entry> 553ea1d6981Smrg <entry>{ <emphasis> 554ea1d6981SmrgIM_UseNone</emphasis> 555ea1d6981Smrg, <emphasis> 556ea1d6981SmrgIM_UseBase</emphasis> 557ea1d6981Smrg, <emphasis> 558ea1d6981SmrgIM_UseLatched</emphasis> 559ea1d6981Smrg, <emphasis> 560ea1d6981SmrgIM_UseLocked</emphasis> 561ea1d6981Smrg, <emphasis> 562ea1d6981SmrgIM_UseEffective</emphasis> 563ea1d6981Smrg, <emphasis> 564ea1d6981SmrgIM_UseCompat</emphasis> 565ea1d6981Smrg }</entry> 566ea1d6981Smrg </row> 567ea1d6981Smrg <row> 568ea1d6981Smrg <entry>KB_IMGROUPSWHICH</entry> 569ea1d6981Smrg <entry>{ <emphasis> 570ea1d6981SmrgIM_UseNone</emphasis> 571ea1d6981Smrg, <emphasis> 572ea1d6981SmrgIM_UseBase</emphasis> 573ea1d6981Smrg, <emphasis> 574ea1d6981SmrgIM_UseLatched</emphasis> 575ea1d6981Smrg, <emphasis> 576ea1d6981SmrgIM_UseLocked</emphasis> 577ea1d6981Smrg, <emphasis> 578ea1d6981SmrgIM_UseEffective</emphasis> 579ea1d6981Smrg }</entry> 580ea1d6981Smrg </row> 581ea1d6981Smrg <row> 582ea1d6981Smrg <entry>KB_INDICATORMAP</entry> 583ea1d6981Smrg <entry>[ flags: CARD8, 584ea1d6981Smrgmods: KB_MODDEF, 585ea1d6981SmrgwhichMods: 586ea1d6981Smrggroups: KB_GROUPMASK, 587ea1d6981SmrgwhichGroups: 588ea1d6981Smrgctrls: KB_BOOLCTRLMASK ]</entry> 589ea1d6981Smrg </row> 590ea1d6981Smrg <row> 591ea1d6981Smrg <entry>KB_SYMINTERPMATCH</entry> 592ea1d6981Smrg <entry>{ <emphasis> 593ea1d6981SmrgSI_NoneOf</emphasis> 594ea1d6981Smrg, <emphasis> 595ea1d6981SmrgSI_AnyOfOrNone</emphasis> 596ea1d6981Smrg, <emphasis> 597ea1d6981SmrgSI_AnyOf</emphasis> 598ea1d6981Smrg, <emphasis> 599ea1d6981SmrgSI_AllOf</emphasis> 600ea1d6981Smrg, <emphasis> 601ea1d6981SmrgSI_Exactly</emphasis> 602ea1d6981Smrg }</entry> 603ea1d6981Smrg </row> 604ea1d6981Smrg <row> 605ea1d6981Smrg <entry>KB_SYMINTERP</entry> 606ea1d6981Smrg <entry>[ sym: KEYSYM, 607ea1d6981Smrg mods; KEYMASK, 608ea1d6981Smrg levelOneOnly: BOOL, 609ea1d6981Smrg match: KB_SYMINTERPMATCH, 610ea1d6981Smrg virtualMod: CARD8, 611ea1d6981Smrg autoRepeat: BOOL, 612ea1d6981Smrg lockingKey: BOOL ]</entry> 613ea1d6981Smrg </row> 614ea1d6981Smrg <row> 615ea1d6981Smrg <entry>KB_PCFMASK</entry> 616ea1d6981Smrg <entry>{ <emphasis> 617ea1d6981SmrgPCF_DetectableAutorepeat</emphasis> 618ea1d6981Smrg, <emphasis> 619ea1d6981SmrgPCF_GrabsUseXkbState</emphasis> 620ea1d6981Smrg, <emphasis> 621ea1d6981SmrgPCF_AutoResetControls</emphasis> 622ea1d6981Smrg, <emphasis> 623ea1d6981SmrgPCF_LookupStateWhenGrabbed</emphasis> 624ea1d6981Smrg, <emphasis> 625ea1d6981SmrgPCF_SendEventUsesXKBState</emphasis> 626ea1d6981Smrg }</entry> 627ea1d6981Smrg </row> 628ea1d6981Smrg <row> 629ea1d6981Smrg <entry>KB_LCFLAGSMASK</entry> 630ea1d6981Smrg <entry>{ <emphasis> 631ea1d6981SmrgLC_Hidden</emphasis> 632ea1d6981Smrg, <emphasis> 633ea1d6981SmrgLC_Default</emphasis> 634ea1d6981Smrg, <emphasis> 635ea1d6981SmrgLC_Partial</emphasis> 636ea1d6981Smrg }</entry> 637ea1d6981Smrg </row> 638ea1d6981Smrg <row> 639ea1d6981Smrg <entry>KB_LCSYMFLAGSMASK</entry> 640ea1d6981Smrg <entry>{ <emphasis> 641ea1d6981SmrgLC_AlphanumericKeys</emphasis> 642ea1d6981Smrg, <emphasis> 643ea1d6981SmrgLC_ModifierKeys</emphasis> 644ea1d6981Smrg, <emphasis> 645ea1d6981SmrgLC_KeypadKeys</emphasis> 646ea1d6981Smrg, <emphasis> 647ea1d6981SmrgLC_FunctionKeys</emphasis> 648ea1d6981Smrg, <emphasis> 649ea1d6981SmrgLC_AlternateGroup</emphasis> 650ea1d6981Smrg }</entry> 651ea1d6981Smrg </row> 652ea1d6981Smrg</tbody> 653ea1d6981Smrg</tgroup> 654ea1d6981Smrg</informaltable> 655ea1d6981Smrg 656ea1d6981Smrg<para> 657ea1d6981SmrgThese types are used by the <emphasis> 658ea1d6981SmrgXkbGetGeometry</emphasis> 659ea1d6981Smrg and <emphasis> 660ea1d6981SmrgXkbSetGeometry</emphasis> 661ea1d6981Smrg requests: 662ea1d6981Smrg</para> 663ea1d6981Smrg 664ea1d6981Smrg<informaltable frame='topbot'> 665ea1d6981Smrg<?dbfo keep-together="auto" ?> 666ea1d6981Smrg<tgroup cols='2' align='left' colsep='0' rowsep='0'> 667ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 668ea1d6981Smrg<colspec colname='c2' colwidth='2.0*'/> 669ea1d6981Smrg<thead> 670ea1d6981Smrg <row rowsep='1'> 671ea1d6981Smrg <entry>Name</entry> 672ea1d6981Smrg <entry>Value</entry> 673ea1d6981Smrg </row> 674ea1d6981Smrg</thead> 675ea1d6981Smrg<tbody> 676ea1d6981Smrg <row> 677ea1d6981Smrg <entry>KB_PROPERTY</entry> 678ea1d6981Smrg <entry>[ name, value: STRING8 ]</entry> 679ea1d6981Smrg </row> 680ea1d6981Smrg <row> 681ea1d6981Smrg <entry>KB_POINT</entry> 682ea1d6981Smrg <entry>[ x, y: CARD16 ]</entry> 683ea1d6981Smrg </row> 684ea1d6981Smrg <row> 685ea1d6981Smrg <entry>KB_OUTLINE</entry> 686ea1d6981Smrg <entry>[ cornerRadius: CARD8, points: LISTofKB_POINT ]</entry> 687ea1d6981Smrg </row> 688ea1d6981Smrg <row> 689ea1d6981Smrg <entry>KB_SHAPE</entry> 690ea1d6981Smrg <entry>[ name: ATOM, outlines: LISTofKB_OUTLINE 691ea1d6981Smrg primaryNdx, approxNdx: CARD8 ]</entry> 692ea1d6981Smrg </row> 693ea1d6981Smrg <row> 694ea1d6981Smrg <entry>KB_KEYNAME</entry> 695ea1d6981Smrg <entry>[ name: LISTofCHAR ]</entry> 696ea1d6981Smrg </row> 697ea1d6981Smrg <row> 698ea1d6981Smrg <entry>KB_KEYALIAS</entry> 699ea1d6981Smrg <entry>[ real: LISTofCHAR, alias: LISTofCHAR ]</entry> 700ea1d6981Smrg </row> 701ea1d6981Smrg <row> 702ea1d6981Smrg <entry>KB_KEY</entry> 703ea1d6981Smrg <entry>[ name: KB_KEYNAME, gap: INT16, 704ea1d6981Smrg shapeNdx, colorNdx: CARD8 ]</entry> 705ea1d6981Smrg </row> 706ea1d6981Smrg <row> 707ea1d6981Smrg <entry>KB_ROW</entry> 708ea1d6981Smrg <entry>[ top, left: INT16, vertical: BOOL, keys LISTofKB_KEY ]</entry> 709ea1d6981Smrg </row> 710ea1d6981Smrg <row> 711ea1d6981Smrg <entry>KB_OVERLAYKEY</entry> 712ea1d6981Smrg <entry>[ over, under: KB_KEYNAME ]</entry> 713ea1d6981Smrg </row> 714ea1d6981Smrg <row> 715ea1d6981Smrg <entry>KB_OVERLAYROW</entry> 716ea1d6981Smrg <entry>[ rowUnder: CARD8, keys: LISTofKB_OVERLAYKEY ]</entry> 717ea1d6981Smrg </row> 718ea1d6981Smrg <row> 719ea1d6981Smrg <entry>KB_OVERLAY</entry> 720ea1d6981Smrg <entry>[ sectionUnder: CARD8, 721ea1d6981Smrgrows: LISTofKB_OVERLAYROW ]</entry> 722ea1d6981Smrg </row> 723ea1d6981Smrg <row> 724ea1d6981Smrg <entry>KB_SHAPEDOODAD</entry> 725ea1d6981Smrg <entry>[ name: ATOM, priority: CARD8, top, left: INT16, 726ea1d6981Smrg type: { SolidDoodad, OutlineDoodad }, 727ea1d6981Smrg angle: INT16, width, height: CARD16 728ea1d6981Smrg colorNdx, shapeNdx: CARD8 ]</entry> 729ea1d6981Smrg </row> 730ea1d6981Smrg <row> 731ea1d6981Smrg <entry>KB_TEXTDOODAD</entry> 732ea1d6981Smrg <entry>[ name: ATOM, priority: CARD8, top, left: INT16, 733ea1d6981Smrg angle: INT16, width, height: CARD16, 734ea1d6981Smrg colorNdx: CARD8, text: STRING8, font: STRING8 ]</entry> 735ea1d6981Smrg </row> 736ea1d6981Smrg <row> 737ea1d6981Smrg <entry>KB_INDICATORDOODAD</entry> 738ea1d6981Smrg <entry>[ name: ATOM, priority: CARD8, top, left: INT16, 739ea1d6981Smrgangle: INT16, 740ea1d6981SmrgshapeNdx, onColorNdx, offColorNdx: CARD8 ]</entry> 741ea1d6981Smrg </row> 742ea1d6981Smrg <row> 743ea1d6981Smrg <entry>KB_LOGODOODAD</entry> 744ea1d6981Smrg <entry>[ name: ATOM, priority: CARD8, top, left: INT16, 745ea1d6981Smrg angle: INT16, colorNdx, shapeNdx: CARD8, 746ea1d6981Smrg logoName: STRING8 ]</entry> 747ea1d6981Smrg </row> 748ea1d6981Smrg <row> 749ea1d6981Smrg <entry>KB_DOODAD</entry> 750ea1d6981Smrg <entry>KB_SHAPEDOODAD, or KB_TEXTDOODAD, or KB_INDICATORDOODAD, or 751ea1d6981SmrgKB_LOGODOODAD</entry> 752ea1d6981Smrg </row> 753ea1d6981Smrg <row> 754ea1d6981Smrg <entry>KB_SECTION</entry> 755ea1d6981Smrg <entry>[ name: ATOM, 756ea1d6981Smrg top, left, angle: INT16, 757ea1d6981Smrg width, height: CARD16, 758ea1d6981Smrg priority: CARD8, 759ea1d6981Smrg rows: LISTofKB_ROW, 760ea1d6981Smrg doodads: LISTofKB_DOODAD, 761ea1d6981Smrg overlays: LISTofKB_OVERLAY ]</entry> 762ea1d6981Smrg </row> 763ea1d6981Smrg</tbody> 764ea1d6981Smrg</tgroup> 765ea1d6981Smrg</informaltable> 766ea1d6981Smrg 767ea1d6981Smrg<para> 768ea1d6981SmrgThese types are used by <emphasis> 769ea1d6981SmrgXkbGetDeviceInfo</emphasis> 770ea1d6981Smrg and <emphasis> 771ea1d6981SmrgXkbSetDeviceInfo</emphasis> 772ea1d6981Smrg: 773ea1d6981Smrg</para> 774ea1d6981Smrg 775ea1d6981Smrg<informaltable frame='topbot'> 776ea1d6981Smrg<?dbfo keep-together="always" ?> 777ea1d6981Smrg<tgroup cols='2' align='left' colsep='0' rowsep='0'> 778ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 779ea1d6981Smrg<colspec colname='c2' colwidth='2.0*'/> 780ea1d6981Smrg<thead> 781ea1d6981Smrg <row rowsep='1'> 782ea1d6981Smrg <entry>Name</entry> 783ea1d6981Smrg <entry>Value</entry> 784ea1d6981Smrg </row> 785ea1d6981Smrg</thead> 786ea1d6981Smrg<tbody> 787ea1d6981Smrg <row> 788ea1d6981Smrg <entry>KB_XIDEVFEATUREMASK</entry> 789ea1d6981Smrg <entry>{ <emphasis> 790ea1d6981SmrgXI_ButtonActions</emphasis> 791ea1d6981Smrg, <emphasis> 792ea1d6981SmrgXI_IndicatorNames</emphasis> 793ea1d6981Smrg, <emphasis> 794ea1d6981SmrgXI_IndicatorMaps</emphasis> 795ea1d6981Smrg, <emphasis> 796ea1d6981SmrgXI_IndicatorState</emphasis> 797ea1d6981Smrg }</entry> 798ea1d6981Smrg </row> 799ea1d6981Smrg <row> 800ea1d6981Smrg <entry>KB_XIFEATUREMASK</entry> 801ea1d6981Smrg <entry>{ KB_XIDEVFEATURES or <emphasis> 802ea1d6981SmrgXI_Keyboards</emphasis> 803ea1d6981Smrg</entry> 804ea1d6981Smrg </row> 805ea1d6981Smrg <row> 806ea1d6981Smrg <entry>KB_XIDETAILMASK</entry> 807ea1d6981Smrg <entry> { KB_XIFEATURES or <emphasis> 808ea1d6981SmrgXI_UnsupportedFeature</emphasis> 809ea1d6981Smrg <emphasis> 810ea1d6981Smrg}</emphasis> 811ea1d6981Smrg</entry> 812ea1d6981Smrg </row> 813ea1d6981Smrg <row> 814ea1d6981Smrg <entry>KB_DEVICELEDINFO</entry> 815ea1d6981Smrg <entry>[ ledClass: KB_LEDCLASSSPEC, 816ea1d6981SmrgledID: KB_IDSPEC, 817ea1d6981SmrgphysIndicators: CARD32, 818ea1d6981Smrgstate: CARD32, 819ea1d6981Smrgnames: LISTofATOM, 820ea1d6981Smrgmaps: LISTofKB_INDICATORMAP ]</entry> 821ea1d6981Smrg </row> 822ea1d6981Smrg</tbody> 823ea1d6981Smrg</tgroup> 824ea1d6981Smrg</informaltable> 825ea1d6981Smrg 826ea1d6981Smrg</sect1> 827ea1d6981Smrg<sect1 id='Requests'> 828ea1d6981Smrg<title>Requests</title> 829ea1d6981Smrg 830ea1d6981Smrg<para> 831ea1d6981SmrgThis section lists all of the requests supported by the X Keyboard Extension, 832ea1d6981Smrgseparated into categories of related requests. 833ea1d6981Smrg</para> 834ea1d6981Smrg 835ea1d6981Smrg 836ea1d6981Smrg<sect2 id='Initializing_the_X_Keyboard_Extension'> 837ea1d6981Smrg<title>Initializing the X Keyboard Extension</title> 838ea1d6981Smrg 839ea1d6981Smrg 840ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 841ea1d6981Smrg<?dbfo keep-together="always" ?> 842ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 843ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 844ea1d6981Smrg <thead> 845ea1d6981Smrg <row> 846ea1d6981Smrg <entry role='protoname'>XkbUseExtension</entry> 847ea1d6981Smrg </row> 848ea1d6981Smrg </thead> 849ea1d6981Smrg <tbody> 850ea1d6981Smrg <row> 851ea1d6981Smrg <entry role='protoargs'>wantedMajor, wantedMinor: CARD16</entry> 852ea1d6981Smrg </row> 853ea1d6981Smrg <row> 854ea1d6981Smrg <entry role='protoreply'> 855ea1d6981Smrgsupported: BOOL 856ea1d6981Smrg </entry> 857ea1d6981Smrg </row> 858ea1d6981Smrg <row> 859ea1d6981Smrg <entry role='protoreply'> 860ea1d6981SmrgserverMajor, serverMinor: CARD16</entry> 861ea1d6981Smrg </row> 862ea1d6981Smrg </tbody> 863ea1d6981Smrg </tgroup> 864ea1d6981Smrg</informaltable> 865ea1d6981Smrg 866ea1d6981Smrg<para> 867ea1d6981SmrgThis request enables XKB extension capabilities for the client that issues the 868ea1d6981Smrgrequest; the <emphasis> 869ea1d6981SmrgwantedMajor</emphasis> 870ea1d6981Smrg and <emphasis> 871ea1d6981SmrgwantedMinor</emphasis> 872ea1d6981Smrg fields specify the extension version in use by the requesting client. The 873ea1d6981Smrg<emphasis> 874ea1d6981Smrgsupported</emphasis> 875ea1d6981Smrg field is <emphasis> 876ea1d6981SmrgTrue</emphasis> 877ea1d6981Smrg if the server supports a compatible version, <emphasis> 878ea1d6981SmrgFalse</emphasis> 879ea1d6981Smrg otherwise. The <emphasis> 880ea1d6981SmrgserverMajor</emphasis> 881ea1d6981Smrg and <emphasis> 882ea1d6981SmrgserverMinor</emphasis> 883ea1d6981Smrg fields return the actual version supported by the server. 884ea1d6981Smrg</para> 885ea1d6981Smrg 886ea1d6981Smrg 887ea1d6981Smrg<para> 888ea1d6981SmrgUntil a client explicitly and successfully requests the XKB extension, an XKB 889ea1d6981Smrgcapable server reports compatibility state in all core protocol events and 890ea1d6981Smrgrequests. Once a client asks for XKB extension semantics by issuing this 891ea1d6981Smrgrequest, the server reports the extended XKB keyboard state in some core 892ea1d6981Smrgprotocol events and requests, as described in the overview section of this 893ea1d6981Smrgspecification. 894ea1d6981Smrg</para> 895ea1d6981Smrg 896ea1d6981Smrg 897ea1d6981Smrg<para> 898ea1d6981SmrgClients should issue an <emphasis> 899ea1d6981SmrgXkbUseExtension</emphasis> 900ea1d6981Smrg request before using any other extension requests. 901ea1d6981Smrg</para> 902ea1d6981Smrg 903ea1d6981Smrg 904ea1d6981Smrg</sect2> 905ea1d6981Smrg<sect2 id='Selecting_Events'> 906ea1d6981Smrg<title>Selecting Events</title> 907ea1d6981Smrg 908ea1d6981Smrg 909ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 910ea1d6981Smrg<?dbfo keep-together="always" ?> 911ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 912ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 913ea1d6981Smrg <thead> 914ea1d6981Smrg <row> 915ea1d6981Smrg <entry role='protoname'>XkbSelectEvents</entry> 916ea1d6981Smrg </row> 917ea1d6981Smrg </thead> 918ea1d6981Smrg <tbody> 919ea1d6981Smrg <row> 920ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 921ea1d6981Smrg </row> 922ea1d6981Smrg <row> 923ea1d6981Smrg <entry role='protoname'> 924ea1d6981SmrgaffectWhich, clear, selectAll: KB_EVENTTYPE</entry> 925ea1d6981Smrg </row> 926ea1d6981Smrg <row> 927ea1d6981Smrg <entry role='protoname'> 928ea1d6981SmrgaffectMap, map: KB_MAPPARTMASK</entry> 929ea1d6981Smrg </row> 930ea1d6981Smrg <row> 931ea1d6981Smrg <entry role='protoname'> 932ea1d6981Smrgdetails: LISTofITEMs</entry> 933ea1d6981Smrg </row> 934ea1d6981Smrg 935ea1d6981Smrg <row> 936ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 937ea1d6981SmrgKeyboard</emphasis> 938ea1d6981Smrg, <emphasis> 939ea1d6981SmrgMatch</emphasis> 940ea1d6981Smrg, <emphasis> 941ea1d6981SmrgValue</emphasis> 942ea1d6981Smrg</entry> 943ea1d6981Smrg </row> 944ea1d6981Smrg 945ea1d6981Smrg </tbody> 946ea1d6981Smrg </tgroup> 947ea1d6981Smrg</informaltable> 948ea1d6981Smrg 949ea1d6981Smrg<para> 950ea1d6981SmrgThis request updates the event masks of the keyboard indicated by <emphasis> 951ea1d6981SmrgdeviceSpec</emphasis> 952ea1d6981Smrg for this client. If <emphasis> 953ea1d6981SmrgdeviceSpec</emphasis> 954ea1d6981Smrg specifies an illegal device, a <emphasis> 955ea1d6981SmrgKeyboard</emphasis> 956ea1d6981Smrg error results. 957ea1d6981Smrg</para> 958ea1d6981Smrg 959ea1d6981Smrg 960ea1d6981Smrg<para> 961ea1d6981SmrgThe <emphasis> 962ea1d6981SmrgaffectMap</emphasis> 963ea1d6981Smrg and <emphasis> 964ea1d6981Smrgmap</emphasis> 965ea1d6981Smrg fields specify changes to the event details mask for the <emphasis> 966ea1d6981SmrgXkbMapNotify</emphasis> 967ea1d6981Smrg event. If any map components are set in <emphasis> 968ea1d6981Smrgmap</emphasis> 969ea1d6981Smrg but not in <emphasis> 970ea1d6981SmrgaffectMap</emphasis> 971ea1d6981Smrg, a <emphasis> 972ea1d6981SmrgMatch</emphasis> 973ea1d6981Smrg error results. Otherwise, any map components that are set in <emphasis> 974ea1d6981SmrgaffectMap</emphasis> 975ea1d6981Smrg are set or cleared in the map notify details mask, depending on the value of 976ea1d6981Smrgthe corresponding field in <emphasis> 977ea1d6981Smrgmap</emphasis> 978ea1d6981Smrg. 979ea1d6981Smrg</para> 980ea1d6981Smrg 981ea1d6981Smrg 982ea1d6981Smrg<para> 983ea1d6981SmrgThe <emphasis> 984ea1d6981SmrgaffectWhich</emphasis> 985ea1d6981Smrg, <emphasis> 986ea1d6981Smrgclear</emphasis> 987ea1d6981Smrg, and <emphasis> 988ea1d6981SmrgselectAll</emphasis> 989ea1d6981Smrg fields specify changes to any other event details masks. If any event types 990ea1d6981Smrgare set in both <emphasis> 991ea1d6981Smrgclear</emphasis> 992ea1d6981Smrg and <emphasis> 993ea1d6981SmrgselectAll</emphasis> 994ea1d6981Smrg, a <emphasis> 995ea1d6981SmrgMatch</emphasis> 996ea1d6981Smrg error results; if any event types are specified in either <emphasis> 997ea1d6981Smrgclear</emphasis> 998ea1d6981Smrg or <emphasis> 999ea1d6981SmrgselectAll</emphasis> 1000ea1d6981Smrg but not in <emphasis> 1001ea1d6981SmrgaffectWhich</emphasis> 1002ea1d6981Smrg, a <emphasis> 1003ea1d6981SmrgMatch</emphasis> 1004ea1d6981Smrg error results. Otherwise, the detail masks for any event types specified in 1005ea1d6981Smrgthe <emphasis> 1006ea1d6981SmrgaffectWhich</emphasis> 1007ea1d6981Smrg field of this request are changed as follows: 1008ea1d6981Smrg</para> 1009ea1d6981Smrg 1010ea1d6981Smrg<itemizedlist> 1011ea1d6981Smrg<listitem> 1012ea1d6981Smrg <para>If the event type is also set in <emphasis> 1013ea1d6981Smrgclear</emphasis> 1014ea1d6981Smrg, the detail mask for the corresponding event is set to <emphasis> 1015ea1d6981Smrg0</emphasis> 1016ea1d6981Smrg or <emphasis> 1017ea1d6981SmrgFalse</emphasis> 1018ea1d6981Smrg, as appropriate. 1019ea1d6981Smrg </para> 1020ea1d6981Smrg</listitem> 1021ea1d6981Smrg<listitem> 1022ea1d6981Smrg <para>If the event type is also set in <emphasis> 1023ea1d6981SmrgselectAll</emphasis> 1024ea1d6981Smrg, the detail mask for the corresponding event is set to include all legal 1025ea1d6981Smrgdetail values for that type. 1026ea1d6981Smrg </para> 1027ea1d6981Smrg</listitem> 1028ea1d6981Smrg<listitem> 1029ea1d6981Smrg <para>If the event type is not set in either <emphasis> 1030ea1d6981Smrgclear</emphasis> 1031ea1d6981Smrg or <emphasis> 1032ea1d6981SmrgselectAll</emphasis> 1033ea1d6981Smrg, the corresponding element of <emphasis> 1034ea1d6981Smrgdetails</emphasis> 1035ea1d6981Smrg lists a set of explicit changes to the details mask for the event, as 1036ea1d6981Smrgdescribed below. 1037ea1d6981Smrg </para> 1038ea1d6981Smrg</listitem> 1039ea1d6981Smrg</itemizedlist> 1040ea1d6981Smrg 1041ea1d6981Smrg<para> 1042ea1d6981SmrgEach entry of the <emphasis> 1043ea1d6981Smrgdetails</emphasis> 1044ea1d6981Smrg list specifies changes to the event details mask for a single type of event, 1045ea1d6981Smrgand consists of an <emphasis> 1046ea1d6981Smrgaffects</emphasis> 1047ea1d6981Smrg mask and a <emphasis> 1048ea1d6981Smrgvalues</emphasis> 1049ea1d6981Smrg mask. All details that are specified in <emphasis> 1050ea1d6981Smrgaffects</emphasis> 1051ea1d6981Smrg are set to the corresponding value from <emphasis> 1052ea1d6981Smrgvalues</emphasis> 1053ea1d6981Smrg; if any details are listed in <emphasis> 1054ea1d6981Smrgvalues</emphasis> 1055ea1d6981Smrg but not in <emphasis> 1056ea1d6981Smrgaffects</emphasis> 1057ea1d6981Smrg, a <emphasis> 1058ea1d6981SmrgMatch</emphasis> 1059ea1d6981Smrg error results. 1060ea1d6981Smrg</para> 1061ea1d6981Smrg 1062ea1d6981Smrg 1063ea1d6981Smrg<para> 1064ea1d6981SmrgThe details list contains entries only for those event types, if any, that are 1065ea1d6981Smrglisted in the <emphasis> 1066ea1d6981SmrgaffectWhich</emphasis> 1067ea1d6981Smrg mask and not in either <emphasis> 1068ea1d6981Smrgclear</emphasis> 1069ea1d6981Smrg or <emphasis> 1070ea1d6981SmrgselectAll</emphasis> 1071ea1d6981Smrg. When present, the items of the <emphasis> 1072ea1d6981Smrgdetails</emphasis> 1073ea1d6981Smrg list appear in the following order: 1074ea1d6981Smrg</para> 1075ea1d6981Smrg 1076ea1d6981Smrg<informaltable frame='none'> 1077ea1d6981Smrg<?dbfo keep-together="auto" ?> 1078ea1d6981Smrg<tgroup cols='3' align='left' colsep='0' rowsep='0'> 1079ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 1080ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 1081ea1d6981Smrg<colspec colname='c3' colwidth='1.0*'/> 1082ea1d6981Smrg<thead> 1083ea1d6981Smrg <row rowsep='1'> 1084ea1d6981Smrg <entry>Event Type</entry> 1085ea1d6981Smrg <entry>Legal Details</entry> 1086ea1d6981Smrg <entry>Type</entry> 1087ea1d6981Smrg </row> 1088ea1d6981Smrg</thead> 1089ea1d6981Smrg<tbody> 1090ea1d6981Smrg <row> 1091ea1d6981Smrg <entry><emphasis> 1092ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 1093ea1d6981Smrg</entry> 1094ea1d6981Smrg <entry><emphasis> 1095ea1d6981SmrgKB_NKNDETAILSMASK</emphasis> 1096ea1d6981Smrg</entry> 1097ea1d6981Smrg <entry><emphasis> 1098ea1d6981SmrgCARD16</emphasis> 1099ea1d6981Smrg</entry> 1100ea1d6981Smrg </row> 1101ea1d6981Smrg <row> 1102ea1d6981Smrg <entry><emphasis> 1103ea1d6981SmrgXkbStateNotify</emphasis> 1104ea1d6981Smrg</entry> 1105ea1d6981Smrg <entry><emphasis> 1106ea1d6981SmrgKB_STATEPARTMASK</emphasis> 1107ea1d6981Smrg</entry> 1108ea1d6981Smrg <entry><emphasis> 1109ea1d6981SmrgCARD16</emphasis> 1110ea1d6981Smrg</entry> 1111ea1d6981Smrg </row> 1112ea1d6981Smrg <row> 1113ea1d6981Smrg <entry><emphasis> 1114ea1d6981SmrgXkbControlsNotify</emphasis> 1115ea1d6981Smrg</entry> 1116ea1d6981Smrg <entry><emphasis> 1117ea1d6981SmrgKB_CONTROLMASK</emphasis> 1118ea1d6981Smrg</entry> 1119ea1d6981Smrg <entry><emphasis> 1120ea1d6981SmrgCARD32</emphasis> 1121ea1d6981Smrg</entry> 1122ea1d6981Smrg </row> 1123ea1d6981Smrg <row> 1124ea1d6981Smrg <entry><emphasis> 1125ea1d6981SmrgXkbIndicatorMapNotify</emphasis> 1126ea1d6981Smrg</entry> 1127ea1d6981Smrg <entry><emphasis> 1128ea1d6981SmrgKB_INDICATORMASK</emphasis> 1129ea1d6981Smrg</entry> 1130ea1d6981Smrg <entry><emphasis> 1131ea1d6981SmrgCARD32</emphasis> 1132ea1d6981Smrg</entry> 1133ea1d6981Smrg </row> 1134ea1d6981Smrg <row> 1135ea1d6981Smrg <entry><emphasis> 1136ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 1137ea1d6981Smrg</entry> 1138ea1d6981Smrg <entry><emphasis> 1139ea1d6981SmrgKB_INDICATORMASK</emphasis> 1140ea1d6981Smrg</entry> 1141ea1d6981Smrg <entry><emphasis> 1142ea1d6981SmrgCARD32</emphasis> 1143ea1d6981Smrg</entry> 1144ea1d6981Smrg </row> 1145ea1d6981Smrg <row> 1146ea1d6981Smrg <entry><emphasis> 1147ea1d6981SmrgXkbNamesNotify</emphasis> 1148ea1d6981Smrg</entry> 1149ea1d6981Smrg <entry><emphasis> 1150ea1d6981SmrgKB_NAMEDETAILMASK</emphasis> 1151ea1d6981Smrg</entry> 1152ea1d6981Smrg <entry><emphasis> 1153ea1d6981SmrgCARD16</emphasis> 1154ea1d6981Smrg</entry> 1155ea1d6981Smrg </row> 1156ea1d6981Smrg <row> 1157ea1d6981Smrg <entry><emphasis> 1158ea1d6981SmrgXkbCompatMapNotify</emphasis> 1159ea1d6981Smrg</entry> 1160ea1d6981Smrg <entry><emphasis> 1161ea1d6981SmrgKB_CMDETAILMASK</emphasis> 1162ea1d6981Smrg</entry> 1163ea1d6981Smrg <entry><emphasis> 1164ea1d6981SmrgCARD8</emphasis> 1165ea1d6981Smrg</entry> 1166ea1d6981Smrg </row> 1167ea1d6981Smrg <row> 1168ea1d6981Smrg <entry><emphasis> 1169ea1d6981SmrgXkbBellNotify</emphasis> 1170ea1d6981Smrg</entry> 1171ea1d6981Smrg <entry><emphasis> 1172ea1d6981SmrgKB_BELLDETAILMASK</emphasis> 1173ea1d6981Smrg</entry> 1174ea1d6981Smrg <entry><emphasis> 1175ea1d6981SmrgCARD8</emphasis> 1176ea1d6981Smrg</entry> 1177ea1d6981Smrg </row> 1178ea1d6981Smrg <row> 1179ea1d6981Smrg <entry><emphasis> 1180ea1d6981SmrgXkbActionMessage</emphasis> 1181ea1d6981Smrg</entry> 1182ea1d6981Smrg <entry><emphasis> 1183ea1d6981SmrgKB_MSGDETAILMASK</emphasis> 1184ea1d6981Smrg</entry> 1185ea1d6981Smrg <entry><emphasis> 1186ea1d6981SmrgCARD8</emphasis> 1187ea1d6981Smrg</entry> 1188ea1d6981Smrg </row> 1189ea1d6981Smrg <row> 1190ea1d6981Smrg <entry><emphasis> 1191ea1d6981SmrgXkbAccessXNotify</emphasis> 1192ea1d6981Smrg</entry> 1193ea1d6981Smrg <entry><emphasis> 1194ea1d6981SmrgKB_AXNDETAILMASK</emphasis> 1195ea1d6981Smrg</entry> 1196ea1d6981Smrg <entry><emphasis> 1197ea1d6981SmrgCARD16</emphasis> 1198ea1d6981Smrg</entry> 1199ea1d6981Smrg </row> 1200ea1d6981Smrg <row> 1201ea1d6981Smrg <entry><emphasis> 1202ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 1203ea1d6981Smrg</entry> 1204ea1d6981Smrg <entry><emphasis> 1205ea1d6981SmrgKB_XIDETAILMASK</emphasis> 1206ea1d6981Smrg</entry> 1207ea1d6981Smrg <entry><emphasis> 1208ea1d6981SmrgCARD16</emphasis> 1209ea1d6981Smrg</entry> 1210ea1d6981Smrg </row> 1211ea1d6981Smrg</tbody> 1212ea1d6981Smrg</tgroup> 1213ea1d6981Smrg</informaltable> 1214ea1d6981Smrg 1215ea1d6981Smrg<para> 1216ea1d6981SmrgDetail masks for event types that are not specified in <emphasis> 1217ea1d6981SmrgaffectWhich</emphasis> 1218ea1d6981Smrg are not changed. 1219ea1d6981Smrg</para> 1220ea1d6981Smrg 1221ea1d6981Smrg 1222ea1d6981Smrg<para> 1223ea1d6981SmrgIf any components are specified in a client’s event masks, the X server sends 1224ea1d6981Smrgthe client an appropriate event whenever any of those components change state. 1225ea1d6981SmrgUnless explicitly modified, all event detail masks are empty. <link linkend='Events'>Events</link> describes all XKB events 1226ea1d6981Smrgand the conditions under which the server generates them. 1227ea1d6981Smrg</para> 1228ea1d6981Smrg 1229ea1d6981Smrg 1230ea1d6981Smrg</sect2> 1231ea1d6981Smrg<sect2 id='Generating_Named_Keyboard_Bells'> 1232ea1d6981Smrg<title>Generating Named Keyboard Bells</title> 1233ea1d6981Smrg 1234ea1d6981Smrg 1235ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 1236ea1d6981Smrg<?dbfo keep-together="always" ?> 1237ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 1238ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 1239ea1d6981Smrg <thead> 1240ea1d6981Smrg <row> 1241ea1d6981Smrg <entry role='protoname'>XkbBell</entry> 1242ea1d6981Smrg </row> 1243ea1d6981Smrg </thead> 1244ea1d6981Smrg <tbody> 1245ea1d6981Smrg <row> 1246ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 1247ea1d6981Smrg </row> 1248ea1d6981Smrg <row> 1249ea1d6981Smrg <entry role='protoname'> 1250ea1d6981SmrgbellClass: KB_BELLCLASSSPEC</entry> 1251ea1d6981Smrg </row> 1252ea1d6981Smrg <row> 1253ea1d6981Smrg <entry role='protoname'> 1254ea1d6981SmrgbellID: KB_IDSPEC</entry> 1255ea1d6981Smrg </row> 1256ea1d6981Smrg <row> 1257ea1d6981Smrg <entry role='protoname'> 1258ea1d6981Smrgpercent: INT8</entry> 1259ea1d6981Smrg </row> 1260ea1d6981Smrg <row> 1261ea1d6981Smrg <entry role='protoname'> 1262ea1d6981SmrgforceSound: BOOL</entry> 1263ea1d6981Smrg </row> 1264ea1d6981Smrg <row> 1265ea1d6981Smrg <entry role='protoname'> 1266ea1d6981SmrgeventOnly: BOOL</entry> 1267ea1d6981Smrg </row> 1268ea1d6981Smrg <row> 1269ea1d6981Smrg <entry role='protoname'> 1270ea1d6981Smrgpitch, duration: INT16</entry> 1271ea1d6981Smrg </row> 1272ea1d6981Smrg <row> 1273ea1d6981Smrg <entry role='protoname'> 1274ea1d6981Smrgname: ATOM</entry> 1275ea1d6981Smrg </row> 1276ea1d6981Smrg <row> 1277ea1d6981Smrg <entry role='protoname'> 1278ea1d6981Smrgwindow: WINDOW</entry> 1279ea1d6981Smrg </row> 1280ea1d6981Smrg 1281ea1d6981Smrg <row> 1282ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 1283ea1d6981SmrgKeyboard</emphasis> 1284ea1d6981Smrg, <emphasis> 1285ea1d6981SmrgValue</emphasis> 1286ea1d6981Smrg, <emphasis> 1287ea1d6981SmrgMatch</emphasis> 1288ea1d6981Smrg</entry> 1289ea1d6981Smrg </row> 1290ea1d6981Smrg 1291ea1d6981Smrg </tbody> 1292ea1d6981Smrg </tgroup> 1293ea1d6981Smrg</informaltable> 1294ea1d6981Smrg 1295ea1d6981Smrg<para> 1296ea1d6981SmrgThis request generates audible bells and/or <emphasis> 1297ea1d6981SmrgXkbBellNotify</emphasis> 1298ea1d6981Smrg events for the bell specified by the <emphasis> 1299ea1d6981SmrgbellClass</emphasis> 1300ea1d6981Smrg and <emphasis> 1301ea1d6981SmrgbellID</emphasis> 1302ea1d6981Smrg on the device specified by <emphasis> 1303ea1d6981SmrgdeviceSpec</emphasis> 1304ea1d6981Smrg at the specified <emphasis> 1305ea1d6981Smrgpitch</emphasis> 1306ea1d6981Smrg, <emphasis> 1307ea1d6981Smrgduration</emphasis> 1308ea1d6981Smrg and volume (<emphasis> 1309ea1d6981Smrgpercent</emphasis> 1310ea1d6981Smrg). If deviceSpec specifies a device that does not have a bell or keyboard 1311ea1d6981Smrgfeedback, a <emphasis> 1312ea1d6981SmrgKeyboard</emphasis> 1313ea1d6981Smrg error results. 1314ea1d6981Smrg</para> 1315ea1d6981Smrg 1316ea1d6981Smrg 1317ea1d6981Smrg<para> 1318ea1d6981SmrgIf both <emphasis> 1319ea1d6981SmrgforceSound</emphasis> 1320ea1d6981Smrg and <emphasis> 1321ea1d6981SmrgeventOnly</emphasis> 1322ea1d6981Smrg are set, this request yields a <emphasis> 1323ea1d6981SmrgMatch</emphasis> 1324ea1d6981Smrg error. Otherwise, if <emphasis> 1325ea1d6981SmrgforceSound</emphasis> 1326ea1d6981Smrg is <emphasis> 1327ea1d6981SmrgTrue</emphasis> 1328ea1d6981Smrg, this request always generates a sound and never generates an event; if 1329ea1d6981Smrg<emphasis> 1330ea1d6981SmrgeventOnly</emphasis> 1331ea1d6981Smrg is <emphasis> 1332ea1d6981SmrgTrue</emphasis> 1333ea1d6981Smrg, it causes an event but no sound. If neither <emphasis> 1334ea1d6981SmrgforceSound</emphasis> 1335ea1d6981Smrg nor <emphasis> 1336ea1d6981SmrgeventOnly</emphasis> 1337ea1d6981Smrg are <emphasis> 1338ea1d6981SmrgTrue</emphasis> 1339ea1d6981Smrg, this request always generates an event; if the keyboard’s global <emphasis> 1340ea1d6981SmrgAudibleBell</emphasis> 1341ea1d6981Smrg control is enabled, it also generates a sound. 1342ea1d6981Smrg</para> 1343ea1d6981Smrg 1344ea1d6981Smrg 1345ea1d6981Smrg<para> 1346ea1d6981SmrgAny bell event generated by this request contains all of the information about 1347ea1d6981Smrgthe bell that was requested, including the symbolic name specified by <emphasis> 1348ea1d6981Smrgname</emphasis> 1349ea1d6981Smrg and the event window specified by window. The <emphasis> 1350ea1d6981Smrgname</emphasis> 1351ea1d6981Smrg and <emphasis> 1352ea1d6981Smrgwindow</emphasis> 1353ea1d6981Smrg are not directly interpreted by XKB, but they must have the value <emphasis> 1354ea1d6981SmrgNone</emphasis> 1355ea1d6981Smrg or specify a legal Atom or Window, respectively. <emphasis> 1356ea1d6981SmrgXkbBellNotify</emphasis> 1357ea1d6981Smrg events generated in response to core protocol or X input extension bell 1358ea1d6981Smrgrequests always report <emphasis> 1359ea1d6981SmrgNone</emphasis> 1360ea1d6981Smrg as their <emphasis> 1361ea1d6981Smrgname</emphasis> 1362ea1d6981Smrg. 1363ea1d6981Smrg</para> 1364ea1d6981Smrg 1365ea1d6981Smrg 1366ea1d6981Smrg<para> 1367ea1d6981SmrgThe <emphasis> 1368ea1d6981SmrgbellClass</emphasis> 1369ea1d6981Smrg, <emphasis> 1370ea1d6981SmrgbellID</emphasis> 1371ea1d6981Smrg, and <emphasis> 1372ea1d6981Smrgpercent</emphasis> 1373ea1d6981Smrg fields are interpreted as for the X input extension <emphasis> 1374ea1d6981SmrgDeviceBell</emphasis> 1375ea1d6981Smrg request. If <emphasis> 1376ea1d6981Smrgpitch</emphasis> 1377ea1d6981Smrg and <emphasis> 1378ea1d6981Smrgduration</emphasis> 1379ea1d6981Smrg are zero, the server uses the corresponding values for that bell from the core 1380ea1d6981Smrgprotocol or input extension, otherwise <emphasis> 1381ea1d6981Smrgpitch</emphasis> 1382ea1d6981Smrg and <emphasis> 1383ea1d6981Smrgduration</emphasis> 1384ea1d6981Smrg are interpreted as for the core protocol <emphasis> 1385ea1d6981SmrgChangeKeyboardControl</emphasis> 1386ea1d6981Smrg request; if they do not include legal values, a <emphasis> 1387ea1d6981SmrgValue</emphasis> 1388ea1d6981Smrg error results. The <emphasis> 1389ea1d6981Smrgwindow</emphasis> 1390ea1d6981Smrg field must specify a legal Window or have the value <emphasis> 1391ea1d6981SmrgNone</emphasis> 1392ea1d6981Smrg, or a <emphasis> 1393ea1d6981SmrgValue</emphasis> 1394ea1d6981Smrg error results. The name field must specify a legal Atom or have the value 1395ea1d6981Smrg<emphasis> 1396ea1d6981SmrgNone</emphasis> 1397ea1d6981Smrg, or an <emphasis> 1398ea1d6981SmrgAtom</emphasis> 1399ea1d6981Smrg error results. If an error occurs, this request has no other effect (i.e. does 1400ea1d6981Smrgnot cause a sound or generate an event). 1401ea1d6981Smrg</para> 1402ea1d6981Smrg 1403ea1d6981Smrg 1404ea1d6981Smrg<para> 1405ea1d6981SmrgThe <emphasis> 1406ea1d6981Smrgpitch</emphasis> 1407ea1d6981Smrg, <emphasis> 1408ea1d6981Smrgvolume</emphasis> 1409ea1d6981Smrg, and <emphasis> 1410ea1d6981Smrgduration</emphasis> 1411ea1d6981Smrg are suggested values for the bell, but XKB does not require the server to 1412ea1d6981Smrghonor them. 1413ea1d6981Smrg</para> 1414ea1d6981Smrg 1415ea1d6981Smrg 1416ea1d6981Smrg</sect2> 1417ea1d6981Smrg<sect2 id='Querying_and_Changing_Keyboard_State'> 1418ea1d6981Smrg<title>Querying and Changing Keyboard State</title> 1419ea1d6981Smrg 1420ea1d6981Smrg 1421ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 1422ea1d6981Smrg<?dbfo keep-together="always" ?> 1423ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 1424ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 1425ea1d6981Smrg <thead> 1426ea1d6981Smrg <row> 1427ea1d6981Smrg <entry role='protoname'>XkbGetState</entry> 1428ea1d6981Smrg </row> 1429ea1d6981Smrg </thead> 1430ea1d6981Smrg <tbody> 1431ea1d6981Smrg <row> 1432ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC 1433ea1d6981Smrg </entry> 1434ea1d6981Smrg </row> 1435ea1d6981Smrg <row> 1436ea1d6981Smrg <entry role='protoreply'> 1437ea1d6981SmrgdeviceID: CARD8 1438ea1d6981Smrg </entry> 1439ea1d6981Smrg </row> 1440ea1d6981Smrg <row> 1441ea1d6981Smrg <entry role='protoreply'> 1442ea1d6981Smrgmods, baseMods, latchedMods, lockedMods: KEYMASK 1443ea1d6981Smrg </entry> 1444ea1d6981Smrg </row> 1445ea1d6981Smrg <row> 1446ea1d6981Smrg <entry role='protoreply'> 1447ea1d6981Smrggroup, lockedGroup: KB_GROUP 1448ea1d6981Smrg </entry> 1449ea1d6981Smrg </row> 1450ea1d6981Smrg <row> 1451ea1d6981Smrg <entry role='protoreply'> 1452ea1d6981SmrgbaseGroup, latchedGroup: INT16 1453ea1d6981Smrg </entry> 1454ea1d6981Smrg </row> 1455ea1d6981Smrg <row> 1456ea1d6981Smrg <entry role='protoreply'> 1457ea1d6981SmrgcompatState: KEYMASK 1458ea1d6981Smrg </entry> 1459ea1d6981Smrg </row> 1460ea1d6981Smrg <row> 1461ea1d6981Smrg <entry role='protoreply'> 1462ea1d6981SmrggrabMods, compatGrabMods: KB_GROUP 1463ea1d6981Smrg </entry> 1464ea1d6981Smrg </row> 1465ea1d6981Smrg <row> 1466ea1d6981Smrg <entry role='protoreply'> 1467ea1d6981SmrglookupMods, compatLookupMods: KEYMASK 1468ea1d6981Smrg </entry> 1469ea1d6981Smrg </row> 1470ea1d6981Smrg <row> 1471ea1d6981Smrg <entry role='protoreply'> 1472ea1d6981SmrgptrBtnState: BUTMASK</entry> 1473ea1d6981Smrg </row> 1474ea1d6981Smrg <row> 1475ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 1476ea1d6981SmrgKeyboard</emphasis> 1477ea1d6981Smrg</entry> 1478ea1d6981Smrg </row> 1479ea1d6981Smrg 1480ea1d6981Smrg </tbody> 1481ea1d6981Smrg </tgroup> 1482ea1d6981Smrg</informaltable> 1483ea1d6981Smrg 1484ea1d6981Smrg<para> 1485ea1d6981SmrgThis request returns a detailed description of the current state of the 1486ea1d6981Smrgkeyboard specified by <emphasis> 1487ea1d6981SmrgdeviceSpec</emphasis> 1488ea1d6981Smrg. 1489ea1d6981Smrg</para> 1490ea1d6981Smrg 1491ea1d6981Smrg 1492ea1d6981Smrg<para> 1493ea1d6981SmrgThe <emphasis> 1494ea1d6981SmrgdeviceID</emphasis> 1495ea1d6981Smrg return value contains the input extension identifier for the specified device, 1496ea1d6981Smrgor <emphasis> 1497ea1d6981Smrg0</emphasis> 1498ea1d6981Smrg if the server does not support the input extension. 1499ea1d6981Smrg</para> 1500ea1d6981Smrg 1501ea1d6981Smrg 1502ea1d6981Smrg<para> 1503ea1d6981SmrgThe <emphasis> 1504ea1d6981SmrgbaseMods</emphasis> 1505ea1d6981Smrg return value reports the modifiers that are set because one or more modifier 1506ea1d6981Smrgkeys are logically down. The <emphasis> 1507ea1d6981SmrglatchedMods</emphasis> 1508ea1d6981Smrg and <emphasis> 1509ea1d6981SmrglockedMods</emphasis> 1510ea1d6981Smrg return values report the modifiers that are latched or locked respectively. 1511ea1d6981SmrgThe <emphasis> 1512ea1d6981Smrgmods</emphasis> 1513ea1d6981Smrg return value reports the effective modifier mask which results from the 1514ea1d6981Smrgcurrent combination of base, latched and locked modifiers. 1515ea1d6981Smrg</para> 1516ea1d6981Smrg 1517ea1d6981Smrg 1518ea1d6981Smrg<para> 1519ea1d6981SmrgThe <emphasis> 1520ea1d6981SmrgbaseGroup</emphasis> 1521ea1d6981Smrg return value reports the group state selected by group shift keys that are 1522ea1d6981Smrglogically down. The <emphasis> 1523ea1d6981SmrglatchedGroup</emphasis> 1524ea1d6981Smrg and <emphasis> 1525ea1d6981SmrglockedGroup</emphasis> 1526ea1d6981Smrg return values detail the effects of latching or locking group shift keys and 1527ea1d6981Smrg<emphasis> 1528ea1d6981SmrgXkbLatchLockState</emphasis> 1529ea1d6981Smrg requests. The <emphasis> 1530ea1d6981Smrggroup</emphasis> 1531ea1d6981Smrg return value reports the effective keyboard group which results from the 1532ea1d6981Smrgcurrent combination of base, latched and locked group values. 1533ea1d6981Smrg</para> 1534ea1d6981Smrg 1535ea1d6981Smrg 1536ea1d6981Smrg<para> 1537ea1d6981SmrgThe <emphasis> 1538ea1d6981SmrglookupMods</emphasis> 1539ea1d6981Smrg return value reports the lookup modifiers, which consist of the current 1540ea1d6981Smrgeffective modifiers minus any server internal modifiers. The <emphasis> 1541ea1d6981SmrggrabMods</emphasis> 1542ea1d6981Smrg return value reports the grab modifiers, which consist of the lookup modifiers 1543ea1d6981Smrgminus any members of the ignore locks mask that are not either latched or 1544ea1d6981Smrglogically depressed. <link linkend='Keyboard_State'>Keyboard 1545ea1d6981SmrgState</link> describes the lookup modifiers and grab modifiers in more detail. 1546ea1d6981Smrg</para> 1547ea1d6981Smrg 1548ea1d6981Smrg 1549ea1d6981Smrg<para> 1550ea1d6981SmrgThe <emphasis> 1551ea1d6981SmrgptrBtnState</emphasis> 1552ea1d6981Smrg return value reports the current logical state of up to five buttons on the 1553ea1d6981Smrgcore pointer device. 1554ea1d6981Smrg</para> 1555ea1d6981Smrg 1556ea1d6981Smrg 1557ea1d6981Smrg<para> 1558ea1d6981SmrgThe <emphasis> 1559ea1d6981SmrgcompatState</emphasis> 1560ea1d6981Smrg return value reports the compatibility state that corresponds to the effective 1561ea1d6981Smrgkeyboard group and modifier state. The <emphasis> 1562ea1d6981SmrgcompatLookupMods</emphasis> 1563ea1d6981Smrg and <emphasis> 1564ea1d6981SmrgcompatGrabMods</emphasis> 1565ea1d6981Smrg return values report the core protocol compatibility states that correspond to 1566ea1d6981Smrgthe XKB lookup and grab state. All of the compatibility states are computed by 1567ea1d6981Smrgapplying the group compatibility mapping to the corresponding XKB modifier and 1568ea1d6981Smrggroup states, as described in <link linkend='Group_Compatibility_Map'> 1569ea1d6981SmrgGroup Compatibility Map</link>. 1570ea1d6981Smrg</para> 1571ea1d6981Smrg 1572ea1d6981Smrg 1573ea1d6981Smrg 1574ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 1575ea1d6981Smrg<?dbfo keep-together="always" ?> 1576ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 1577ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 1578ea1d6981Smrg <thead> 1579ea1d6981Smrg <row> 1580ea1d6981Smrg <entry role='protoname'>XkbLatchLockState</entry> 1581ea1d6981Smrg </row> 1582ea1d6981Smrg </thead> 1583ea1d6981Smrg <tbody> 1584ea1d6981Smrg <row> 1585ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 1586ea1d6981Smrg </row> 1587ea1d6981Smrg <row> 1588ea1d6981Smrg <entry role='protoname'> 1589ea1d6981SmrgaffectModLocks, modLocks: KEYMASK</entry> 1590ea1d6981Smrg </row> 1591ea1d6981Smrg <row> 1592ea1d6981Smrg <entry role='protoname'> 1593ea1d6981SmrglockGroup: BOOL</entry> 1594ea1d6981Smrg </row> 1595ea1d6981Smrg <row> 1596ea1d6981Smrg <entry role='protoname'> 1597ea1d6981SmrggroupLock: KB_GROUP</entry> 1598ea1d6981Smrg </row> 1599ea1d6981Smrg <row> 1600ea1d6981Smrg <entry role='protoname'> 1601ea1d6981SmrgaffectModLatches,modLatches: KEYMASK</entry> 1602ea1d6981Smrg </row> 1603ea1d6981Smrg <row> 1604ea1d6981Smrg <entry role='protoname'> 1605ea1d6981SmrglatchGroup: BOOL</entry> 1606ea1d6981Smrg </row> 1607ea1d6981Smrg <row> 1608ea1d6981Smrg <entry role='protoname'> 1609ea1d6981SmrggroupLatch: INT16</entry> 1610ea1d6981Smrg </row> 1611ea1d6981Smrg 1612ea1d6981Smrg <row> 1613ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 1614ea1d6981SmrgKeyboard</emphasis> 1615ea1d6981Smrg, <emphasis> 1616ea1d6981SmrgValue</emphasis> 1617ea1d6981Smrg</entry> 1618ea1d6981Smrg </row> 1619ea1d6981Smrg 1620ea1d6981Smrg </tbody> 1621ea1d6981Smrg </tgroup> 1622ea1d6981Smrg</informaltable> 1623ea1d6981Smrg 1624ea1d6981Smrg<para> 1625ea1d6981SmrgThis request locks or latches keyboard modifiers and group state for the device 1626ea1d6981Smrgspecified by <emphasis> 1627ea1d6981SmrgdeviceSpec</emphasis> 1628ea1d6981Smrg. If <emphasis> 1629ea1d6981SmrgdeviceSpec</emphasis> 1630ea1d6981Smrg specifies an illegal or non-keyboard device, a <emphasis> 1631ea1d6981SmrgKeyboard</emphasis> 1632ea1d6981Smrg error occurs. 1633ea1d6981Smrg</para> 1634ea1d6981Smrg 1635ea1d6981Smrg 1636ea1d6981Smrg<para> 1637ea1d6981SmrgThe locked state of any modifier specified in the <emphasis> 1638ea1d6981SmrgaffectModLocks</emphasis> 1639ea1d6981Smrg mask is set to the corresponding value from <emphasis> 1640ea1d6981SmrgmodLocks</emphasis> 1641ea1d6981Smrg. If <emphasis> 1642ea1d6981SmrglockGroup</emphasis> 1643ea1d6981Smrg is <emphasis> 1644ea1d6981SmrgTrue</emphasis> 1645ea1d6981Smrg, the locked keyboard group is set to the group specified by <emphasis> 1646ea1d6981SmrggroupLock</emphasis> 1647ea1d6981Smrg. If any modifiers are set in <emphasis> 1648ea1d6981SmrgmodLocks</emphasis> 1649ea1d6981Smrg but not <emphasis> 1650ea1d6981SmrgaffectModLocks</emphasis> 1651ea1d6981Smrg, a <emphasis> 1652ea1d6981SmrgMatch</emphasis> 1653ea1d6981Smrg error occurs. 1654ea1d6981Smrg</para> 1655ea1d6981Smrg 1656ea1d6981Smrg 1657ea1d6981Smrg<para> 1658ea1d6981SmrgThe latched state of any modifier specified in the <emphasis> 1659ea1d6981SmrgaffectModLatches</emphasis> 1660ea1d6981Smrg mask is set to the corresponding value from <emphasis> 1661ea1d6981SmrgmodLatches</emphasis> 1662ea1d6981Smrg. If <emphasis> 1663ea1d6981SmrglatchGroup</emphasis> 1664ea1d6981Smrg is <emphasis> 1665ea1d6981SmrgTrue</emphasis> 1666ea1d6981Smrg, the latched keyboard group is set to the group specified by <emphasis> 1667ea1d6981SmrggroupLatch</emphasis> 1668ea1d6981Smrg. if any modifiers are set in <emphasis> 1669ea1d6981SmrgmodLatches</emphasis> 1670ea1d6981Smrg but not in <emphasis> 1671ea1d6981SmrgaffectModLatches</emphasis> 1672ea1d6981Smrg, a <emphasis> 1673ea1d6981SmrgMatch</emphasis> 1674ea1d6981Smrg error occurs. 1675ea1d6981Smrg</para> 1676ea1d6981Smrg 1677ea1d6981Smrg 1678ea1d6981Smrg<para> 1679ea1d6981SmrgIf the locked group exceeds the maximum number of groups permitted for the 1680ea1d6981Smrgspecified keyboard, it is wrapped or truncated back into range as specified by 1681ea1d6981Smrgthe global <emphasis> 1682ea1d6981SmrgGroupsWrap</emphasis> 1683ea1d6981Smrg<emphasis> 1684ea1d6981Smrg </emphasis> 1685ea1d6981Smrgcontrol. No error results from an out-of-range group specification. 1686ea1d6981Smrg</para> 1687ea1d6981Smrg 1688ea1d6981Smrg 1689ea1d6981Smrg<para> 1690ea1d6981SmrgAfter changing the locked and latched modifiers and groups as specified, the X 1691ea1d6981Smrgserver recalculates the effective and compatibility keyboard state and 1692ea1d6981Smrggenerates <emphasis> 1693ea1d6981SmrgXkbStateNotify</emphasis> 1694ea1d6981Smrg events as appropriate if any state components have changed. Changing the 1695ea1d6981Smrgkeyboard state might also turn indicators on or off which can cause <emphasis> 1696ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 1697ea1d6981Smrg events as well. 1698ea1d6981Smrg</para> 1699ea1d6981Smrg 1700ea1d6981Smrg 1701ea1d6981Smrg<para> 1702ea1d6981SmrgIf any errors occur, this request has no effect. 1703ea1d6981Smrg</para> 1704ea1d6981Smrg 1705ea1d6981Smrg 1706ea1d6981Smrg</sect2> 1707ea1d6981Smrg<sect2 id='Querying_and_Changing_Keyboard_Controls'> 1708ea1d6981Smrg<title>Querying and Changing Keyboard Controls</title> 1709ea1d6981Smrg 1710ea1d6981Smrg 1711ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 1712ea1d6981Smrg<?dbfo keep-together="always" ?> 1713ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 1714ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 1715ea1d6981Smrg <thead> 1716ea1d6981Smrg <row> 1717ea1d6981Smrg <entry role='protoname'>XkbGetControls</entry> 1718ea1d6981Smrg </row> 1719ea1d6981Smrg </thead> 1720ea1d6981Smrg <tbody> 1721ea1d6981Smrg <row> 1722ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC 1723ea1d6981Smrg </entry> 1724ea1d6981Smrg </row> 1725ea1d6981Smrg <row> 1726ea1d6981Smrg <entry role='protoreply'> 1727ea1d6981SmrgdeviceID: CARD8 1728ea1d6981Smrg </entry> 1729ea1d6981Smrg </row> 1730ea1d6981Smrg <row> 1731ea1d6981Smrg <entry role='protoreply'> 1732ea1d6981SmrgmouseKeysDfltBtn: CARD8 1733ea1d6981Smrg </entry> 1734ea1d6981Smrg </row> 1735ea1d6981Smrg <row> 1736ea1d6981Smrg <entry role='protoreply'> 1737ea1d6981SmrgnumGroups: CARD8 1738ea1d6981Smrg </entry> 1739ea1d6981Smrg </row> 1740ea1d6981Smrg <row> 1741ea1d6981Smrg <entry role='protoreply'> 1742ea1d6981SmrggroupsWrap: KB_GROUPINFO 1743ea1d6981Smrg </entry> 1744ea1d6981Smrg </row> 1745ea1d6981Smrg <row> 1746ea1d6981Smrg <entry role='protoreply'> 1747ea1d6981SmrginternalMods,ignoreLockMods: KB_MODDEF 1748ea1d6981Smrg </entry> 1749ea1d6981Smrg </row> 1750ea1d6981Smrg <row> 1751ea1d6981Smrg <entry role='protoreply'> 1752ea1d6981SmrgrepeatDelay,repeatInterval: CARD16 1753ea1d6981Smrg </entry> 1754ea1d6981Smrg </row> 1755ea1d6981Smrg <row> 1756ea1d6981Smrg <entry role='protoreply'> 1757ea1d6981SmrgslowKeysDelay, debounceDelay: CARD16 1758ea1d6981Smrg </entry> 1759ea1d6981Smrg </row> 1760ea1d6981Smrg <row> 1761ea1d6981Smrg <entry role='protoreply'> 1762ea1d6981SmrgmouseKeysDelay, mouseKeysInterval: CARD16 1763ea1d6981Smrg </entry> 1764ea1d6981Smrg </row> 1765ea1d6981Smrg <row> 1766ea1d6981Smrg <entry role='protoreply'> 1767ea1d6981SmrgmouseKeysTimeToMax, mouseKeysMaxSpeed: CARD16 1768ea1d6981Smrg </entry> 1769ea1d6981Smrg </row> 1770ea1d6981Smrg <row> 1771ea1d6981Smrg <entry role='protoreply'> 1772ea1d6981SmrgmouseKeysCurve: INT16 1773ea1d6981Smrg </entry> 1774ea1d6981Smrg </row> 1775ea1d6981Smrg <row> 1776ea1d6981Smrg <entry role='protoreply'> 1777ea1d6981SmrgaccessXOptions: KB_AXOPTIONMASK 1778ea1d6981Smrg </entry> 1779ea1d6981Smrg </row> 1780ea1d6981Smrg <row> 1781ea1d6981Smrg <entry role='protoreply'> 1782ea1d6981SmrgaccessXTimeout: CARD16 1783ea1d6981Smrg </entry> 1784ea1d6981Smrg </row> 1785ea1d6981Smrg <row> 1786ea1d6981Smrg <entry role='protoreply'> 1787ea1d6981SmrgaccessXTimeoutOptionsMask, accessXTimeoutOptionValues: CARD16 1788ea1d6981Smrg </entry> 1789ea1d6981Smrg </row> 1790ea1d6981Smrg <row> 1791ea1d6981Smrg <entry role='protoreply'> 1792ea1d6981SmrgaccessXTimeoutMask,accessXTimeoutValues: CARD32 1793ea1d6981Smrg </entry> 1794ea1d6981Smrg </row> 1795ea1d6981Smrg <row> 1796ea1d6981Smrg <entry role='protoreply'> 1797ea1d6981SmrgenabledControls: KB_BOOLCTRLMASK 1798ea1d6981Smrg </entry> 1799ea1d6981Smrg </row> 1800ea1d6981Smrg <row> 1801ea1d6981Smrg <entry role='protoreply'> 1802ea1d6981SmrgperKeyRepeat: LISTofCARD8</entry> 1803ea1d6981Smrg </row> 1804ea1d6981Smrg 1805ea1d6981Smrg <row> 1806ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 1807ea1d6981SmrgKeyboard</emphasis> 1808ea1d6981Smrg</entry> 1809ea1d6981Smrg </row> 1810ea1d6981Smrg 1811ea1d6981Smrg </tbody> 1812ea1d6981Smrg </tgroup> 1813ea1d6981Smrg</informaltable> 1814ea1d6981Smrg 1815ea1d6981Smrg<para> 1816ea1d6981SmrgThis request returns the current values and status of all controls for the 1817ea1d6981Smrgkeyboard specified by <emphasis> 1818ea1d6981SmrgdeviceSpec</emphasis> 1819ea1d6981Smrg. If <emphasis> 1820ea1d6981SmrgdeviceSpec</emphasis> 1821ea1d6981Smrg specifies an illegal device a <emphasis> 1822ea1d6981SmrgKeyboard</emphasis> 1823ea1d6981Smrg error results. On return, the <emphasis> 1824ea1d6981SmrgdeviceID</emphasis> 1825ea1d6981Smrg specifies the identifier of the requested device or zero if the server does 1826ea1d6981Smrgnot support the input extension. 1827ea1d6981Smrg</para> 1828ea1d6981Smrg 1829ea1d6981Smrg 1830ea1d6981Smrg<para> 1831ea1d6981SmrgThe <emphasis> 1832ea1d6981SmrgnumGroups</emphasis> 1833ea1d6981Smrg return value reports the current number of groups, and <emphasis> 1834ea1d6981SmrggroupsWrap</emphasis> 1835ea1d6981Smrg reports the treatment of out-of-range groups, as described in <link linkend='Key_Symbol_Map'>Key Symbol Map</link>. The <emphasis> 1836ea1d6981SmrginternalMods</emphasis> 1837ea1d6981Smrg and <emphasis> 1838ea1d6981SmrgignoreLockMods</emphasis> 1839ea1d6981Smrg return values report the current values of the server internal and ignore 1840ea1d6981Smrglocks modifiers as described in <link linkend='Keyboard_State'> 1841ea1d6981SmrgKeyboard State</link>. Both are modifier definitions ( 1842ea1d6981Smrg<link linkend='Modifier_Definitions'>Modifier Definitions</link>) which 1843ea1d6981Smrgreport the real modifiers, virtual modifiers, and the resulting combination of 1844ea1d6981Smrgreal modifiers that are bound to the corresponding control. 1845ea1d6981Smrg</para> 1846ea1d6981Smrg 1847ea1d6981Smrg 1848ea1d6981Smrg<para> 1849ea1d6981SmrgThe <emphasis> 1850ea1d6981SmrgrepeatDelay</emphasis> 1851ea1d6981Smrg, <emphasis> 1852ea1d6981SmrgrepeatInterval</emphasis> 1853ea1d6981Smrg, <emphasis> 1854ea1d6981SmrgslowKeysDelay</emphasis> 1855ea1d6981Smrg and <emphasis> 1856ea1d6981SmrgdebounceDelay</emphasis> 1857ea1d6981Smrg fields report the current values of the for the autorepeat delay, autorepeat 1858ea1d6981Smrginterval, slow keys delay and bounce keys timeout, respectively. The <emphasis> 1859ea1d6981SmrgmouseKeysDelay</emphasis> 1860ea1d6981Smrg, <emphasis> 1861ea1d6981SmrgmouseKeysInterval</emphasis> 1862ea1d6981Smrg, <emphasis> 1863ea1d6981SmrgmouseKeysTimeToMax</emphasis> 1864ea1d6981Smrg and <emphasis> 1865ea1d6981SmrgmouseKeysMaxSpeed</emphasis> 1866ea1d6981Smrg and <emphasis> 1867ea1d6981SmrgmouseKeysCurve</emphasis> 1868ea1d6981Smrg return values report the current acceleration applied to mouse keys, as 1869ea1d6981Smrgdescribed in <link linkend='The_MouseKeysAccel_Control'>The MouseKeysAccel 1870ea1d6981SmrgControl</link>. All times are reported in milliseconds. 1871ea1d6981Smrg</para> 1872ea1d6981Smrg 1873ea1d6981Smrg 1874ea1d6981Smrg<para> 1875ea1d6981SmrgThe <emphasis> 1876ea1d6981SmrgmouseKeysDfltBtn</emphasis> 1877ea1d6981Smrg return value reports the current default pointer button for which events are 1878ea1d6981Smrgsynthesized by the mouse keys server actions. 1879ea1d6981Smrg</para> 1880ea1d6981Smrg 1881ea1d6981Smrg 1882ea1d6981Smrg<para> 1883ea1d6981SmrgThe <emphasis> 1884ea1d6981SmrgaccessXOptions</emphasis> 1885ea1d6981Smrg return value reports the current settings of the various AccessX options flags 1886ea1d6981Smrgwhich govern the behavior of the <emphasis> 1887ea1d6981SmrgStickyKeys</emphasis> 1888ea1d6981Smrg control and of AccessX feedback. 1889ea1d6981Smrg</para> 1890ea1d6981Smrg 1891ea1d6981Smrg 1892ea1d6981Smrg<para> 1893ea1d6981SmrgThe <emphasis> 1894ea1d6981SmrgaccessXTimeout</emphasis> 1895ea1d6981Smrg return value reports the length of time, in seconds, that the keyboard must 1896ea1d6981Smrgremain idle before AccessX controls are automatically changed; an <emphasis> 1897ea1d6981SmrgaccessXTimeout</emphasis> 1898ea1d6981Smrg of <emphasis> 1899ea1d6981Smrg0</emphasis> 1900ea1d6981Smrg indicates that AccessX controls are not automatically changed. The <emphasis> 1901ea1d6981SmrgaccessXTimeoutMask</emphasis> 1902ea1d6981Smrg specifies the boolean controls to be changed if the AccessX timeout expires; 1903ea1d6981Smrgthe <emphasis> 1904ea1d6981SmrgaccessXTimeoutValues</emphasis> 1905ea1d6981Smrg field specifies new values for all of the controls in the timeout mask. The 1906ea1d6981Smrg<emphasis> 1907ea1d6981SmrgaccessXTimeoutOptionsMask</emphasis> 1908ea1d6981Smrg field specifies the AccessX options to be changed when the AccessX timeout 1909ea1d6981Smrgexpires; the <emphasis> 1910ea1d6981SmrgaccessXTimeoutOptionValues</emphasis> 1911ea1d6981Smrg return value reports the values to which they will be set. 1912ea1d6981Smrg</para> 1913ea1d6981Smrg 1914ea1d6981Smrg 1915ea1d6981Smrg<para> 1916ea1d6981SmrgThe <emphasis> 1917ea1d6981SmrgenabledControls</emphasis> 1918ea1d6981Smrg return value reports the current state of all of the global boolean controls. 1919ea1d6981Smrg</para> 1920ea1d6981Smrg 1921ea1d6981Smrg 1922ea1d6981Smrg<para> 1923ea1d6981SmrgThe <emphasis> 1924ea1d6981SmrgperKeyRepeat</emphasis> 1925ea1d6981Smrg array consists of one bit per key and reports the current autorepeat behavior 1926ea1d6981Smrgof each keyboard key; if a bit is set in <emphasis> 1927ea1d6981SmrgperKeyRepeat</emphasis> 1928ea1d6981Smrg, the corresponding key repeats if it is held down while global keyboard 1929ea1d6981Smrgautorepeat is enabled. This array parallels the core protocol and input 1930ea1d6981Smrgextension keyboard controls, if the autorepeat behavior of a key is changed via 1931ea1d6981Smrgthe core protocol or input extension, those changes are automatically reflected 1932ea1d6981Smrgin the <emphasis> 1933ea1d6981SmrgperKeyRepeat</emphasis> 1934ea1d6981Smrg array. 1935ea1d6981Smrg</para> 1936ea1d6981Smrg 1937ea1d6981Smrg 1938ea1d6981Smrg 1939ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 1940ea1d6981Smrg<?dbfo keep-together="always" ?> 1941ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 1942ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 1943ea1d6981Smrg <thead> 1944ea1d6981Smrg <row> 1945ea1d6981Smrg <entry role='protoname'>XkbSetControls</entry> 1946ea1d6981Smrg </row> 1947ea1d6981Smrg </thead> 1948ea1d6981Smrg <tbody> 1949ea1d6981Smrg <row> 1950ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 1951ea1d6981Smrg </row> 1952ea1d6981Smrg <row> 1953ea1d6981Smrg <entry role='protoname'> 1954ea1d6981SmrgaffectInternalRealMods, internalRealMods: KEYMASK</entry> 1955ea1d6981Smrg </row> 1956ea1d6981Smrg <row> 1957ea1d6981Smrg <entry role='protoname'> 1958ea1d6981SmrgaffectInternalVirtualMods,internalVirtualMods: KB_VMODMASK</entry> 1959ea1d6981Smrg </row> 1960ea1d6981Smrg <row> 1961ea1d6981Smrg <entry role='protoname'> 1962ea1d6981SmrgaffectIgnoreLockRealMods,ignoreLockRealMods: KB_MODMASK</entry> 1963ea1d6981Smrg </row> 1964ea1d6981Smrg <row> 1965ea1d6981Smrg <entry role='protoname'> 1966ea1d6981SmrgaffectIgnoreLockVirtualMods,ignoreLockVirtualMods: KB_VMODMASK</entry> 1967ea1d6981Smrg </row> 1968ea1d6981Smrg <row> 1969ea1d6981Smrg <entry role='protoname'> 1970ea1d6981SmrgmouseKeysDfltBtn: CARD8</entry> 1971ea1d6981Smrg </row> 1972ea1d6981Smrg <row> 1973ea1d6981Smrg <entry role='protoname'> 1974ea1d6981SmrggroupsWrap: KB_GROUPINFO</entry> 1975ea1d6981Smrg </row> 1976ea1d6981Smrg <row> 1977ea1d6981Smrg <entry role='protoname'> 1978ea1d6981SmrgaccessXOptions: CARD16</entry> 1979ea1d6981Smrg </row> 1980ea1d6981Smrg <row> 1981ea1d6981Smrg <entry role='protoname'> 1982ea1d6981SmrgaffectEnabledControls: KB_BOOLCTRLMASK</entry> 1983ea1d6981Smrg </row> 1984ea1d6981Smrg <row> 1985ea1d6981Smrg <entry role='protoname'> 1986ea1d6981SmrgenabledControls: KB_BOOLCTRLMASK</entry> 1987ea1d6981Smrg </row> 1988ea1d6981Smrg <row> 1989ea1d6981Smrg <entry role='protoname'> 1990ea1d6981SmrgchangeControls: KB_CONTROLMASK</entry> 1991ea1d6981Smrg </row> 1992ea1d6981Smrg <row> 1993ea1d6981Smrg <entry role='protoname'> 1994ea1d6981SmrgrepeatDelay,repeatInterval: CARD16</entry> 1995ea1d6981Smrg </row> 1996ea1d6981Smrg <row> 1997ea1d6981Smrg <entry role='protoname'> 1998ea1d6981SmrgslowKeysDelay, debounceDelay: CARD16</entry> 1999ea1d6981Smrg </row> 2000ea1d6981Smrg <row> 2001ea1d6981Smrg <entry role='protoname'> 2002ea1d6981SmrgmouseKeysDelay, mouseKeysInterval: CARD16</entry> 2003ea1d6981Smrg </row> 2004ea1d6981Smrg <row> 2005ea1d6981Smrg <entry role='protoname'> 2006ea1d6981SmrgmouseKeysTimeToMax, mouseKeysMaxSpeed: CARD16</entry> 2007ea1d6981Smrg </row> 2008ea1d6981Smrg <row> 2009ea1d6981Smrg <entry role='protoname'> 2010ea1d6981SmrgmouseKeysCurve: INT16</entry> 2011ea1d6981Smrg </row> 2012ea1d6981Smrg <row> 2013ea1d6981Smrg <entry role='protoname'> 2014ea1d6981SmrgaccessXTimeout: CARD16</entry> 2015ea1d6981Smrg </row> 2016ea1d6981Smrg <row> 2017ea1d6981Smrg <entry role='protoname'> 2018ea1d6981SmrgaccessXTimeoutMask, accessXTimeoutValues: KB_BOOLCTRLMASK</entry> 2019ea1d6981Smrg </row> 2020ea1d6981Smrg <row> 2021ea1d6981Smrg <entry role='protoname'> 2022ea1d6981SmrgaccessXTimeoutOptionsMask,accessXTimeoutOptionsValues: CARD16</entry> 2023ea1d6981Smrg </row> 2024ea1d6981Smrg <row> 2025ea1d6981Smrg <entry role='protoname'> 2026ea1d6981SmrgperKeyRepeat: LISTofCARD8</entry> 2027ea1d6981Smrg </row> 2028ea1d6981Smrg 2029ea1d6981Smrg <row> 2030ea1d6981Smrg <entry role='protoerror'>Errors:<emphasis> 2031ea1d6981Smrg Keyboard</emphasis> 2032ea1d6981Smrg, <emphasis> 2033ea1d6981SmrgValue</emphasis> 2034ea1d6981Smrg</entry> 2035ea1d6981Smrg </row> 2036ea1d6981Smrg 2037ea1d6981Smrg </tbody> 2038ea1d6981Smrg </tgroup> 2039ea1d6981Smrg</informaltable> 2040ea1d6981Smrg 2041ea1d6981Smrg<para> 2042ea1d6981SmrgThis request sets the keyboard controls indicated in <emphasis> 2043ea1d6981SmrgchangeControls</emphasis> 2044ea1d6981Smrg for the keyboard specified by <emphasis> 2045ea1d6981SmrgdeviceSpec</emphasis> 2046ea1d6981Smrg. Each bit that is set in <emphasis> 2047ea1d6981SmrgchangeControls</emphasis> 2048ea1d6981Smrg indicates that one or more of the other request fields should be applied, as 2049ea1d6981Smrgfollows: 2050ea1d6981Smrg</para> 2051ea1d6981Smrg 2052ea1d6981Smrg<informaltable frame='topbot'> 2053ea1d6981Smrg<?dbfo keep-together="always" ?> 2054ea1d6981Smrg<tgroup cols='2' align='left' colsep='0' rowsep='0'> 2055ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 2056ea1d6981Smrg<colspec colname='c2' colwidth='2.0*'/> 2057ea1d6981Smrg<thead> 2058ea1d6981Smrg <row rowsep='1'> 2059ea1d6981Smrg <entry>Bit in changeControls</entry> 2060ea1d6981Smrg <entry>Field(s) to be Applied</entry> 2061ea1d6981Smrg </row> 2062ea1d6981Smrg</thead> 2063ea1d6981Smrg<tbody> 2064ea1d6981Smrg <row> 2065ea1d6981Smrg <entry><emphasis> 2066ea1d6981SmrgXkbRepeatKeysMask</emphasis> 2067ea1d6981Smrg</entry> 2068ea1d6981Smrg <entry><emphasis> 2069ea1d6981SmrgrepeatDelay</emphasis> 2070ea1d6981Smrg, <emphasis> 2071ea1d6981SmrgrepeatInterval</emphasis> 2072ea1d6981Smrg</entry> 2073ea1d6981Smrg </row> 2074ea1d6981Smrg <row> 2075ea1d6981Smrg <entry><emphasis> 2076ea1d6981SmrgXkbSlowKeysMask</emphasis> 2077ea1d6981Smrg</entry> 2078ea1d6981Smrg <entry><emphasis> 2079ea1d6981SmrgslowKeysDelay</emphasis> 2080ea1d6981Smrg</entry> 2081ea1d6981Smrg </row> 2082ea1d6981Smrg <row> 2083ea1d6981Smrg <entry><emphasis> 2084ea1d6981SmrgXkbStickyKeysMask</emphasis> 2085ea1d6981Smrg</entry> 2086ea1d6981Smrg <entry><emphasis> 2087ea1d6981SmrgaccessXOptions</emphasis> 2088ea1d6981Smrg (only the <emphasis> 2089ea1d6981SmrgXkbAX_TwoKeys</emphasis> 2090ea1d6981Smrg<emphasis> 2091ea1d6981Smrg </emphasis> 2092ea1d6981Smrgand the <emphasis> 2093ea1d6981SmrgXkbAX_LatchToLock</emphasis> 2094ea1d6981Smrg options are affected)</entry> 2095ea1d6981Smrg </row> 2096ea1d6981Smrg <row> 2097ea1d6981Smrg <entry><emphasis> 2098ea1d6981SmrgXkbBounceKeysMask</emphasis> 2099ea1d6981Smrg</entry> 2100ea1d6981Smrg <entry><emphasis> 2101ea1d6981SmrgdebounceDelay</emphasis> 2102ea1d6981Smrg</entry> 2103ea1d6981Smrg </row> 2104ea1d6981Smrg <row> 2105ea1d6981Smrg <entry><emphasis> 2106ea1d6981SmrgXkbMouseKeysMask</emphasis> 2107ea1d6981Smrg</entry> 2108ea1d6981Smrg <entry><emphasis> 2109ea1d6981SmrgmouseKeysDfltBtn</emphasis> 2110ea1d6981Smrg</entry> 2111ea1d6981Smrg </row> 2112ea1d6981Smrg <row> 2113ea1d6981Smrg <entry><emphasis> 2114ea1d6981SmrgXkbMouseKeysAccelMask</emphasis> 2115ea1d6981Smrg</entry> 2116ea1d6981Smrg <entry><emphasis> 2117ea1d6981SmrgmouseKeysDelay</emphasis> 2118ea1d6981Smrg, <emphasis> 2119ea1d6981SmrgmouseKeysInterval</emphasis> 2120ea1d6981Smrg, <emphasis> 2121ea1d6981SmrgmouseKeysCurve</emphasis> 2122ea1d6981Smrg, <emphasis> 2123ea1d6981SmrgmouseKeysTimeToMax</emphasis> 2124ea1d6981Smrg, <emphasis> 2125ea1d6981SmrgmouseKeysMaxSpeed</emphasis> 2126ea1d6981Smrg</entry> 2127ea1d6981Smrg </row> 2128ea1d6981Smrg <row> 2129ea1d6981Smrg <entry><emphasis> 2130ea1d6981SmrgXkbAccessXKeysMask</emphasis> 2131ea1d6981Smrg</entry> 2132ea1d6981Smrg <entry><emphasis> 2133ea1d6981SmrgaccessXOptions (all options)</emphasis> 2134ea1d6981Smrg</entry> 2135ea1d6981Smrg </row> 2136ea1d6981Smrg <row> 2137ea1d6981Smrg <entry><emphasis> 2138ea1d6981SmrgXkbAccessXTimeoutMask</emphasis> 2139ea1d6981Smrg</entry> 2140ea1d6981Smrg <entry><emphasis> 2141ea1d6981SmrgaccessXTimeout</emphasis> 2142ea1d6981Smrg, <emphasis> 2143ea1d6981SmrgaccessXTimeoutMask</emphasis> 2144ea1d6981Smrg, <emphasis> 2145ea1d6981SmrgaccessXTimeoutValues</emphasis> 2146ea1d6981Smrg, <emphasis> 2147ea1d6981SmrgaccessXTimeoutOptionsMask</emphasis> 2148ea1d6981Smrg, <emphasis> 2149ea1d6981SmrgaccessXTimeoutOptionsValues</emphasis> 2150ea1d6981Smrg</entry> 2151ea1d6981Smrg </row> 2152ea1d6981Smrg <row> 2153ea1d6981Smrg <entry>XkbAccessXFeedbackMask</entry> 2154ea1d6981Smrg <entry><emphasis> 2155ea1d6981SmrgaccessXOptions</emphasis> 2156ea1d6981Smrg (all options except those affected by the <emphasis> 2157ea1d6981SmrgXkbStickyKeysMask</emphasis> 2158ea1d6981Smrg bit)</entry> 2159ea1d6981Smrg </row> 2160ea1d6981Smrg <row> 2161ea1d6981Smrg <entry><emphasis> 2162ea1d6981SmrgXkbGroupsWrapMask</emphasis> 2163ea1d6981Smrg</entry> 2164ea1d6981Smrg <entry><emphasis> 2165ea1d6981SmrggroupsWrap</emphasis> 2166ea1d6981Smrg</entry> 2167ea1d6981Smrg </row> 2168ea1d6981Smrg <row> 2169ea1d6981Smrg <entry><emphasis> 2170ea1d6981SmrgXkbInternalModsMask</emphasis> 2171ea1d6981Smrg</entry> 2172ea1d6981Smrg <entry><emphasis> 2173ea1d6981SmrgaffectInternalRealMods</emphasis> 2174ea1d6981Smrg, <emphasis> 2175ea1d6981SmrginternalRealMods</emphasis> 2176ea1d6981Smrg, <emphasis> 2177ea1d6981SmrgaffectInternalVirtualMods</emphasis> 2178ea1d6981Smrg, <emphasis> 2179ea1d6981SmrginternalVirtualMods</emphasis> 2180ea1d6981Smrg</entry> 2181ea1d6981Smrg </row> 2182ea1d6981Smrg <row> 2183ea1d6981Smrg <entry><emphasis> 2184ea1d6981SmrgXkbIgnoreLockModsMask</emphasis> 2185ea1d6981Smrg</entry> 2186ea1d6981Smrg <entry><emphasis> 2187ea1d6981SmrgaffectIgnoreLockRealMods</emphasis> 2188ea1d6981Smrg, <emphasis> 2189ea1d6981SmrgignoreLockRealMods</emphasis> 2190ea1d6981Smrg, <emphasis> 2191ea1d6981SmrgaffectIgnoreLockVirtualMods</emphasis> 2192ea1d6981Smrg, <emphasis> 2193ea1d6981SmrgignoreLockVirtualMods</emphasis> 2194ea1d6981Smrg</entry> 2195ea1d6981Smrg </row> 2196ea1d6981Smrg <row> 2197ea1d6981Smrg <entry><emphasis> 2198ea1d6981SmrgXkbPerKeyRepeatMask</emphasis> 2199ea1d6981Smrg</entry> 2200ea1d6981Smrg <entry><emphasis> 2201ea1d6981SmrgperKeyRepeat</emphasis> 2202ea1d6981Smrg</entry> 2203ea1d6981Smrg </row> 2204ea1d6981Smrg <row> 2205ea1d6981Smrg <entry><emphasis> 2206ea1d6981SmrgXkbControlsEnabledMask</emphasis> 2207ea1d6981Smrg</entry> 2208ea1d6981Smrg <entry><emphasis> 2209ea1d6981SmrgaffectEnabledControls</emphasis> 2210ea1d6981Smrg, <emphasis> 2211ea1d6981SmrgenabledControls</emphasis> 2212ea1d6981Smrg</entry> 2213ea1d6981Smrg </row> 2214ea1d6981Smrg</tbody> 2215ea1d6981Smrg</tgroup> 2216ea1d6981Smrg</informaltable> 2217ea1d6981Smrg 2218ea1d6981Smrg<para> 2219ea1d6981SmrgIf any other bits are set in <emphasis> 2220ea1d6981SmrgchangeControls</emphasis> 2221ea1d6981Smrg, a <emphasis> 2222ea1d6981SmrgValue</emphasis> 2223ea1d6981Smrg error results. If any of the bits listed above are not set in <emphasis> 2224ea1d6981SmrgchangeControls</emphasis> 2225ea1d6981Smrg, the corresponding fields must have the value <emphasis> 2226ea1d6981Smrg0</emphasis> 2227ea1d6981Smrg, or a <emphasis> 2228ea1d6981SmrgMatch</emphasis> 2229ea1d6981Smrg error results. 2230ea1d6981Smrg</para> 2231ea1d6981Smrg 2232ea1d6981Smrg 2233ea1d6981Smrg<para> 2234ea1d6981SmrgIf applied, <emphasis> 2235ea1d6981SmrgrepeatDelay</emphasis> 2236ea1d6981Smrg and <emphasis> 2237ea1d6981SmrgrepeatInterval</emphasis> 2238ea1d6981Smrg change the autorepeat characteristics of the keyboard, as described in 2239ea1d6981Smrg<link linkend='The_RepeatKeys_Control'>The RepeatKeys Control</link>. If 2240ea1d6981Smrgspecified, <emphasis> 2241ea1d6981SmrgrepeatDelay</emphasis> 2242ea1d6981Smrg and <emphasis> 2243ea1d6981SmrgrepeatInterval</emphasis> 2244ea1d6981Smrg must both be non-zero or a <emphasis> 2245ea1d6981SmrgValue</emphasis> 2246ea1d6981Smrg error results. 2247ea1d6981Smrg</para> 2248ea1d6981Smrg 2249ea1d6981Smrg 2250ea1d6981Smrg<para> 2251ea1d6981SmrgIf applied, the <emphasis> 2252ea1d6981SmrgslowKeysDelay</emphasis> 2253ea1d6981Smrg field specifies a new delay for the <emphasis> 2254ea1d6981SmrgSlowKeys</emphasis> 2255ea1d6981Smrg control, as defined in <link linkend='The_SlowKeys_Control'>The 2256ea1d6981SmrgSlowKeys Control</link>. If specified, <emphasis> 2257ea1d6981SmrgslowKeysDelay</emphasis> 2258ea1d6981Smrg must be non-zero, or a <emphasis> 2259ea1d6981SmrgValue</emphasis> 2260ea1d6981Smrg error results. 2261ea1d6981Smrg</para> 2262ea1d6981Smrg 2263ea1d6981Smrg 2264ea1d6981Smrg<para> 2265ea1d6981SmrgIf applied, the <emphasis> 2266ea1d6981SmrgdebounceDelay</emphasis> 2267ea1d6981Smrg field specifies a new delay for the <emphasis> 2268ea1d6981SmrgBounceKeys</emphasis> 2269ea1d6981Smrg control, as described in <link linkend='The_BounceKeys_Control'>The 2270ea1d6981SmrgBounceKeys Control</link>. If present, the <emphasis> 2271ea1d6981SmrgdebounceDelay</emphasis> 2272ea1d6981Smrg must be non-zero or a <emphasis> 2273ea1d6981SmrgValue</emphasis> 2274ea1d6981Smrg error results. 2275ea1d6981Smrg</para> 2276ea1d6981Smrg 2277ea1d6981Smrg 2278ea1d6981Smrg<para> 2279ea1d6981SmrgIf applied, the <emphasis> 2280ea1d6981SmrgmouseKeysDfltBtn</emphasis> 2281ea1d6981Smrg field specifies the core pointer button for which events are generated 2282ea1d6981Smrgwhenever a <emphasis> 2283ea1d6981SmrgSA_PtrBtn</emphasis> 2284ea1d6981Smrg or <emphasis> 2285ea1d6981SmrgSA_LockPtrBtn</emphasis> 2286ea1d6981Smrg key action is activated. If present, <emphasis> 2287ea1d6981SmrgmouseKeysDfltBtn</emphasis> 2288ea1d6981Smrg must specify a legal button for the core pointer device, or a <emphasis> 2289ea1d6981SmrgValue</emphasis> 2290ea1d6981Smrg error results. <link linkend='Key_Actions'>Key 2291ea1d6981SmrgActions</link> describes the <emphasis> 2292ea1d6981SmrgSA_PtrBtn</emphasis> 2293ea1d6981Smrg and <emphasis> 2294ea1d6981SmrgSA_LockPtrBtn</emphasis> 2295ea1d6981Smrg actions in more detail. 2296ea1d6981Smrg</para> 2297ea1d6981Smrg 2298ea1d6981Smrg 2299ea1d6981Smrg<para> 2300ea1d6981SmrgIf applied, the <emphasis> 2301ea1d6981SmrgmouseKeysDelay</emphasis> 2302ea1d6981Smrg, <emphasis> 2303ea1d6981SmrgmouseKeysInterval</emphasis> 2304ea1d6981Smrg, <emphasis> 2305ea1d6981SmrgmouseKeysTimeToMax</emphasis> 2306ea1d6981Smrg, <emphasis> 2307ea1d6981SmrgmouseKeysMaxSpeed</emphasis> 2308ea1d6981Smrg and <emphasis> 2309ea1d6981SmrgmouseKeysCurve</emphasis> 2310ea1d6981Smrg fields change the rate at which the pointer moves when a key which generates a 2311ea1d6981Smrg<emphasis> 2312ea1d6981SmrgSA_MovePtr</emphasis> 2313ea1d6981Smrg action is held down. <link linkend='The_MouseKeysAccel_Control'>The 2314ea1d6981SmrgMouseKeysAccel Control</link> describes these <emphasis> 2315ea1d6981SmrgMouseKeysAccel</emphasis> 2316ea1d6981Smrg parameters in more detail. If defined, the <emphasis> 2317ea1d6981SmrgmouseKeysDelay</emphasis> 2318ea1d6981Smrg, <emphasis> 2319ea1d6981SmrgmouseKeysInterval</emphasis> 2320ea1d6981Smrg, <emphasis> 2321ea1d6981SmrgmouseKeysTimeToMax</emphasis> 2322ea1d6981Smrg and <emphasis> 2323ea1d6981SmrgmouseKeysMaxSpeed</emphasis> 2324ea1d6981Smrg values must all be greater than zero, or a <emphasis> 2325ea1d6981SmrgValue</emphasis> 2326ea1d6981Smrg error results. The <emphasis> 2327ea1d6981SmrgmouseKeysCurve</emphasis> 2328ea1d6981Smrg value must be greater than <emphasis> 2329ea1d6981Smrg-1000</emphasis> 2330ea1d6981Smrg or a <emphasis> 2331ea1d6981SmrgValue</emphasis> 2332ea1d6981Smrg error results. 2333ea1d6981Smrg</para> 2334ea1d6981Smrg 2335ea1d6981Smrg 2336ea1d6981Smrg<para> 2337ea1d6981SmrgIf applied, the <emphasis> 2338ea1d6981SmrgaccessXOptions</emphasis> 2339ea1d6981Smrg field sets the AccessX options, which are described in detail in 2340ea1d6981Smrg<link linkend='The_AccessXKeys_Control'>The AccessXKeys Control</link>. If 2341ea1d6981Smrgeither one of <emphasis> 2342ea1d6981SmrgXkbStickyKeysMask</emphasis> 2343ea1d6981Smrg and <emphasis> 2344ea1d6981SmrgXkbAccessXFeedbackMask</emphasis> 2345ea1d6981Smrg are set in <emphasis> 2346ea1d6981SmrgchangeControls</emphasis> 2347ea1d6981Smrg and <emphasis> 2348ea1d6981SmrgXkbAccessXKeysMask</emphasis> 2349ea1d6981Smrg is not, only a subset of the AccessX options are changed, as described in the 2350ea1d6981Smrgtable above; if both are set or if the <emphasis> 2351ea1d6981SmrgAccessXKeys</emphasis> 2352ea1d6981Smrg bit is set in <emphasis> 2353ea1d6981SmrgchangeControls</emphasis> 2354ea1d6981Smrg, all of the AccessX options are updated. Any bit in <emphasis> 2355ea1d6981SmrgaccessXOptions</emphasis> 2356ea1d6981Smrg whose interpretation is undefined must be zero, or a <emphasis> 2357ea1d6981SmrgValue</emphasis> 2358ea1d6981Smrg error results. 2359ea1d6981Smrg</para> 2360ea1d6981Smrg 2361ea1d6981Smrg 2362ea1d6981Smrg<para> 2363ea1d6981SmrgIf applied, the <emphasis> 2364ea1d6981SmrgaccessXTimeout</emphasis> 2365ea1d6981Smrg, <emphasis> 2366ea1d6981SmrgaccessXTimeoutMask</emphasis> 2367ea1d6981Smrg, <emphasis> 2368ea1d6981SmrgaccessXTimeoutValues</emphasis> 2369ea1d6981Smrg, <emphasis> 2370ea1d6981SmrgaccessXTimeoutOptionsMask</emphasis> 2371ea1d6981Smrg and <emphasis> 2372ea1d6981SmrgaccessXTimeoutOptionsValues</emphasis> 2373ea1d6981Smrg fields change the behavior of the AccessX Timeout control, as described in 2374ea1d6981Smrg<link linkend='The_AccessXTimeout_Control'>The AccessXTimeout 2375ea1d6981SmrgControl</link>. The <emphasis> 2376ea1d6981SmrgaccessXTimeout</emphasis> 2377ea1d6981Smrg must be greater than zero, or a <emphasis> 2378ea1d6981SmrgValue</emphasis> 2379ea1d6981Smrg error results. The <emphasis> 2380ea1d6981SmrgaccessXTimeoutMask</emphasis> 2381ea1d6981Smrg or <emphasis> 2382ea1d6981SmrgaccessXTimeoutValues</emphasis> 2383ea1d6981Smrg fields must specify only legal boolean controls, or a <emphasis> 2384ea1d6981SmrgValue</emphasis> 2385ea1d6981Smrg error results. The <emphasis> 2386ea1d6981SmrgaccessXTimeoutOptionsMask</emphasis> 2387ea1d6981Smrg and <emphasis> 2388ea1d6981SmrgaccessXTimeoutOptionsValues</emphasis> 2389ea1d6981Smrg fields must contain only legal AccessX options or a <emphasis> 2390ea1d6981SmrgValue</emphasis> 2391ea1d6981Smrg error results. If any bits are set in either values field but not in the 2392ea1d6981Smrgcorresponding mask, a <emphasis> 2393ea1d6981SmrgMatch</emphasis> 2394ea1d6981Smrg error results. 2395ea1d6981Smrg</para> 2396ea1d6981Smrg 2397ea1d6981Smrg 2398ea1d6981Smrg<para> 2399ea1d6981SmrgIf present, the <emphasis> 2400ea1d6981SmrggroupsWrap</emphasis> 2401ea1d6981Smrg field specifies the treatment of out-of-range keyboard groups, as described in 2402ea1d6981Smrg<link linkend='Key_Symbol_Map'>Key Symbol Map</link>. If the 2403ea1d6981Smrg<emphasis> 2404ea1d6981SmrggroupsWrap</emphasis> 2405ea1d6981Smrg field does not specify a legal treatment for out-of-range groups, a <emphasis> 2406ea1d6981SmrgValue</emphasis> 2407ea1d6981Smrg error results. 2408ea1d6981Smrg</para> 2409ea1d6981Smrg 2410ea1d6981Smrg 2411ea1d6981Smrg<para> 2412ea1d6981SmrgIf present, the <emphasis> 2413ea1d6981SmrgaffectInternalRealMods</emphasis> 2414ea1d6981Smrg field specifies the set of real modifiers to be changed in the internal 2415ea1d6981Smrgmodifier definition and the <emphasis> 2416ea1d6981SmrginternalRealMods</emphasis> 2417ea1d6981Smrg field specifies new values for those modifiers. The <emphasis> 2418ea1d6981SmrgaffectInternalVirtualMods</emphasis> 2419ea1d6981Smrg and <emphasis> 2420ea1d6981SmrginternalVirtualMods</emphasis> 2421ea1d6981Smrg fields update the virtual modifier component of the modifier definition that 2422ea1d6981Smrgdescribes the internal modifiers in the same way. If any bits are set in either 2423ea1d6981Smrgvalues field but not in the corresponding mask field, a <emphasis> 2424ea1d6981SmrgMatch</emphasis> 2425ea1d6981Smrg error results. 2426ea1d6981Smrg</para> 2427ea1d6981Smrg 2428ea1d6981Smrg 2429ea1d6981Smrg<para> 2430ea1d6981SmrgIf present, the <emphasis> 2431ea1d6981SmrgaffectIgnoreLockRealMods</emphasis> 2432ea1d6981Smrg field specifies the set of real modifiers to be changed in the ignore locks 2433ea1d6981Smrgmodifier definition and the <emphasis> 2434ea1d6981SmrgignoreLockRealMods</emphasis> 2435ea1d6981Smrg field specifies new values for those modifiers. The <emphasis> 2436ea1d6981SmrgaffectIgnoreLockVirtualMods</emphasis> 2437ea1d6981Smrg and <emphasis> 2438ea1d6981SmrgignoreLockVirtualMods</emphasis> 2439ea1d6981Smrg fields update the virtual modifier component of the ignore locks modifier 2440ea1d6981Smrgdefinition in the same way. If any bits are set in either values field but not 2441ea1d6981Smrgin the corresponding mask field, a <emphasis> 2442ea1d6981SmrgMatch</emphasis> 2443ea1d6981Smrg error results. 2444ea1d6981Smrg</para> 2445ea1d6981Smrg 2446ea1d6981Smrg 2447ea1d6981Smrg<para> 2448ea1d6981SmrgIf present, the <emphasis> 2449ea1d6981SmrgperKeyRepeat</emphasis> 2450ea1d6981Smrg array specifies the repeat behavior of the individual keyboard keys. The 2451ea1d6981Smrgcorresponding core protocol or input extension per-key autorepeat information 2452ea1d6981Smrgis updated to reflect any changes specified in <emphasis> 2453ea1d6981SmrgperKeyRepeat</emphasis> 2454ea1d6981Smrg. If the bits that correspond to any out-of-range keys are set in <emphasis> 2455ea1d6981SmrgperKeyRepeat</emphasis> 2456ea1d6981Smrg, a <emphasis> 2457ea1d6981SmrgValue</emphasis> 2458ea1d6981Smrg error results. 2459ea1d6981Smrg</para> 2460ea1d6981Smrg 2461ea1d6981Smrg 2462ea1d6981Smrg<para> 2463ea1d6981SmrgIf present, the <emphasis> 2464ea1d6981SmrgaffectEnabledControls</emphasis> 2465ea1d6981Smrg and <emphasis> 2466ea1d6981SmrgenabledControls</emphasis> 2467ea1d6981Smrg field enable and disable global boolean controls. Any controls set in both 2468ea1d6981Smrgfields are enabled; any controls that are set in <emphasis> 2469ea1d6981SmrgaffectEnabledControls</emphasis> 2470ea1d6981Smrg but not in <emphasis> 2471ea1d6981SmrgenabledControls</emphasis> 2472ea1d6981Smrg are disabled. Controls that are not set in either field are not affected. If 2473ea1d6981Smrgany controls are specified in <emphasis> 2474ea1d6981SmrgenabledControls</emphasis> 2475ea1d6981Smrg but not in <emphasis> 2476ea1d6981SmrgaffectEnabledControls</emphasis> 2477ea1d6981Smrg, a <emphasis> 2478ea1d6981SmrgMatch</emphasis> 2479ea1d6981Smrg error results. If either field contains anything except boolean controls, a 2480ea1d6981Smrg<emphasis> 2481ea1d6981SmrgValue</emphasis> 2482ea1d6981Smrg error results. 2483ea1d6981Smrg</para> 2484ea1d6981Smrg 2485ea1d6981Smrg 2486ea1d6981Smrg</sect2> 2487ea1d6981Smrg<sect2 id='Querying_and_Changing_the_Keyboard_Mapping'> 2488ea1d6981Smrg<title>Querying and Changing the Keyboard Mapping</title> 2489ea1d6981Smrg 2490ea1d6981Smrg 2491ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 2492ea1d6981Smrg<?dbfo keep-together="always" ?> 2493ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 2494ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 2495ea1d6981Smrg <thead> 2496ea1d6981Smrg <row> 2497ea1d6981Smrg <entry role='protoname'>XkbGetMap</entry> 2498ea1d6981Smrg </row> 2499ea1d6981Smrg </thead> 2500ea1d6981Smrg <tbody> 2501ea1d6981Smrg <row> 2502ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 2503ea1d6981Smrg </row> 2504ea1d6981Smrg <row> 2505ea1d6981Smrg <entry role='protoname'> 2506ea1d6981Smrgfull, partial: KB_MAPPARTMASK</entry> 2507ea1d6981Smrg </row> 2508ea1d6981Smrg <row> 2509ea1d6981Smrg <entry role='protoname'> 2510ea1d6981SmrgfirstType, nTypes: CARD8</entry> 2511ea1d6981Smrg </row> 2512ea1d6981Smrg <row> 2513ea1d6981Smrg <entry role='protoname'> 2514ea1d6981SmrgfirstKeySym, firstKeyAction: KEYCODE</entry> 2515ea1d6981Smrg </row> 2516ea1d6981Smrg <row> 2517ea1d6981Smrg <entry role='protoname'> 2518ea1d6981SmrgnKeySyms, nKeyActions: CARD8</entry> 2519ea1d6981Smrg </row> 2520ea1d6981Smrg <row> 2521ea1d6981Smrg <entry role='protoname'> 2522ea1d6981SmrgfirstKeyBehavior,firstKeyExplicit: KEYCODE</entry> 2523ea1d6981Smrg </row> 2524ea1d6981Smrg <row> 2525ea1d6981Smrg <entry role='protoname'> 2526ea1d6981SmrgnKeyBehaviors,nKeyExplicit: CARD8</entry> 2527ea1d6981Smrg </row> 2528ea1d6981Smrg <row> 2529ea1d6981Smrg <entry role='protoname'> 2530ea1d6981SmrgfirstModMapKey,firstVModMapKey: KEYCODE</entry> 2531ea1d6981Smrg </row> 2532ea1d6981Smrg <row> 2533ea1d6981Smrg <entry role='protoname'> 2534ea1d6981SmrgnModMapKeys, nVModMapKeys: CARD8</entry> 2535ea1d6981Smrg </row> 2536ea1d6981Smrg <row> 2537ea1d6981Smrg <entry role='protoname'> 2538ea1d6981SmrgvirtualMods: KB_VMODMASK 2539ea1d6981Smrg </entry> 2540ea1d6981Smrg </row> 2541ea1d6981Smrg <row> 2542ea1d6981Smrg <entry role='protoreply'> 2543ea1d6981SmrgdeviceID: CARD8 2544ea1d6981Smrg </entry> 2545ea1d6981Smrg </row> 2546ea1d6981Smrg <row> 2547ea1d6981Smrg <entry role='protoreply'> 2548ea1d6981SmrgminKeyCode, maxKeyCode: KEYCODE 2549ea1d6981Smrg </entry> 2550ea1d6981Smrg </row> 2551ea1d6981Smrg <row> 2552ea1d6981Smrg <entry role='protoreply'> 2553ea1d6981Smrgpresent: KB_MAPPARTMASK 2554ea1d6981Smrg </entry> 2555ea1d6981Smrg </row> 2556ea1d6981Smrg <row> 2557ea1d6981Smrg <entry role='protoreply'> 2558ea1d6981SmrgfirstType, nTypes, nTotalTypes: CARD8 2559ea1d6981Smrg </entry> 2560ea1d6981Smrg </row> 2561ea1d6981Smrg <row> 2562ea1d6981Smrg <entry role='protoreply'> 2563ea1d6981SmrgfirstKeySym, firstKeyAction: KEYCODE 2564ea1d6981Smrg </entry> 2565ea1d6981Smrg </row> 2566ea1d6981Smrg <row> 2567ea1d6981Smrg <entry role='protoreply'> 2568ea1d6981SmrgnKeySyms, nKeyActions: CARD8 2569ea1d6981Smrg </entry> 2570ea1d6981Smrg </row> 2571ea1d6981Smrg <row> 2572ea1d6981Smrg <entry role='protoreply'> 2573ea1d6981SmrgtotalSyms, totalActions: CARD16 2574ea1d6981Smrg </entry> 2575ea1d6981Smrg </row> 2576ea1d6981Smrg <row> 2577ea1d6981Smrg <entry role='protoreply'> 2578ea1d6981SmrgfirstKeyBehavior, firstKeyExplicit: KEYCODE 2579ea1d6981Smrg </entry> 2580ea1d6981Smrg </row> 2581ea1d6981Smrg <row> 2582ea1d6981Smrg <entry role='protoreply'> 2583ea1d6981SmrgnKeyBehaviors, nKeyExplicit: CARD8 2584ea1d6981Smrg </entry> 2585ea1d6981Smrg </row> 2586ea1d6981Smrg <row> 2587ea1d6981Smrg <entry role='protoreply'> 2588ea1d6981SmrgtotalKeyBehaviors, totalKeyExplicit: CARD8 2589ea1d6981Smrg </entry> 2590ea1d6981Smrg </row> 2591ea1d6981Smrg <row> 2592ea1d6981Smrg <entry role='protoreply'> 2593ea1d6981SmrgfirstModMapKey, firstVModMapKey: KEYCODE 2594ea1d6981Smrg </entry> 2595ea1d6981Smrg </row> 2596ea1d6981Smrg <row> 2597ea1d6981Smrg <entry role='protoreply'> 2598ea1d6981SmrgnModMapKeys, nVModMapKeys: CARD8 2599ea1d6981Smrg </entry> 2600ea1d6981Smrg </row> 2601ea1d6981Smrg <row> 2602ea1d6981Smrg <entry role='protoreply'> 2603ea1d6981SmrgtotalModMapKeys, totalVModMapKeys: CARD8 2604ea1d6981Smrg </entry> 2605ea1d6981Smrg </row> 2606ea1d6981Smrg <row> 2607ea1d6981Smrg <entry role='protoreply'> 2608ea1d6981SmrgvirtualMods: KB_VMODMASK 2609ea1d6981Smrg </entry> 2610ea1d6981Smrg </row> 2611ea1d6981Smrg <row> 2612ea1d6981Smrg <entry role='protoreply'> 2613ea1d6981SmrgtypesRtrn: LISTofKB_KEYTYPE 2614ea1d6981Smrg </entry> 2615ea1d6981Smrg </row> 2616ea1d6981Smrg <row> 2617ea1d6981Smrg <entry role='protoreply'> 2618ea1d6981SmrgsymsRtrn: LISTofKB_KEYSYMMAP 2619ea1d6981Smrg </entry> 2620ea1d6981Smrg </row> 2621ea1d6981Smrg <row> 2622ea1d6981Smrg <entry role='protoreply'> 2623ea1d6981SmrgactsRtrn: { count: LISTofCARD8, acts: LISTofKB_ACTION } 2624ea1d6981Smrg </entry> 2625ea1d6981Smrg </row> 2626ea1d6981Smrg <row> 2627ea1d6981Smrg <entry role='protoreply'> 2628ea1d6981SmrgbehaviorsRtrn: LISTofKB_SETBEHAVIOR 2629ea1d6981Smrg </entry> 2630ea1d6981Smrg </row> 2631ea1d6981Smrg <row> 2632ea1d6981Smrg <entry role='protoreply'> 2633ea1d6981SmrgvmodsRtrn: LISTofSETofKEYMASK 2634ea1d6981Smrg </entry> 2635ea1d6981Smrg </row> 2636ea1d6981Smrg <row> 2637ea1d6981Smrg <entry role='protoreply'> 2638ea1d6981SmrgexplicitRtrn: LISTofKB_SETEXPLICIT 2639ea1d6981Smrg </entry> 2640ea1d6981Smrg </row> 2641ea1d6981Smrg <row> 2642ea1d6981Smrg <entry role='protoreply'> 2643ea1d6981SmrgmodmapRtrn: LISTofKB_KEYMODMAP 2644ea1d6981Smrg </entry> 2645ea1d6981Smrg </row> 2646ea1d6981Smrg <row> 2647ea1d6981Smrg <entry role='protoreply'> 2648ea1d6981SmrgvmodMapRtrn: LISTofKB_KEYVMODMAP 2649ea1d6981Smrg </entry> 2650ea1d6981Smrg </row> 2651ea1d6981Smrg <row> 2652ea1d6981Smrg <entry role='protoerror'> 2653ea1d6981SmrgErrors: <emphasis> 2654ea1d6981SmrgKeyboard</emphasis> 2655ea1d6981Smrg, <emphasis> 2656ea1d6981SmrgValue</emphasis> 2657ea1d6981Smrg, <emphasis> 2658ea1d6981SmrgMatch</emphasis> 2659ea1d6981Smrg, <emphasis> 2660ea1d6981SmrgAlloc</emphasis> 2661ea1d6981Smrg</entry> 2662ea1d6981Smrg </row> 2663ea1d6981Smrg </tbody> 2664ea1d6981Smrg </tgroup> 2665ea1d6981Smrg</informaltable> 2666ea1d6981Smrg 2667ea1d6981Smrg<para> 2668ea1d6981SmrgThis request returns the indicated components of the server and client maps of 2669ea1d6981Smrgthe keyboard specified by <emphasis> 2670ea1d6981SmrgdeviceSpec</emphasis> 2671ea1d6981Smrg. The <emphasis> 2672ea1d6981Smrgfull</emphasis> 2673ea1d6981Smrg mask specifies the map components to be returned in full; the <emphasis> 2674ea1d6981Smrgpartial</emphasis> 2675ea1d6981Smrg mask specifies the components for which some subset of the legal elements are 2676ea1d6981Smrgto be returned. The server returns a <emphasis> 2677ea1d6981SmrgMatch</emphasis> 2678ea1d6981Smrg error if any component is specified in both <emphasis> 2679ea1d6981Smrgfull</emphasis> 2680ea1d6981Smrg and <emphasis> 2681ea1d6981Smrgpartial</emphasis> 2682ea1d6981Smrg, or a <emphasis> 2683ea1d6981SmrgValue</emphasis> 2684ea1d6981Smrg error if any undefined bits are set in either <emphasis> 2685ea1d6981Smrgfull</emphasis> 2686ea1d6981Smrg or <emphasis> 2687ea1d6981Smrgpartial</emphasis> 2688ea1d6981Smrg. 2689ea1d6981Smrg</para> 2690ea1d6981Smrg 2691ea1d6981Smrg 2692ea1d6981Smrg<para> 2693ea1d6981SmrgEach bit in the <emphasis> 2694ea1d6981Smrgpartial</emphasis> 2695ea1d6981Smrg mask controls the interpretation of one or more of the other request fields, 2696ea1d6981Smrgas follows: 2697ea1d6981Smrg</para> 2698ea1d6981Smrg 2699ea1d6981Smrg<informaltable frame='topbot'> 2700ea1d6981Smrg<?dbfo keep-together="always" ?> 2701ea1d6981Smrg<tgroup cols='3' align='left' colsep='0' rowsep='0'> 2702ea1d6981Smrg<colspec colname='c1' colwidth='1.5*'/> 2703ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 2704ea1d6981Smrg<colspec colname='c3' colwidth='1.5*'/> 2705ea1d6981Smrg<thead> 2706ea1d6981Smrg <row rowsep='1'> 2707ea1d6981Smrg <entry>Bit in the Partial Mask</entry> 2708ea1d6981Smrg <entry>Type</entry> 2709ea1d6981Smrg <entry>Corresponding Field(s)</entry> 2710ea1d6981Smrg </row> 2711ea1d6981Smrg</thead> 2712ea1d6981Smrg<tbody> 2713ea1d6981Smrg <row> 2714ea1d6981Smrg <entry><emphasis> 2715ea1d6981SmrgXkbKeyTypesMask</emphasis> 2716ea1d6981Smrg</entry> 2717ea1d6981Smrg <entry>key types</entry> 2718ea1d6981Smrg <entry><emphasis> 2719ea1d6981SmrgfirstType</emphasis> 2720ea1d6981Smrg, <emphasis> 2721ea1d6981SmrgnTypes</emphasis> 2722ea1d6981Smrg</entry> 2723ea1d6981Smrg </row> 2724ea1d6981Smrg <row> 2725ea1d6981Smrg <entry><emphasis> 2726ea1d6981SmrgXkbKeySymsMask</emphasis> 2727ea1d6981Smrg</entry> 2728ea1d6981Smrg <entry>keycodes</entry> 2729ea1d6981Smrg <entry><emphasis> 2730ea1d6981SmrgfirstKeySym</emphasis> 2731ea1d6981Smrg, <emphasis> 2732ea1d6981SmrgnKeySyms</emphasis> 2733ea1d6981Smrg</entry> 2734ea1d6981Smrg </row> 2735ea1d6981Smrg <row> 2736ea1d6981Smrg <entry><emphasis> 2737ea1d6981SmrgXkbKeyActionsMask</emphasis> 2738ea1d6981Smrg</entry> 2739ea1d6981Smrg <entry>keycodes</entry> 2740ea1d6981Smrg <entry><emphasis> 2741ea1d6981SmrgfirstKeyAction</emphasis> 2742ea1d6981Smrg, <emphasis> 2743ea1d6981SmrgnKeyActions</emphasis> 2744ea1d6981Smrg</entry> 2745ea1d6981Smrg </row> 2746ea1d6981Smrg <row> 2747ea1d6981Smrg <entry><emphasis> 2748ea1d6981SmrgXkbKeyBehaviorsMask</emphasis> 2749ea1d6981Smrg</entry> 2750ea1d6981Smrg <entry>keycodes</entry> 2751ea1d6981Smrg <entry><emphasis> 2752ea1d6981SmrgfirstKeyBehavior</emphasis> 2753ea1d6981Smrg, <emphasis> 2754ea1d6981SmrgnKeyBehaviors</emphasis> 2755ea1d6981Smrg</entry> 2756ea1d6981Smrg </row> 2757ea1d6981Smrg <row> 2758ea1d6981Smrg <entry><emphasis> 2759ea1d6981SmrgXkbExplicitComponentsMask</emphasis> 2760ea1d6981Smrg</entry> 2761ea1d6981Smrg <entry>keycodes</entry> 2762ea1d6981Smrg <entry><emphasis> 2763ea1d6981SmrgfirstKeyExplicit</emphasis> 2764ea1d6981Smrg, <emphasis> 2765ea1d6981SmrgnKeyExplicit</emphasis> 2766ea1d6981Smrg</entry> 2767ea1d6981Smrg </row> 2768ea1d6981Smrg <row> 2769ea1d6981Smrg <entry><emphasis> 2770ea1d6981SmrgXkbModifierMapMask</emphasis> 2771ea1d6981Smrg</entry> 2772ea1d6981Smrg <entry>keycodes</entry> 2773ea1d6981Smrg <entry><emphasis> 2774ea1d6981SmrgfirstModMapKey</emphasis> 2775ea1d6981Smrg, <emphasis> 2776ea1d6981SmrgnModMapKeys</emphasis> 2777ea1d6981Smrg</entry> 2778ea1d6981Smrg </row> 2779ea1d6981Smrg <row> 2780ea1d6981Smrg <entry><emphasis> 2781ea1d6981SmrgXkbVirtualModMapMask</emphasis> 2782ea1d6981Smrg</entry> 2783ea1d6981Smrg <entry>keycodes</entry> 2784ea1d6981Smrg <entry><emphasis> 2785ea1d6981SmrgfirstVModMapKey</emphasis> 2786ea1d6981Smrg, <emphasis> 2787ea1d6981SmrgnVModMapKeys</emphasis> 2788ea1d6981Smrg</entry> 2789ea1d6981Smrg </row> 2790ea1d6981Smrg <row> 2791ea1d6981Smrg <entry><emphasis> 2792ea1d6981SmrgXkbVirtualModsMask</emphasis> 2793ea1d6981Smrg</entry> 2794ea1d6981Smrg <entry>virtual modifiers</entry> 2795ea1d6981Smrg <entry><emphasis> 2796ea1d6981SmrgvirtualMods</emphasis> 2797ea1d6981Smrg</entry> 2798ea1d6981Smrg </row> 2799ea1d6981Smrg</tbody> 2800ea1d6981Smrg</tgroup> 2801ea1d6981Smrg</informaltable> 2802ea1d6981Smrg 2803ea1d6981Smrg<para> 2804ea1d6981SmrgIf any of these keyboard map components are specified in <emphasis> 2805ea1d6981Smrgpartial</emphasis> 2806ea1d6981Smrg, the corresponding values must specify a valid subset of the requested 2807ea1d6981Smrgcomponents or this request reports a <emphasis> 2808ea1d6981SmrgValue</emphasis> 2809ea1d6981Smrg error. If a keyboard map component is not specified in <emphasis> 2810ea1d6981Smrgpartial</emphasis> 2811ea1d6981Smrg, the corresponding fields must contain zeroes, or a <emphasis> 2812ea1d6981SmrgMatch</emphasis> 2813ea1d6981Smrg error results. 2814ea1d6981Smrg</para> 2815ea1d6981Smrg 2816ea1d6981Smrg 2817ea1d6981Smrg<para> 2818ea1d6981SmrgIf any error is generated, the request aborts and does not report any values. 2819ea1d6981Smrg</para> 2820ea1d6981Smrg 2821ea1d6981Smrg 2822ea1d6981Smrg<para> 2823ea1d6981SmrgOn successful return, the <emphasis> 2824ea1d6981SmrgdeviceID</emphasis> 2825ea1d6981Smrg field reports the X input extension device ID of the keyboard for which 2826ea1d6981Smrginformation is being returned, or <emphasis> 2827ea1d6981Smrg0</emphasis> 2828ea1d6981Smrg if the server does not support the X input extension. The <emphasis> 2829ea1d6981SmrgminKeyCode</emphasis> 2830ea1d6981Smrg and <emphasis> 2831ea1d6981SmrgmaxKeyCode</emphasis> 2832ea1d6981Smrg return values report the minimum and maximum keycodes that are legal for the 2833ea1d6981Smrgkeyboard in question. 2834ea1d6981Smrg</para> 2835ea1d6981Smrg 2836ea1d6981Smrg 2837ea1d6981Smrg<para> 2838ea1d6981SmrgThe <emphasis> 2839ea1d6981Smrgpresent</emphasis> 2840ea1d6981Smrg return value lists all of the keyboard map components contained in the reply. 2841ea1d6981SmrgThe bits in <emphasis> 2842ea1d6981Smrgpresent</emphasis> 2843ea1d6981Smrg affect the interpretation of the other return values as follows: 2844ea1d6981Smrg</para> 2845ea1d6981Smrg 2846ea1d6981Smrg 2847ea1d6981Smrg<para> 2848ea1d6981SmrgIf <emphasis> 2849ea1d6981SmrgXkbKeyTypesMask</emphasis> 2850ea1d6981Smrg is set in <emphasis> 2851ea1d6981Smrgpresent</emphasis> 2852ea1d6981Smrg: 2853ea1d6981Smrg</para> 2854ea1d6981Smrg 2855ea1d6981Smrg<itemizedlist> 2856ea1d6981Smrg<listitem> 2857ea1d6981Smrg <para><emphasis> 2858ea1d6981SmrgfirstType</emphasis> 2859ea1d6981Smrg and <emphasis> 2860ea1d6981SmrgnTypes</emphasis> 2861ea1d6981Smrg specify the types reported in the reply. 2862ea1d6981Smrg </para> 2863ea1d6981Smrg</listitem> 2864ea1d6981Smrg<listitem> 2865ea1d6981Smrg <para><emphasis> 2866ea1d6981SmrgnTotalTypes</emphasis> 2867ea1d6981Smrg reports the total number of types defined for the keyboard 2868ea1d6981Smrg </para> 2869ea1d6981Smrg</listitem> 2870ea1d6981Smrg<listitem> 2871ea1d6981Smrg <para><emphasis> 2872ea1d6981SmrgtypesRtrn</emphasis> 2873ea1d6981Smrg has <emphasis> 2874ea1d6981SmrgnTypes</emphasis> 2875ea1d6981Smrg elements of type KB_KEYTYPE which describe consecutive key types starting from 2876ea1d6981Smrg<emphasis> 2877ea1d6981SmrgfirstType</emphasis> 2878ea1d6981Smrg. 2879ea1d6981Smrg </para> 2880ea1d6981Smrg</listitem> 2881ea1d6981Smrg</itemizedlist> 2882ea1d6981Smrg 2883ea1d6981Smrg<para> 2884ea1d6981SmrgIf <emphasis> 2885ea1d6981SmrgXkbKeySymsMask</emphasis> 2886ea1d6981Smrg is set in <emphasis> 2887ea1d6981Smrgpresent</emphasis> 2888ea1d6981Smrg: 2889ea1d6981Smrg</para> 2890ea1d6981Smrg 2891ea1d6981Smrg<itemizedlist> 2892ea1d6981Smrg<listitem> 2893ea1d6981Smrg <para><emphasis> 2894ea1d6981SmrgfirstKeySym</emphasis> 2895ea1d6981Smrg and <emphasis> 2896ea1d6981SmrgnKeySyms</emphasis> 2897ea1d6981Smrg specify the subset of the keyboard keys for which symbols will be reported. 2898ea1d6981Smrg </para> 2899ea1d6981Smrg</listitem> 2900ea1d6981Smrg<listitem> 2901ea1d6981Smrg <para><emphasis> 2902ea1d6981SmrgtotalSyms</emphasis> 2903ea1d6981Smrg reports the total number of keysyms bound to the keys returned in this reply. 2904ea1d6981Smrg </para> 2905ea1d6981Smrg</listitem> 2906ea1d6981Smrg<listitem> 2907ea1d6981Smrg <para><emphasis> 2908ea1d6981SmrgsymsRtrn</emphasis> 2909ea1d6981Smrg has <emphasis> 2910ea1d6981SmrgnKeySyms</emphasis> 2911ea1d6981Smrg elements of type KB_KEYSYMMAP, which describe the symbols bound to consecutive 2912ea1d6981Smrgkeys starting from <emphasis> 2913ea1d6981SmrgfirstKeySym</emphasis> 2914ea1d6981Smrg. 2915ea1d6981Smrg </para> 2916ea1d6981Smrg</listitem> 2917ea1d6981Smrg</itemizedlist> 2918ea1d6981Smrg 2919ea1d6981Smrg<para> 2920ea1d6981SmrgIf <emphasis> 2921ea1d6981SmrgXkbKeyActionsMask</emphasis> 2922ea1d6981Smrg is set in <emphasis> 2923ea1d6981Smrgpresent</emphasis> 2924ea1d6981Smrg: 2925ea1d6981Smrg</para> 2926ea1d6981Smrg 2927ea1d6981Smrg<itemizedlist> 2928ea1d6981Smrg<listitem> 2929ea1d6981Smrg <para><emphasis> 2930ea1d6981SmrgfirstKeyAction</emphasis> 2931ea1d6981Smrg and <emphasis> 2932ea1d6981SmrgnKeyActions</emphasis> 2933ea1d6981Smrg specify the subset of the keys for which actions are reported. 2934ea1d6981Smrg </para> 2935ea1d6981Smrg</listitem> 2936ea1d6981Smrg<listitem> 2937ea1d6981Smrg <para><emphasis> 2938ea1d6981SmrgtotalActions</emphasis> 2939ea1d6981Smrg reports the total number of actions bound to the returned keys. 2940ea1d6981Smrg </para> 2941ea1d6981Smrg</listitem> 2942ea1d6981Smrg<listitem> 2943ea1d6981Smrg <para>The <emphasis> 2944ea1d6981Smrgcount </emphasis> 2945ea1d6981Smrgfield of the <emphasis> 2946ea1d6981SmrgactsRtrn</emphasis> 2947ea1d6981Smrg return value has <emphasis> 2948ea1d6981SmrgnKeyActions</emphasis> 2949ea1d6981Smrg entries of type CARD8, which specify the number of actions bound to 2950ea1d6981Smrgconsecutive keys starting from <emphasis> 2951ea1d6981SmrgfirstKeyAction</emphasis> 2952ea1d6981Smrg. The <emphasis> 2953ea1d6981Smrgacts</emphasis> 2954ea1d6981Smrg field of <emphasis> 2955ea1d6981SmrgactsRtrn</emphasis> 2956ea1d6981Smrg has <emphasis> 2957ea1d6981SmrgtotalActions</emphasis> 2958ea1d6981Smrg elements of type KB_ACTION and specifies the actions bound to the keys. 2959ea1d6981Smrg </para> 2960ea1d6981Smrg</listitem> 2961ea1d6981Smrg</itemizedlist> 2962ea1d6981Smrg 2963ea1d6981Smrg<para> 2964ea1d6981SmrgIf <emphasis> 2965ea1d6981SmrgXkbKeyBehaviorsMask</emphasis> 2966ea1d6981Smrg is set in <emphasis> 2967ea1d6981Smrgpresent</emphasis> 2968ea1d6981Smrg: 2969ea1d6981Smrg</para> 2970ea1d6981Smrg 2971ea1d6981Smrg<itemizedlist> 2972ea1d6981Smrg<listitem> 2973ea1d6981Smrg <para>The <emphasis> 2974ea1d6981SmrgfirstKeyBehavior</emphasis> 2975ea1d6981Smrg and <emphasis> 2976ea1d6981SmrgnKeyBehaviors</emphasis> 2977ea1d6981Smrg return values report the range of keyboard keys for which behaviors will be 2978ea1d6981Smrgreported. 2979ea1d6981Smrg </para> 2980ea1d6981Smrg</listitem> 2981ea1d6981Smrg<listitem> 2982ea1d6981Smrg <para>The <emphasis> 2983ea1d6981SmrgtotalKeyBehaviors</emphasis> 2984ea1d6981Smrg return value reports the number of keys in the range to be reported that have 2985ea1d6981Smrgnon-default values. 2986ea1d6981Smrg </para> 2987ea1d6981Smrg</listitem> 2988ea1d6981Smrg<listitem> 2989ea1d6981Smrg <para>The <emphasis> 2990ea1d6981SmrgbehaviorsRtrn</emphasis> 2991ea1d6981Smrg value has <emphasis> 2992ea1d6981SmrgtotalKeyBehaviors</emphasis> 2993ea1d6981Smrg entries of type KB_BEHAVIOR. Each entry specifies a key in the range for which 2994ea1d6981Smrgbehaviors are being reported and the behavior associated with that key. Any 2995ea1d6981Smrgkeys in that range that do not have an entry in <emphasis> 2996ea1d6981SmrgbehaviorsRtrn</emphasis> 2997ea1d6981Smrg have the default behavior, <emphasis> 2998ea1d6981SmrgKB_Default</emphasis> 2999ea1d6981Smrg. 3000ea1d6981Smrg </para> 3001ea1d6981Smrg</listitem> 3002ea1d6981Smrg</itemizedlist> 3003ea1d6981Smrg 3004ea1d6981Smrg<para> 3005ea1d6981SmrgIf <emphasis> 3006ea1d6981SmrgXkbExplicitComponentsMask</emphasis> 3007ea1d6981Smrg is set in <emphasis> 3008ea1d6981Smrgpresent</emphasis> 3009ea1d6981Smrg: 3010ea1d6981Smrg</para> 3011ea1d6981Smrg 3012ea1d6981Smrg<itemizedlist> 3013ea1d6981Smrg<listitem> 3014ea1d6981Smrg <para>The <emphasis> 3015ea1d6981SmrgfirstKeyExplicit</emphasis> 3016ea1d6981Smrg and <emphasis> 3017ea1d6981SmrgnKeyExplicit</emphasis> 3018ea1d6981Smrg return values report the range of keyboard keys for which the set of explicit 3019ea1d6981Smrgcomponents is to be returned. 3020ea1d6981Smrg </para> 3021ea1d6981Smrg</listitem> 3022ea1d6981Smrg<listitem> 3023ea1d6981Smrg <para>The <emphasis> 3024ea1d6981SmrgtotalKeyExplicit</emphasis> 3025ea1d6981Smrg return value reports the number of keys in the range specified by <emphasis> 3026ea1d6981SmrgfirstKeyExplicit</emphasis> 3027ea1d6981Smrg and <emphasis> 3028ea1d6981SmrgnKeyExplicit</emphasis> 3029ea1d6981Smrg that have one or more explicit components. 3030ea1d6981Smrg </para> 3031ea1d6981Smrg</listitem> 3032ea1d6981Smrg<listitem> 3033ea1d6981Smrg <para>The <emphasis> 3034ea1d6981SmrgexplicitRtrn</emphasis> 3035ea1d6981Smrg return value has <emphasis> 3036ea1d6981SmrgtotalKeyExplicit</emphasis> 3037ea1d6981Smrg entries of type KB_KEYEXPLICIT. Each entry specifies the a key in the range 3038ea1d6981Smrgfor which explicit components are being reported and the explicit components 3039ea1d6981Smrgthat are bound to it. Any keys in that range that do not have an entry in 3040ea1d6981Smrg<emphasis> 3041ea1d6981SmrgexplicitRtrn</emphasis> 3042ea1d6981Smrg have no explicit components. 3043ea1d6981Smrg </para> 3044ea1d6981Smrg</listitem> 3045ea1d6981Smrg</itemizedlist> 3046ea1d6981Smrg 3047ea1d6981Smrg<para> 3048ea1d6981SmrgIf <emphasis> 3049ea1d6981SmrgXkbModifierMapMask</emphasis> 3050ea1d6981Smrg is set in <emphasis> 3051ea1d6981Smrgpresent</emphasis> 3052ea1d6981Smrg: 3053ea1d6981Smrg</para> 3054ea1d6981Smrg 3055ea1d6981Smrg<itemizedlist> 3056ea1d6981Smrg<listitem> 3057ea1d6981Smrg <para>The <emphasis> 3058ea1d6981SmrgfirstModMapKey</emphasis> 3059ea1d6981Smrg and <emphasis> 3060ea1d6981SmrgnModMapKeys</emphasis> 3061ea1d6981Smrg return values report the range of keyboard keys for which the modifier map is 3062ea1d6981Smrgto be reported. 3063ea1d6981Smrg </para> 3064ea1d6981Smrg</listitem> 3065ea1d6981Smrg<listitem> 3066ea1d6981Smrg <para>The <emphasis> 3067ea1d6981SmrgtotalModMapKeys</emphasis> 3068ea1d6981Smrg return value reports the number of keys in the range specified by <emphasis> 3069ea1d6981SmrgfirstModMapKey</emphasis> 3070ea1d6981Smrg and <emphasis> 3071ea1d6981SmrgnModMapKeys</emphasis> 3072ea1d6981Smrg that are bound with to one or more modifiers. 3073ea1d6981Smrg </para> 3074ea1d6981Smrg</listitem> 3075ea1d6981Smrg<listitem> 3076ea1d6981Smrg <para>The <emphasis> 3077ea1d6981SmrgmodmapRtrn</emphasis> 3078ea1d6981Smrg return value has <emphasis> 3079ea1d6981SmrgtotalModMapKeys</emphasis> 3080ea1d6981Smrg entries of type KB_KEYMODMAP. Each entry specifies the a key in the range for 3081ea1d6981Smrgwhich the modifier map is being reported and the set of modifiers that are 3082ea1d6981Smrgbound to that key. Any keys in that range that do not have an entry in 3083ea1d6981Smrg<emphasis> 3084ea1d6981SmrgmodmapRtrn</emphasis> 3085ea1d6981Smrg are not associated with any modifiers by the modifier mapping. 3086ea1d6981Smrg </para> 3087ea1d6981Smrg</listitem> 3088ea1d6981Smrg</itemizedlist> 3089ea1d6981Smrg 3090ea1d6981Smrg<para> 3091ea1d6981SmrgIf <emphasis> 3092ea1d6981SmrgXkbVirtualModMapMask</emphasis> 3093ea1d6981Smrg is set in <emphasis> 3094ea1d6981Smrgpresent</emphasis> 3095ea1d6981Smrg: 3096ea1d6981Smrg</para> 3097ea1d6981Smrg 3098ea1d6981Smrg<itemizedlist> 3099ea1d6981Smrg<listitem> 3100ea1d6981Smrg <para>The <emphasis> 3101ea1d6981SmrgfirstVModMapKey</emphasis> 3102ea1d6981Smrg and <emphasis> 3103ea1d6981SmrgnVModMapKeys</emphasis> 3104ea1d6981Smrg return values report the range of keyboard keys for which the virtual modifier 3105ea1d6981Smrgmap is to be reported. 3106ea1d6981Smrg </para> 3107ea1d6981Smrg</listitem> 3108ea1d6981Smrg<listitem> 3109ea1d6981Smrg <para>The <emphasis> 3110ea1d6981SmrgtotalVModMapKeys</emphasis> 3111ea1d6981Smrg return value reports the number of keys in the range specified by <emphasis> 3112ea1d6981SmrgfirstVModMapKey</emphasis> 3113ea1d6981Smrg and <emphasis> 3114ea1d6981SmrgnVModMapKeys</emphasis> 3115ea1d6981Smrg that are bound with to or more virtual modifiers. 3116ea1d6981Smrg </para> 3117ea1d6981Smrg</listitem> 3118ea1d6981Smrg<listitem> 3119ea1d6981Smrg <para>The <emphasis> 3120ea1d6981SmrgvmodmapRtrn</emphasis> 3121ea1d6981Smrg return value has <emphasis> 3122ea1d6981SmrgtotalVModMapKeys</emphasis> 3123ea1d6981Smrg entries of type KB_KEYVMODMAP. Each entry specifies the a key in the range for 3124ea1d6981Smrgwhich the virtual modifier map is being reported and the set of virtual 3125ea1d6981Smrgmodifiers that are bound to that key. Any keys in that range that do not have 3126ea1d6981Smrgan entry in <emphasis> 3127ea1d6981SmrgvmodmapRtrn</emphasis> 3128ea1d6981Smrg are not associated with any virtual modifiers, 3129ea1d6981Smrg </para> 3130ea1d6981Smrg</listitem> 3131ea1d6981Smrg</itemizedlist> 3132ea1d6981Smrg 3133ea1d6981Smrg<para> 3134ea1d6981SmrgIf <emphasis> 3135ea1d6981SmrgXkbVirtualModsMask</emphasis> 3136ea1d6981Smrg is set in <emphasis> 3137ea1d6981Smrgpresent</emphasis> 3138ea1d6981Smrg: 3139ea1d6981Smrg</para> 3140ea1d6981Smrg 3141ea1d6981Smrg<itemizedlist> 3142ea1d6981Smrg<listitem> 3143ea1d6981Smrg <para>The <emphasis> 3144ea1d6981SmrgvirtualMods</emphasis> 3145ea1d6981Smrg return value is a mask with one bit per virtual modifier which specifies the 3146ea1d6981Smrgvirtual modifiers for which a set of corresponding real modifiers is to be 3147ea1d6981Smrgreturned. 3148ea1d6981Smrg </para> 3149ea1d6981Smrg</listitem> 3150ea1d6981Smrg<listitem> 3151ea1d6981Smrg <para>The <emphasis> 3152ea1d6981SmrgvmodsRtrn</emphasis> 3153ea1d6981Smrg return value is a list with one entry of type KEYBUTMASK for each virtual 3154ea1d6981Smrgmodifier that is specified in <emphasis> 3155ea1d6981SmrgvirtualMods</emphasis> 3156ea1d6981Smrg. The entries in <emphasis> 3157ea1d6981SmrgvmodsRtrn</emphasis> 3158ea1d6981Smrg contain the real modifier bindings for the specified virtual modifiers, 3159ea1d6981Smrgbeginning with the lowest-numbered virtual modifier that is present in 3160ea1d6981Smrg<emphasis> 3161ea1d6981SmrgvirtualMods</emphasis> 3162ea1d6981Smrg and proceeding to the highest. 3163ea1d6981Smrg </para> 3164ea1d6981Smrg</listitem> 3165ea1d6981Smrg</itemizedlist> 3166ea1d6981Smrg 3167ea1d6981Smrg<para> 3168ea1d6981SmrgIf any of these bits are not set in <emphasis> 3169ea1d6981Smrgpresent</emphasis> 3170ea1d6981Smrg, the corresponding numeric fields all have the value zero, and the 3171ea1d6981Smrgcorresponding lists are all of length zero. 3172ea1d6981Smrg</para> 3173ea1d6981Smrg 3174ea1d6981Smrg 3175ea1d6981Smrg 3176ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 3177ea1d6981Smrg<?dbfo keep-together="always" ?> 3178ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 3179ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 3180ea1d6981Smrg <thead> 3181ea1d6981Smrg <row> 3182ea1d6981Smrg <entry role='protoname'>XkbSetMap</entry> 3183ea1d6981Smrg </row> 3184ea1d6981Smrg </thead> 3185ea1d6981Smrg <tbody> 3186ea1d6981Smrg <row> 3187ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 3188ea1d6981Smrg </row> 3189ea1d6981Smrg <row> 3190ea1d6981Smrg <entry role='protoname'> 3191ea1d6981Smrgflags: { <emphasis> 3192ea1d6981SmrgSetMapResizeTypes, SetMapRecomputeActions </emphasis> 3193ea1d6981Smrg}</entry> 3194ea1d6981Smrg </row> 3195ea1d6981Smrg <row> 3196ea1d6981Smrg <entry role='protoname'> 3197ea1d6981Smrgpresent: KB_MAPPARTMASK</entry> 3198ea1d6981Smrg </row> 3199ea1d6981Smrg <row> 3200ea1d6981Smrg <entry role='protoname'> 3201ea1d6981SmrgminKeyCode, maxKeyCode: KEYCODE</entry> 3202ea1d6981Smrg </row> 3203ea1d6981Smrg <row> 3204ea1d6981Smrg <entry role='protoname'> 3205ea1d6981SmrgfirstType, nTypes: CARD8</entry> 3206ea1d6981Smrg </row> 3207ea1d6981Smrg <row> 3208ea1d6981Smrg <entry role='protoname'> 3209ea1d6981SmrgfirstKeySym, firstKeyAction: KEYCODE</entry> 3210ea1d6981Smrg </row> 3211ea1d6981Smrg <row> 3212ea1d6981Smrg <entry role='protoname'> 3213ea1d6981SmrgnKeySyms, nKeyActions: CARD8</entry> 3214ea1d6981Smrg </row> 3215ea1d6981Smrg <row> 3216ea1d6981Smrg <entry role='protoname'> 3217ea1d6981SmrgtotalSyms, totalActions: CARD16</entry> 3218ea1d6981Smrg </row> 3219ea1d6981Smrg <row> 3220ea1d6981Smrg <entry role='protoname'> 3221ea1d6981SmrgfirstKeyBehavior, firstKeyExplicit: KEYCODE</entry> 3222ea1d6981Smrg </row> 3223ea1d6981Smrg <row> 3224ea1d6981Smrg <entry role='protoname'> 3225ea1d6981SmrgnKeyBehaviors, nKeyExplicit: CARD8</entry> 3226ea1d6981Smrg </row> 3227ea1d6981Smrg <row> 3228ea1d6981Smrg <entry role='protoname'> 3229ea1d6981SmrgtotalKeyBehaviors, totalKeyExplicit: CARD8</entry> 3230ea1d6981Smrg </row> 3231ea1d6981Smrg <row> 3232ea1d6981Smrg <entry role='protoname'> 3233ea1d6981SmrgfirstModMapKey, firstVModMapKey: KEYCODE</entry> 3234ea1d6981Smrg </row> 3235ea1d6981Smrg <row> 3236ea1d6981Smrg <entry role='protoname'> 3237ea1d6981SmrgnModMapKeys, nVModMapKeys: CARD8</entry> 3238ea1d6981Smrg </row> 3239ea1d6981Smrg <row> 3240ea1d6981Smrg <entry role='protoname'> 3241ea1d6981SmrgtotalModMapKeys, totalVModMapKeys: CARD8</entry> 3242ea1d6981Smrg </row> 3243ea1d6981Smrg <row> 3244ea1d6981Smrg <entry role='protoname'> 3245ea1d6981SmrgvirtualMods: VMODMASK</entry> 3246ea1d6981Smrg </row> 3247ea1d6981Smrg <row> 3248ea1d6981Smrg <entry role='protoname'> 3249ea1d6981Smrgtypes: LISTofKB_KEYTYPE</entry> 3250ea1d6981Smrg </row> 3251ea1d6981Smrg <row> 3252ea1d6981Smrg <entry role='protoname'> 3253ea1d6981Smrgsyms: LISTofKB_KEYSYMMAP</entry> 3254ea1d6981Smrg </row> 3255ea1d6981Smrg <row> 3256ea1d6981Smrg <entry role='protoname'> 3257ea1d6981Smrgactions: { count: LISTofCARD8, actions: LISTofKB_ACTION }</entry> 3258ea1d6981Smrg </row> 3259ea1d6981Smrg <row> 3260ea1d6981Smrg <entry role='protoname'> 3261ea1d6981Smrgbehaviors: LISTofKB_BEHAVIOR</entry> 3262ea1d6981Smrg </row> 3263ea1d6981Smrg <row> 3264ea1d6981Smrg <entry role='protoname'> 3265ea1d6981Smrgvmods: LISTofKEYMASK</entry> 3266ea1d6981Smrg </row> 3267ea1d6981Smrg <row> 3268ea1d6981Smrg <entry role='protoname'> 3269ea1d6981Smrgexplicit: LISTofKB_EXPLICIT</entry> 3270ea1d6981Smrg </row> 3271ea1d6981Smrg <row> 3272ea1d6981Smrg <entry role='protoname'> 3273ea1d6981Smrgmodmap: LISTofKB_KEYMODMAP</entry> 3274ea1d6981Smrg </row> 3275ea1d6981Smrg <row> 3276ea1d6981Smrg <entry role='protoname'> 3277ea1d6981Smrgvmodmap: LISTofKB_KEYVMODMAP</entry> 3278ea1d6981Smrg </row> 3279ea1d6981Smrg 3280ea1d6981Smrg <row> 3281ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 3282ea1d6981SmrgKeyboard</emphasis> 3283ea1d6981Smrg, <emphasis> 3284ea1d6981SmrgValue</emphasis> 3285ea1d6981Smrg, <emphasis> 3286ea1d6981SmrgMatch</emphasis> 3287ea1d6981Smrg, <emphasis> 3288ea1d6981SmrgAlloc</emphasis> 3289ea1d6981Smrg</entry> 3290ea1d6981Smrg </row> 3291ea1d6981Smrg 3292ea1d6981Smrg </tbody> 3293ea1d6981Smrg </tgroup> 3294ea1d6981Smrg</informaltable> 3295ea1d6981Smrg 3296ea1d6981Smrg<para> 3297ea1d6981SmrgThis request changes the indicated parts of the keyboard specified by <emphasis> 3298ea1d6981SmrgdeviceSpec</emphasis> 3299ea1d6981Smrg. With XKB, the effect of a key release is independent of the keyboard mapping 3300ea1d6981Smrgat the time of the release, so this request can be processed regardless of the 3301ea1d6981Smrglogical state of the modifier keys at the time of the request. 3302ea1d6981Smrg</para> 3303ea1d6981Smrg 3304ea1d6981Smrg 3305ea1d6981Smrg<para> 3306ea1d6981SmrgThe <emphasis> 3307ea1d6981Smrgpresent</emphasis> 3308ea1d6981Smrg field specifies the keyboard map components contained to be changed. The bits 3309ea1d6981Smrgin <emphasis> 3310ea1d6981Smrgpresent</emphasis> 3311ea1d6981Smrg affect the interpretation of the other fields as follows: 3312ea1d6981Smrg</para> 3313ea1d6981Smrg 3314ea1d6981Smrg 3315ea1d6981Smrg<para> 3316ea1d6981SmrgIf <emphasis> 3317ea1d6981SmrgXkbKeyTypesMask</emphasis> 3318ea1d6981Smrg is set in <emphasis> 3319ea1d6981Smrgpresent</emphasis> 3320ea1d6981Smrg, <emphasis> 3321ea1d6981SmrgfirstType</emphasis> 3322ea1d6981Smrg and <emphasis> 3323ea1d6981SmrgnTypes</emphasis> 3324ea1d6981Smrg specify a subset of the key types bound to the keyboard to be changed or 3325ea1d6981Smrgcreated. The index of the first key type to be changed must be less than or 3326ea1d6981Smrgequal to the unmodified length of the list of key types or a <emphasis> 3327ea1d6981SmrgValue</emphasis> 3328ea1d6981Smrg error results. 3329ea1d6981Smrg</para> 3330ea1d6981Smrg 3331ea1d6981Smrg 3332ea1d6981Smrg<para> 3333ea1d6981SmrgIf <emphasis> 3334ea1d6981SmrgXkbKeyTypesMask</emphasis> 3335ea1d6981Smrg is set in <emphasis> 3336ea1d6981Smrgpresent</emphasis> 3337ea1d6981Smrg and <emphasis> 3338ea1d6981SmrgSetMapResizeTypes</emphasis> 3339ea1d6981Smrg is set in <emphasis> 3340ea1d6981Smrgflags</emphasis> 3341ea1d6981Smrg, the server resizes the list of key types bound to the keyboard so that the 3342ea1d6981Smrglast key type specified by this request is the last element in the list. If the 3343ea1d6981Smrglist of key types is shrunk, any existing key definitions that use key types 3344ea1d6981Smrgthat eliminated are automatically assigned key types from the list of canonical 3345ea1d6981Smrgkey types as described in <link linkend='Assigning_Types_To_Groups_of_Symbols_for_a_Key'> 3346ea1d6981SmrgAssigning Types To Groups of Symbols for a Key</link>. The list of key types 3347ea1d6981Smrgbound to a keyboard must always include the four canonical types and cannot 3348ea1d6981Smrghave more than <emphasis> 3349ea1d6981SmrgXkbMaxTypesPerKey</emphasis> 3350ea1d6981Smrg (32) types; any attempt to reduce the number of types bound to a keyboard 3351ea1d6981Smrgbelow four or above <emphasis> 3352ea1d6981SmrgXkbMaxTypesPerKey</emphasis> 3353ea1d6981Smrg causes a <emphasis> 3354ea1d6981SmrgValue</emphasis> 3355ea1d6981Smrg error. Symbolic names for newly created key types or levels within a key type 3356ea1d6981Smrgare initialized to <emphasis> 3357ea1d6981SmrgNone</emphasis> 3358ea1d6981Smrg. 3359ea1d6981Smrg</para> 3360ea1d6981Smrg 3361ea1d6981Smrg 3362ea1d6981Smrg<para> 3363ea1d6981SmrgIf <emphasis> 3364ea1d6981SmrgXkbKeyTypesMask</emphasis> 3365ea1d6981Smrg is set in <emphasis> 3366ea1d6981Smrgpresent</emphasis> 3367ea1d6981Smrg, the types list has <emphasis> 3368ea1d6981SmrgnTypes</emphasis> 3369ea1d6981Smrg entries of type KB_KEYTYPE.Each key type specified in <emphasis> 3370ea1d6981Smrgtypes</emphasis> 3371ea1d6981Smrg must be valid or a <emphasis> 3372ea1d6981SmrgValue</emphasis> 3373ea1d6981Smrg error results. To be valid a key type definition must meet the following 3374ea1d6981Smrgcriteria: 3375ea1d6981Smrg</para> 3376ea1d6981Smrg 3377ea1d6981Smrg<itemizedlist> 3378ea1d6981Smrg<listitem> 3379ea1d6981Smrg <para>The <emphasis> 3380ea1d6981SmrgnumLevels</emphasis> 3381ea1d6981Smrg for the type must be greater than zero. 3382ea1d6981Smrg </para> 3383ea1d6981Smrg</listitem> 3384ea1d6981Smrg<listitem> 3385ea1d6981Smrg <para>If the key type is <emphasis> 3386ea1d6981SmrgONE_LEVEL</emphasis> 3387ea1d6981Smrg (i.e. index zero in the list of key types), <emphasis> 3388ea1d6981SmrgnumLevels</emphasis> 3389ea1d6981Smrg must be one. 3390ea1d6981Smrg </para> 3391ea1d6981Smrg</listitem> 3392ea1d6981Smrg<listitem> 3393ea1d6981Smrg <para>If the key type is <emphasis> 3394ea1d6981SmrgTWO_LEVEL</emphasis> 3395ea1d6981Smrg or <emphasis> 3396ea1d6981SmrgKEYPAD</emphasis> 3397ea1d6981Smrg, or <emphasis> 3398ea1d6981SmrgALPHABETIC</emphasis> 3399ea1d6981Smrg (i.e. index one, two, or three in the lest of key types) group width must be 3400ea1d6981Smrgtwo. 3401ea1d6981Smrg </para> 3402ea1d6981Smrg</listitem> 3403ea1d6981Smrg</itemizedlist> 3404ea1d6981Smrg 3405ea1d6981Smrg<para> 3406ea1d6981SmrgEach key type in types must also be internally consistent, or a Match error 3407ea1d6981Smrgresults. To be internally consistent, a key type definition must meet the 3408ea1d6981Smrgfollowing criteria: 3409ea1d6981Smrg</para> 3410ea1d6981Smrg 3411ea1d6981Smrg<itemizedlist> 3412ea1d6981Smrg<listitem> 3413ea1d6981Smrg <para>Each map entry must specify a resulting level that is legal for the 3414ea1d6981Smrgtype. 3415ea1d6981Smrg </para> 3416ea1d6981Smrg</listitem> 3417ea1d6981Smrg<listitem> 3418ea1d6981Smrg <para>Any real or virtual modifiers specified in any of the map entries must 3419ea1d6981Smrgalso be specified in the <emphasis> 3420ea1d6981Smrgmods</emphasis> 3421ea1d6981Smrg for the type. 3422ea1d6981Smrg </para> 3423ea1d6981Smrg</listitem> 3424ea1d6981Smrg</itemizedlist> 3425ea1d6981Smrg 3426ea1d6981Smrg<para> 3427ea1d6981SmrgIf <emphasis> 3428ea1d6981SmrgXkbKeySymsMask</emphasis> 3429ea1d6981Smrg is set in <emphasis> 3430ea1d6981Smrgpresent</emphasis> 3431ea1d6981Smrg, <emphasis> 3432ea1d6981SmrgfirstKeySym</emphasis> 3433ea1d6981Smrg and <emphasis> 3434ea1d6981SmrgnKeySyms</emphasis> 3435ea1d6981Smrg specify a subset of the keyboard keys to which new symbols are to be assigned 3436ea1d6981Smrgand <emphasis> 3437ea1d6981SmrgtotalSyms</emphasis> 3438ea1d6981Smrg specifies the total number of symbols to be assigned to those keys. If any of 3439ea1d6981Smrgthe keys specified by <emphasis> 3440ea1d6981SmrgfirstKeySym</emphasis> 3441ea1d6981Smrg and <emphasis> 3442ea1d6981SmrgnKeySyms</emphasis> 3443ea1d6981Smrg are not legal, a <emphasis> 3444ea1d6981SmrgMatch</emphasis> 3445ea1d6981Smrg error results. The <emphasis> 3446ea1d6981Smrgsyms</emphasis> 3447ea1d6981Smrg list has <emphasis> 3448ea1d6981SmrgnKeySyms</emphasis> 3449ea1d6981Smrg elements of type KB_KEYSYMMAP. Each key in the resulting key symbol map must 3450ea1d6981Smrgbe valid and internally consistent or a <emphasis> 3451ea1d6981SmrgValue</emphasis> 3452ea1d6981Smrg error results. To be valid and internally consistent, a key symbol map must 3453ea1d6981Smrgmeet the following criteria: 3454ea1d6981Smrg</para> 3455ea1d6981Smrg 3456ea1d6981Smrg<itemizedlist> 3457ea1d6981Smrg<listitem> 3458ea1d6981Smrg <para>The key type indices must specify legal result key types. 3459ea1d6981Smrg </para> 3460ea1d6981Smrg</listitem> 3461ea1d6981Smrg<listitem> 3462ea1d6981Smrg <para>The number of groups specified by <emphasis> 3463ea1d6981SmrggroupInfo</emphasis> 3464ea1d6981Smrg must be in the range <emphasis> 3465ea1d6981Smrg0…4</emphasis> 3466ea1d6981Smrg. 3467ea1d6981Smrg </para> 3468ea1d6981Smrg</listitem> 3469ea1d6981Smrg<listitem> 3470ea1d6981Smrg <para>The <emphasis> 3471ea1d6981Smrgwidth</emphasis> 3472ea1d6981Smrg of the key symbol map must be equal to <emphasis> 3473ea1d6981SmrgnumLevels</emphasis> 3474ea1d6981Smrg of the widest key type bound to the key. 3475ea1d6981Smrg </para> 3476ea1d6981Smrg</listitem> 3477ea1d6981Smrg<listitem> 3478ea1d6981Smrg <para>The number of symbols, <emphasis> 3479ea1d6981SmrgnSyms</emphasis> 3480ea1d6981Smrg, must equal the number of groups times <emphasis> 3481ea1d6981Smrgwidth</emphasis> 3482ea1d6981Smrg. 3483ea1d6981Smrg </para> 3484ea1d6981Smrg</listitem> 3485ea1d6981Smrg</itemizedlist> 3486ea1d6981Smrg 3487ea1d6981Smrg<para> 3488ea1d6981SmrgIf <emphasis> 3489ea1d6981SmrgXkbKeyActionsMask</emphasis> 3490ea1d6981Smrg is set in <emphasis> 3491ea1d6981Smrgpresent</emphasis> 3492ea1d6981Smrg, <emphasis> 3493ea1d6981SmrgfirstKeyAction</emphasis> 3494ea1d6981Smrg and <emphasis> 3495ea1d6981SmrgnKeyActions</emphasis> 3496ea1d6981Smrg specify a subset of the keyboard keys to which new actions are to be assigned 3497ea1d6981Smrgand <emphasis> 3498ea1d6981SmrgtotalActions</emphasis> 3499ea1d6981Smrg specifies the total number of actions to be assigned to those keys. If any of 3500ea1d6981Smrgthe keys specified by <emphasis> 3501ea1d6981SmrgfirstKeyAction</emphasis> 3502ea1d6981Smrg and <emphasis> 3503ea1d6981SmrgnKeyActions</emphasis> 3504ea1d6981Smrg are not legal, a <emphasis> 3505ea1d6981SmrgMatch</emphasis> 3506ea1d6981Smrg error results. The <emphasis> 3507ea1d6981Smrgcount</emphasis> 3508ea1d6981Smrg field of the <emphasis> 3509ea1d6981Smrgactions</emphasis> 3510ea1d6981Smrg return value has <emphasis> 3511ea1d6981SmrgnKeyActions</emphasis> 3512ea1d6981Smrg elements of type CARD8; each element of <emphasis> 3513ea1d6981Smrgcount</emphasis> 3514ea1d6981Smrg specifies the number of actions bound to the corresponding key. The <emphasis> 3515ea1d6981Smrgactions</emphasis> 3516ea1d6981Smrg list in the <emphasis> 3517ea1d6981Smrgactions</emphasis> 3518ea1d6981Smrg field has <emphasis> 3519ea1d6981SmrgtotalActions</emphasis> 3520ea1d6981Smrg elements of type KB_ACTION. These actions are assigned to each target key in 3521ea1d6981Smrgturn, as specified by <emphasis> 3522ea1d6981Smrgcount</emphasis> 3523ea1d6981Smrg. The list of actions assigned to each key must either be empty or have exactly 3524ea1d6981Smrgas many actions as the key has symbols, or a <emphasis> 3525ea1d6981SmrgMatch</emphasis> 3526ea1d6981Smrg error results. 3527ea1d6981Smrg</para> 3528ea1d6981Smrg 3529ea1d6981Smrg 3530ea1d6981Smrg<para> 3531ea1d6981SmrgIf <emphasis> 3532ea1d6981SmrgXkbKeyBehaviorsMask</emphasis> 3533ea1d6981Smrg is set in <emphasis> 3534ea1d6981Smrgpresent</emphasis> 3535ea1d6981Smrg, <emphasis> 3536ea1d6981SmrgfirstKeyBehavior</emphasis> 3537ea1d6981Smrg and <emphasis> 3538ea1d6981SmrgnKeyBehaviors</emphasis> 3539ea1d6981Smrg specify a subset of the keyboard keys to which new behaviors are to be 3540ea1d6981Smrgassigned, and <emphasis> 3541ea1d6981SmrgtotalKeyBehaviors</emphasis> 3542ea1d6981Smrg specifies the total number of keys in that range to be assigned non-default 3543ea1d6981Smrgbehavior. If any of the keys specified by <emphasis> 3544ea1d6981SmrgfirstKeyBehavior</emphasis> 3545ea1d6981Smrg and <emphasis> 3546ea1d6981SmrgnKeyBehaviors</emphasis> 3547ea1d6981Smrg are not legal, a <emphasis> 3548ea1d6981SmrgMatch</emphasis> 3549ea1d6981Smrg error results. The <emphasis> 3550ea1d6981Smrgbehaviors</emphasis> 3551ea1d6981Smrg list has <emphasis> 3552ea1d6981SmrgtotalKeyBehaviors</emphasis> 3553ea1d6981Smrg elements of type KB_BEHAVIOR; each entry of <emphasis> 3554ea1d6981Smrgbehaviors</emphasis> 3555ea1d6981Smrg specifies a key in the specified range and a new behavior for that key; any 3556ea1d6981Smrgkey that falls in the range specified by <emphasis> 3557ea1d6981SmrgfirstBehavior</emphasis> 3558ea1d6981Smrg and <emphasis> 3559ea1d6981SmrgnBehaviors</emphasis> 3560ea1d6981Smrg for which no behavior is specified in <emphasis> 3561ea1d6981Smrgbehaviors</emphasis> 3562ea1d6981Smrg is assigned the default behavior, <emphasis> 3563ea1d6981SmrgKB_Default</emphasis> 3564ea1d6981Smrg. The new behaviors must be legal, or a <emphasis> 3565ea1d6981SmrgValue</emphasis> 3566ea1d6981Smrg error results. To be legal, the behavior specified in the <emphasis> 3567ea1d6981SmrgXkbSetMap</emphasis> 3568ea1d6981Smrg request must: 3569ea1d6981Smrg</para> 3570ea1d6981Smrg 3571ea1d6981Smrg<itemizedlist> 3572ea1d6981Smrg<listitem> 3573ea1d6981Smrg <para>Specify a key in the range indicated by <emphasis> 3574ea1d6981SmrgfirstKeyBehavior</emphasis> 3575ea1d6981Smrg and <emphasis> 3576ea1d6981SmrgnKeyBehaviors</emphasis> 3577ea1d6981Smrg. 3578ea1d6981Smrg </para> 3579ea1d6981Smrg</listitem> 3580ea1d6981Smrg<listitem> 3581ea1d6981Smrg <para>Not specify the <emphasis> 3582ea1d6981Smrgpermanent</emphasis> 3583ea1d6981Smrg flag; permanent behaviors cannot be set or changed using the <emphasis> 3584ea1d6981SmrgXkbSetMap</emphasis> 3585ea1d6981Smrg request. 3586ea1d6981Smrg </para> 3587ea1d6981Smrg</listitem> 3588ea1d6981Smrg<listitem> 3589ea1d6981Smrg <para>If present, the <emphasis> 3590ea1d6981SmrgKB_Overlay1</emphasis> 3591ea1d6981Smrg and <emphasis> 3592ea1d6981SmrgKB_Overlay2</emphasis> 3593ea1d6981Smrg behaviors must specify a keycode for the overlay key that is valid for the 3594ea1d6981Smrgcurrent keyboard. 3595ea1d6981Smrg </para> 3596ea1d6981Smrg</listitem> 3597ea1d6981Smrg<listitem> 3598ea1d6981Smrg <para>If present, the <emphasis> 3599ea1d6981SmrgKB_RadioGroup</emphasis> 3600ea1d6981Smrg behavior must specify a legal index (0…31) for the radio group to which the 3601ea1d6981Smrgkey belongs. 3602ea1d6981Smrg </para> 3603ea1d6981Smrg</listitem> 3604ea1d6981Smrg</itemizedlist> 3605ea1d6981Smrg 3606ea1d6981Smrg<para> 3607ea1d6981SmrgKey behaviors that are not recognized by the server are accepted but ignored. 3608ea1d6981SmrgAttempts to replace a "permanent" behavior are silently ignored; the behavior 3609ea1d6981Smrgis not replaced, but not error is generated and any other components specified 3610ea1d6981Smrgin the <emphasis> 3611ea1d6981SmrgXkbSetMap</emphasis> 3612ea1d6981Smrg request are updated, as appropriate. 3613ea1d6981Smrg</para> 3614ea1d6981Smrg 3615ea1d6981Smrg 3616ea1d6981Smrg<para> 3617ea1d6981SmrgIf <emphasis> 3618ea1d6981SmrgXkbVirtualModsMask</emphasis> 3619ea1d6981Smrg is set in <emphasis> 3620ea1d6981Smrgpresent</emphasis> 3621ea1d6981Smrg, <emphasis> 3622ea1d6981SmrgvirtualMods</emphasis> 3623ea1d6981Smrg is a mask which specifies the virtual modifiers to be rebound. The <emphasis> 3624ea1d6981Smrgvmods</emphasis> 3625ea1d6981Smrg list specifies the real modifiers that are bound to each of the virtual 3626ea1d6981Smrgmodifiers specified in <emphasis> 3627ea1d6981SmrgvirtualMods</emphasis> 3628ea1d6981Smrg, starting from the lowest numbered virtual modifier and progressing upward. 3629ea1d6981SmrgAny virtual modifier that is not specified in <emphasis> 3630ea1d6981SmrgvirtualMods</emphasis> 3631ea1d6981Smrg has no corresponding entry in <emphasis> 3632ea1d6981Smrgvmods</emphasis> 3633ea1d6981Smrg, so the <emphasis> 3634ea1d6981Smrgvmods</emphasis> 3635ea1d6981Smrg list has one entry for each bit that is set in <emphasis> 3636ea1d6981SmrgvirtualMods</emphasis> 3637ea1d6981Smrg. 3638ea1d6981Smrg</para> 3639ea1d6981Smrg 3640ea1d6981Smrg 3641ea1d6981Smrg<para> 3642ea1d6981SmrgIf <emphasis> 3643ea1d6981SmrgXkbExplicitComponentsMask</emphasis> 3644ea1d6981Smrg is set in <emphasis> 3645ea1d6981Smrgpresent</emphasis> 3646ea1d6981Smrg, <emphasis> 3647ea1d6981SmrgfirstKeyExplicit</emphasis> 3648ea1d6981Smrg and <emphasis> 3649ea1d6981SmrgnKeyExplicit</emphasis> 3650ea1d6981Smrg specify a subset of the keyboard keys to which new explicit components are to 3651ea1d6981Smrgbe assigned, and <emphasis> 3652ea1d6981SmrgtotalKeyExplicit</emphasis> 3653ea1d6981Smrg specifies the total number of keys in that range that have at least one 3654ea1d6981Smrgexplicit component. The <emphasis> 3655ea1d6981Smrgexplicit</emphasis> 3656ea1d6981Smrg list has <emphasis> 3657ea1d6981SmrgtotalKeyExplicit</emphasis> 3658ea1d6981Smrg elements of type KB_KEYEXPLICIT; each entry of <emphasis> 3659ea1d6981Smrgexplicit</emphasis> 3660ea1d6981Smrg specifies a key in the specified range and a new set of explicit components 3661ea1d6981Smrgfor that key. Any key that falls in the range specified by <emphasis> 3662ea1d6981SmrgfirstKeyExplicit</emphasis> 3663ea1d6981Smrg and <emphasis> 3664ea1d6981SmrgnKeyExplicit</emphasis> 3665ea1d6981Smrg that is not assigned some value in <emphasis> 3666ea1d6981Smrgexplicit</emphasis> 3667ea1d6981Smrg has no explicit components. 3668ea1d6981Smrg</para> 3669ea1d6981Smrg 3670ea1d6981Smrg 3671ea1d6981Smrg<para> 3672ea1d6981SmrgIf <emphasis> 3673ea1d6981SmrgXkbModifierMapMask</emphasis> 3674ea1d6981Smrg is set in <emphasis> 3675ea1d6981Smrgpresent</emphasis> 3676ea1d6981Smrg, <emphasis> 3677ea1d6981SmrgfirstModMapKey</emphasis> 3678ea1d6981Smrg and <emphasis> 3679ea1d6981SmrgnModMapKeys</emphasis> 3680ea1d6981Smrg specify a subset of the keyboard keys for which new modifier mappings are to 3681ea1d6981Smrgbe assigned, and <emphasis> 3682ea1d6981SmrgtotalModMapKeys</emphasis> 3683ea1d6981Smrg specifies the total number of keys in that range to which at least one 3684ea1d6981Smrgmodifier is bound. The <emphasis> 3685ea1d6981Smrgmodmap</emphasis> 3686ea1d6981Smrg list has <emphasis> 3687ea1d6981SmrgtotalModMapKeys</emphasis> 3688ea1d6981Smrg elements of type KB_KEYMODMAP; each entry of <emphasis> 3689ea1d6981Smrgmodmap</emphasis> 3690ea1d6981Smrg specifies a key in the specified range and a new set of modifiers to be 3691ea1d6981Smrgassociated with that key. Any key that falls in the range specified by 3692ea1d6981Smrg<emphasis> 3693ea1d6981SmrgfirstModMapKey</emphasis> 3694ea1d6981Smrg and <emphasis> 3695ea1d6981SmrgnModMapKeys</emphasis> 3696ea1d6981Smrg that is not assigned some value in <emphasis> 3697ea1d6981Smrgmodmap</emphasis> 3698ea1d6981Smrg has no associated modifiers. 3699ea1d6981Smrg</para> 3700ea1d6981Smrg 3701ea1d6981Smrg 3702ea1d6981Smrg<para> 3703ea1d6981SmrgIf the modifier map is changed by the <emphasis> 3704ea1d6981SmrgXkbSetMap</emphasis> 3705ea1d6981Smrg request, any changes are also reflected in the core protocol modifier mapping. 3706ea1d6981SmrgChanges to the core protocol modifier mapping are reported to XKB-unaware 3707ea1d6981Smrgclients via <emphasis> 3708ea1d6981SmrgMappingNotify</emphasis> 3709ea1d6981Smrg events and can be retrieved with the core protocol <emphasis> 3710ea1d6981SmrgGetModifierMapping</emphasis> 3711ea1d6981Smrg request. 3712ea1d6981Smrg</para> 3713ea1d6981Smrg 3714ea1d6981Smrg 3715ea1d6981Smrg<para> 3716ea1d6981SmrgIf <emphasis> 3717ea1d6981SmrgXkbVirtualModMapMask</emphasis> 3718ea1d6981Smrg is set in <emphasis> 3719ea1d6981Smrgpresent</emphasis> 3720ea1d6981Smrg, <emphasis> 3721ea1d6981SmrgfirstVModMapKey</emphasis> 3722ea1d6981Smrg and <emphasis> 3723ea1d6981SmrgnVModMapKeys</emphasis> 3724ea1d6981Smrg specify a subset of the keyboard keys for which new modifier mappings are to 3725ea1d6981Smrgbe assigned, and <emphasis> 3726ea1d6981SmrgtotalVModMapKeys</emphasis> 3727ea1d6981Smrg specifies the total number of keys in that range to which at least one virtual 3728ea1d6981Smrgmodifier is bound. The <emphasis> 3729ea1d6981Smrgvmodmap</emphasis> 3730ea1d6981Smrg list has <emphasis> 3731ea1d6981SmrgtotalVModMapKeys</emphasis> 3732ea1d6981Smrg elements of type KB_KEYVMODMAP; each entry of <emphasis> 3733ea1d6981Smrgvmodmap</emphasis> 3734ea1d6981Smrg specifies a key in the specified range and a new set of virtual modifiers to 3735ea1d6981Smrgbe associated with that key. Any key that falls in the range specified by 3736ea1d6981Smrg<emphasis> 3737ea1d6981SmrgfirstVModMapKey</emphasis> 3738ea1d6981Smrg and <emphasis> 3739ea1d6981SmrgnVModMapKeys</emphasis> 3740ea1d6981Smrg that is not assigned some value in <emphasis> 3741ea1d6981Smrgvmodmap</emphasis> 3742ea1d6981Smrg has no associated virtual modifiers. 3743ea1d6981Smrg</para> 3744ea1d6981Smrg 3745ea1d6981Smrg 3746ea1d6981Smrg<para> 3747ea1d6981SmrgIf the resulting keyboard map is legal, the server updates the keyboard map. 3748ea1d6981SmrgChanges to some keyboard components have indirect effects on others: 3749ea1d6981Smrg</para> 3750ea1d6981Smrg 3751ea1d6981Smrg 3752ea1d6981Smrg<para> 3753ea1d6981SmrgIf the <emphasis> 3754ea1d6981SmrgXkbSetMapRecomputeActions</emphasis> 3755ea1d6981Smrg bit is set in <emphasis> 3756ea1d6981Smrgflags</emphasis> 3757ea1d6981Smrg, the actions associated with any keys for which symbol or modifier bindings 3758ea1d6981Smrgwere changed by this request are recomputed as described in 3759ea1d6981Smrg<link linkend='Assigning_Actions_To_Keys'>Assigning Actions To Keys</link>. Note 3760ea1d6981Smrgthat actions are recomputed <emphasis> 3761ea1d6981Smrgafter </emphasis> 3762ea1d6981Smrgany actions specified in this request are bound to keys, so the actions 3763ea1d6981Smrgspecified in this request might be clobbered by the automatic assignment of 3764ea1d6981Smrgactions to keys. 3765ea1d6981Smrg</para> 3766ea1d6981Smrg 3767ea1d6981Smrg 3768ea1d6981Smrg<para> 3769ea1d6981SmrgIf the group width of an existing key type is changed, the list of symbols 3770ea1d6981Smrgassociated with any keys of the changed type might be resized accordingly. If 3771ea1d6981Smrgthe list increases in size, any unspecified new symbols are initialized to 3772ea1d6981Smrg<emphasis> 3773ea1d6981SmrgNoSymbol</emphasis> 3774ea1d6981Smrg. 3775ea1d6981Smrg</para> 3776ea1d6981Smrg 3777ea1d6981Smrg 3778ea1d6981Smrg<para> 3779ea1d6981SmrgIf the list of actions associated with a key is not empty, changing the key 3780ea1d6981Smrgtype of the key resizes the list. Unspecified new actions are calculated by 3781ea1d6981Smrgapplying any keyboard symbol interpretations to the corresponding symbols. 3782ea1d6981Smrg</para> 3783ea1d6981Smrg 3784ea1d6981Smrg 3785ea1d6981Smrg<para> 3786ea1d6981SmrgThe number of groups global to the keyboard is always equal to the largest 3787ea1d6981Smrgnumber of groups specified by any of the key symbol maps. Changing the number 3788ea1d6981Smrgof groups in one or more key symbol maps may change the number of groups global 3789ea1d6981Smrgto the keyboard. 3790ea1d6981Smrg</para> 3791ea1d6981Smrg 3792ea1d6981Smrg 3793ea1d6981Smrg<para> 3794ea1d6981SmrgAssigning key behavior <emphasis> 3795ea1d6981SmrgKB_RadioGroup</emphasis> 3796ea1d6981Smrg to a key adds that key as a member of the specified radio group. Changing a 3797ea1d6981Smrgkey with the existing behavior <emphasis> 3798ea1d6981SmrgKB_RadioGroup</emphasis> 3799ea1d6981Smrg removes that key from the group. Changing the elements of a radio group can 3800ea1d6981Smrgcause synthetic key press or key release events if the key to be added or 3801ea1d6981Smrgremoved is logically down at the time of the change. 3802ea1d6981Smrg</para> 3803ea1d6981Smrg 3804ea1d6981Smrg 3805ea1d6981Smrg<para> 3806ea1d6981SmrgChanging a key with behavior <emphasis> 3807ea1d6981SmrgKB_Lock</emphasis> 3808ea1d6981Smrg causes a synthetic key release event if the key is logically but not 3809ea1d6981Smrgphysically down at the time of the change. 3810ea1d6981Smrg</para> 3811ea1d6981Smrg 3812ea1d6981Smrg 3813ea1d6981Smrg<para> 3814ea1d6981SmrgThis request sends an <emphasis> 3815ea1d6981SmrgXkbMapNotify</emphasis> 3816ea1d6981Smrg event which reflects both explicit and indirect map changes to any interested 3817ea1d6981Smrgclients. If any symbolic names are changed, it sends a <emphasis> 3818ea1d6981SmrgXkbNamesNotify</emphasis> 3819ea1d6981Smrg reflecting the changes to any interested clients. XKB-unaware clients are 3820ea1d6981Smrgnotified of keyboard changes via core protocol <emphasis> 3821ea1d6981SmrgMappingNotify</emphasis> 3822ea1d6981Smrg events. 3823ea1d6981Smrg</para> 3824ea1d6981Smrg 3825ea1d6981Smrg 3826ea1d6981Smrg<para> 3827ea1d6981SmrgKey press and key release events caused by changing key behavior may cause 3828ea1d6981Smrgadditional <emphasis> 3829ea1d6981SmrgXkbStateNotify</emphasis> 3830ea1d6981Smrg or <emphasis> 3831ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 3832ea1d6981Smrg events. 3833ea1d6981Smrg</para> 3834ea1d6981Smrg 3835ea1d6981Smrg 3836ea1d6981Smrg</sect2> 3837ea1d6981Smrg<sect2 id='Querying_and_Changing_the_Compatibility_Map'> 3838ea1d6981Smrg<title>Querying and Changing the Compatibility Map</title> 3839ea1d6981Smrg 3840ea1d6981Smrg 3841ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 3842ea1d6981Smrg<?dbfo keep-together="always" ?> 3843ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 3844ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 3845ea1d6981Smrg <thead> 3846ea1d6981Smrg <row> 3847ea1d6981Smrg <entry role='protoname'>XkbGetCompatMap</entry> 3848ea1d6981Smrg </row> 3849ea1d6981Smrg </thead> 3850ea1d6981Smrg <tbody> 3851ea1d6981Smrg <row> 3852ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 3853ea1d6981Smrg </row> 3854ea1d6981Smrg <row> 3855ea1d6981Smrg <entry role='protoname'> 3856ea1d6981Smrggroups: KB_GROUPMASK</entry> 3857ea1d6981Smrg </row> 3858ea1d6981Smrg <row> 3859ea1d6981Smrg <entry role='protoname'> 3860ea1d6981SmrggetAllSI: BOOL</entry> 3861ea1d6981Smrg </row> 3862ea1d6981Smrg <row> 3863ea1d6981Smrg <entry role='protoname'> 3864ea1d6981SmrgfirstSI, nSI: CARD16 3865ea1d6981Smrg </entry> 3866ea1d6981Smrg </row> 3867ea1d6981Smrg <row> 3868ea1d6981Smrg <entry role='protoreply'> 3869ea1d6981SmrgdeviceID: CARD8 3870ea1d6981Smrg </entry> 3871ea1d6981Smrg </row> 3872ea1d6981Smrg <row> 3873ea1d6981Smrg <entry role='protoreply'> 3874ea1d6981SmrggroupsRtrn: KB_GROUPMASK 3875ea1d6981Smrg </entry> 3876ea1d6981Smrg </row> 3877ea1d6981Smrg <row> 3878ea1d6981Smrg <entry role='protoreply'> 3879ea1d6981SmrgfirstSIRtrn, nSIRtrn, nTotalSI: CARD16 3880ea1d6981Smrg </entry> 3881ea1d6981Smrg </row> 3882ea1d6981Smrg <row> 3883ea1d6981Smrg <entry role='protoreply'> 3884ea1d6981SmrgsiRtrn: LISTofKB_SYMINTERP 3885ea1d6981Smrg </entry> 3886ea1d6981Smrg </row> 3887ea1d6981Smrg <row> 3888ea1d6981Smrg <entry role='protoreply'> 3889ea1d6981SmrggroupRtrn: LISTofKB_MODDEF</entry> 3890ea1d6981Smrg </row> 3891ea1d6981Smrg <row> 3892ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 3893ea1d6981SmrgKeyboard</emphasis> 3894ea1d6981Smrg, <emphasis> 3895ea1d6981SmrgMatch</emphasis> 3896ea1d6981Smrg, <emphasis> 3897ea1d6981SmrgAlloc</emphasis> 3898ea1d6981Smrg</entry> 3899ea1d6981Smrg </row> 3900ea1d6981Smrg 3901ea1d6981Smrg </tbody> 3902ea1d6981Smrg </tgroup> 3903ea1d6981Smrg</informaltable> 3904ea1d6981Smrg 3905ea1d6981Smrg<para> 3906ea1d6981SmrgThis request returns the listed compatibility map components for the keyboard 3907ea1d6981Smrgspecified by <emphasis> 3908ea1d6981SmrgdeviceSpec</emphasis> 3909ea1d6981Smrg. If <emphasis> 3910ea1d6981SmrgdeviceSpec</emphasis> 3911ea1d6981Smrg does not specify a valid keyboard device, a <emphasis> 3912ea1d6981SmrgKeyboard</emphasis> 3913ea1d6981Smrg Error results. On return, <emphasis> 3914ea1d6981SmrgdeviceID</emphasis> 3915ea1d6981Smrg reports the input extension identifier of the keyboard device or <emphasis> 3916ea1d6981Smrg0</emphasis> 3917ea1d6981Smrg if the server does not support the input extension. 3918ea1d6981Smrg</para> 3919ea1d6981Smrg 3920ea1d6981Smrg 3921ea1d6981Smrg<para> 3922ea1d6981SmrgIf <emphasis> 3923ea1d6981SmrggetAllSI</emphasis> 3924ea1d6981Smrg is <emphasis> 3925ea1d6981SmrgFalse</emphasis> 3926ea1d6981Smrg, <emphasis> 3927ea1d6981SmrgfirstSI</emphasis> 3928ea1d6981Smrg and <emphasis> 3929ea1d6981SmrgnSI</emphasis> 3930ea1d6981Smrg specify a subset of the symbol interpretations to be returned; if used, 3931ea1d6981Smrg<emphasis> 3932ea1d6981SmrgnSI</emphasis> 3933ea1d6981Smrg must be greater than <emphasis> 3934ea1d6981Smrg0</emphasis> 3935ea1d6981Smrg and all of the elements specified by <emphasis> 3936ea1d6981SmrgfirstSI</emphasis> 3937ea1d6981Smrg and <emphasis> 3938ea1d6981SmrgnSI</emphasis> 3939ea1d6981Smrg must be defined or a <emphasis> 3940ea1d6981SmrgValue</emphasis> 3941ea1d6981Smrg error results. If <emphasis> 3942ea1d6981SmrggetAllSyms</emphasis> 3943ea1d6981Smrg is <emphasis> 3944ea1d6981SmrgTrue</emphasis> 3945ea1d6981Smrg, the server ignores <emphasis> 3946ea1d6981SmrgfirstSym</emphasis> 3947ea1d6981Smrg and <emphasis> 3948ea1d6981SmrgnSyms</emphasis> 3949ea1d6981Smrg and returns all of the symbol interpretations defined for the keyboard. 3950ea1d6981Smrg</para> 3951ea1d6981Smrg 3952ea1d6981Smrg 3953ea1d6981Smrg<para> 3954ea1d6981SmrgThe <emphasis> 3955ea1d6981Smrggroups</emphasis> 3956ea1d6981Smrg mask specifies the groups for which compatibility maps are to be returned. 3957ea1d6981Smrg</para> 3958ea1d6981Smrg 3959ea1d6981Smrg 3960ea1d6981Smrg<para> 3961ea1d6981SmrgThe <emphasis> 3962ea1d6981SmrgnTotalSI</emphasis> 3963ea1d6981Smrg return value reports the total number of symbol interpretations defined for 3964ea1d6981Smrgthe keyboard. On successful return, the <emphasis> 3965ea1d6981SmrgsiRtrn</emphasis> 3966ea1d6981Smrg return list contains the definitions for <emphasis> 3967ea1d6981SmrgnSIRtrn</emphasis> 3968ea1d6981Smrg symbol interpretations beginning at <emphasis> 3969ea1d6981SmrgfirstSIRtrn</emphasis> 3970ea1d6981Smrg. 3971ea1d6981Smrg</para> 3972ea1d6981Smrg 3973ea1d6981Smrg 3974ea1d6981Smrg<para> 3975ea1d6981SmrgThe <emphasis> 3976ea1d6981SmrggroupRtrn</emphasis> 3977ea1d6981Smrg return values report the entries in the group compatibility map for any groups 3978ea1d6981Smrgspecified in the <emphasis> 3979ea1d6981SmrggroupsRtrn</emphasis> 3980ea1d6981Smrg return value. 3981ea1d6981Smrg</para> 3982ea1d6981Smrg 3983ea1d6981Smrg 3984ea1d6981Smrg 3985ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 3986ea1d6981Smrg<?dbfo keep-together="always" ?> 3987ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 3988ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 3989ea1d6981Smrg <thead> 3990ea1d6981Smrg <row> 3991ea1d6981Smrg <entry role='protoname'>XkbSetCompatMap</entry> 3992ea1d6981Smrg </row> 3993ea1d6981Smrg </thead> 3994ea1d6981Smrg <tbody> 3995ea1d6981Smrg <row> 3996ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 3997ea1d6981Smrg </row> 3998ea1d6981Smrg <row> 3999ea1d6981Smrg <entry role='protoname'> 4000ea1d6981SmrgrecomputeActions: BOOL</entry> 4001ea1d6981Smrg </row> 4002ea1d6981Smrg <row> 4003ea1d6981Smrg <entry role='protoname'> 4004ea1d6981SmrgtruncateSI: BOOL</entry> 4005ea1d6981Smrg </row> 4006ea1d6981Smrg <row> 4007ea1d6981Smrg <entry role='protoname'> 4008ea1d6981Smrggroups: KB_GROUPMASK</entry> 4009ea1d6981Smrg </row> 4010ea1d6981Smrg <row> 4011ea1d6981Smrg <entry role='protoname'> 4012ea1d6981SmrgfirstSI, nSI: CARD16</entry> 4013ea1d6981Smrg </row> 4014ea1d6981Smrg <row> 4015ea1d6981Smrg <entry role='protoname'> 4016ea1d6981Smrgsi: LISTofKB_SYMINTERPRET</entry> 4017ea1d6981Smrg </row> 4018ea1d6981Smrg <row> 4019ea1d6981Smrg <entry role='protoname'> 4020ea1d6981SmrggroupMaps: LISTofKB_MODDEF</entry> 4021ea1d6981Smrg </row> 4022ea1d6981Smrg 4023ea1d6981Smrg <row> 4024ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 4025ea1d6981SmrgKeyboard</emphasis> 4026ea1d6981Smrg, <emphasis> 4027ea1d6981SmrgMatch</emphasis> 4028ea1d6981Smrg, <emphasis> 4029ea1d6981SmrgValue</emphasis> 4030ea1d6981Smrg, <emphasis> 4031ea1d6981SmrgAlloc</emphasis> 4032ea1d6981Smrg</entry> 4033ea1d6981Smrg </row> 4034ea1d6981Smrg 4035ea1d6981Smrg </tbody> 4036ea1d6981Smrg </tgroup> 4037ea1d6981Smrg</informaltable> 4038ea1d6981Smrg 4039ea1d6981Smrg<para> 4040ea1d6981SmrgThis request changes a specified subset of the compatibility map of the 4041ea1d6981Smrgkeyboard indicated by <emphasis> 4042ea1d6981SmrgdeviceSpec</emphasis> 4043ea1d6981Smrg. If <emphasis> 4044ea1d6981SmrgdeviceSpec</emphasis> 4045ea1d6981Smrg specifies an invalid device, a <emphasis> 4046ea1d6981SmrgKeyboard</emphasis> 4047ea1d6981Smrg error results and nothing is changed. 4048ea1d6981Smrg</para> 4049ea1d6981Smrg 4050ea1d6981Smrg 4051ea1d6981Smrg<para> 4052ea1d6981SmrgThe <emphasis> 4053ea1d6981SmrgfirstSI</emphasis> 4054ea1d6981Smrg and <emphasis> 4055ea1d6981SmrgnSI</emphasis> 4056ea1d6981Smrg fields specify a subset of the keyboard symbol interpretations to be changed. 4057ea1d6981SmrgThe <emphasis> 4058ea1d6981Smrgsi</emphasis> 4059ea1d6981Smrg list specifies new values for each of the interpretations in that range. 4060ea1d6981Smrg</para> 4061ea1d6981Smrg 4062ea1d6981Smrg 4063ea1d6981Smrg<para> 4064ea1d6981SmrgThe first symbol interpretation to be changed, <emphasis> 4065ea1d6981SmrgfirstSI</emphasis> 4066ea1d6981Smrg, must be less than or equal to the unchanged length of the list of symbol 4067ea1d6981Smrginterpretations, or a <emphasis> 4068ea1d6981SmrgValue</emphasis> 4069ea1d6981Smrg error results. If the resulting list would be larger than the unchanged list, 4070ea1d6981Smrgit server list of symbol interpretations is automatically increased in size. 4071ea1d6981SmrgOtherwise, if <emphasis> 4072ea1d6981SmrgtruncateSyms</emphasis> 4073ea1d6981Smrg is <emphasis> 4074ea1d6981SmrgTrue</emphasis> 4075ea1d6981Smrg, the server deletes any symbol interpretations after the last element changed 4076ea1d6981Smrgby this request, and reduces the length of the list accordingly. 4077ea1d6981Smrg</para> 4078ea1d6981Smrg 4079ea1d6981Smrg 4080ea1d6981Smrg<para> 4081ea1d6981SmrgThe <emphasis> 4082ea1d6981SmrggroupMaps</emphasis> 4083ea1d6981Smrg fields contain new definitions for a subset of the group compatibility map; 4084ea1d6981Smrg<emphasis> 4085ea1d6981Smrggroups</emphasis> 4086ea1d6981Smrg specifies the group compatibility map entries to be updated from <emphasis> 4087ea1d6981SmrggroupMaps</emphasis> 4088ea1d6981Smrg. 4089ea1d6981Smrg</para> 4090ea1d6981Smrg 4091ea1d6981Smrg 4092ea1d6981Smrg<para> 4093ea1d6981Smrg All changed compatibility maps and symbol interpretations must either ignore 4094ea1d6981Smrggroup state or specify a legal range of groups, or a <emphasis> 4095ea1d6981SmrgValue</emphasis> 4096ea1d6981Smrg error results. 4097ea1d6981Smrg</para> 4098ea1d6981Smrg 4099ea1d6981Smrg 4100ea1d6981Smrg<para> 4101ea1d6981SmrgIf the <emphasis> 4102ea1d6981SmrgrecomputeActions</emphasis> 4103ea1d6981Smrg field is <emphasis> 4104ea1d6981SmrgTrue</emphasis> 4105ea1d6981Smrg, the server regenerates recalculates the actions bound to all keyboard keys by 4106ea1d6981Smrgapplying the new symbol interpretations to the entire key symbol map, as 4107ea1d6981Smrgdescribed in <link linkend='Assigning_Actions_To_Keys'>Assigning Actions To 4108ea1d6981SmrgKeys</link>. 4109ea1d6981Smrg</para> 4110ea1d6981Smrg 4111ea1d6981Smrg 4112ea1d6981Smrg</sect2> 4113ea1d6981Smrg<sect2 id='Querying_and_Changing_Indicators'> 4114ea1d6981Smrg<title>Querying and Changing Indicators</title> 4115ea1d6981Smrg 4116ea1d6981Smrg 4117ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 4118ea1d6981Smrg<?dbfo keep-together="always" ?> 4119ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 4120ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 4121ea1d6981Smrg <thead> 4122ea1d6981Smrg <row> 4123ea1d6981Smrg <entry role='protoname'>XkbGetIndicatorState</entry> 4124ea1d6981Smrg </row> 4125ea1d6981Smrg </thead> 4126ea1d6981Smrg <tbody> 4127ea1d6981Smrg <row> 4128ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 4129ea1d6981Smrg </row> 4130ea1d6981Smrg <row> 4131ea1d6981Smrg <entry role='protoreply'> 4132ea1d6981SmrgdeviceID: CARD8 4133ea1d6981Smrgstate: KB_INDICATORMASK</entry> 4134ea1d6981Smrg </row> 4135ea1d6981Smrg 4136ea1d6981Smrg <row> 4137ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 4138ea1d6981SmrgKeyboard</emphasis> 4139ea1d6981Smrg</entry> 4140ea1d6981Smrg </row> 4141ea1d6981Smrg 4142ea1d6981Smrg </tbody> 4143ea1d6981Smrg </tgroup> 4144ea1d6981Smrg</informaltable> 4145ea1d6981Smrg 4146ea1d6981Smrg<para> 4147ea1d6981SmrgThis request reports the current state of the indicators for the keyboard 4148ea1d6981Smrgspecified by <emphasis> 4149ea1d6981SmrgdeviceSpec</emphasis> 4150ea1d6981Smrg. If <emphasis> 4151ea1d6981SmrgdeviceSpec</emphasis> 4152ea1d6981Smrg does not specify a valid keyboard, a <emphasis> 4153ea1d6981SmrgKeyboard</emphasis> 4154ea1d6981Smrg error results. 4155ea1d6981Smrg</para> 4156ea1d6981Smrg 4157ea1d6981Smrg 4158ea1d6981Smrg<para> 4159ea1d6981SmrgOn successful return, the <emphasis> 4160ea1d6981SmrgdeviceID</emphasis> 4161ea1d6981Smrg field reports the input extension identifier of the keyboard or <emphasis> 4162ea1d6981Smrg0</emphasis> 4163ea1d6981Smrg if the server does not support the input extension. The <emphasis> 4164ea1d6981Smrgstate</emphasis> 4165ea1d6981Smrg return value reports the state of each of the thirty-two indicators on the 4166ea1d6981Smrgspecified keyboard. The least-significant bit corresponds to indicator 0, the 4167ea1d6981Smrgmost significant bit to indicator 31; if a bit is set, the corresponding 4168ea1d6981Smrgindicator is lit. 4169ea1d6981Smrg</para> 4170ea1d6981Smrg 4171ea1d6981Smrg 4172ea1d6981Smrg 4173ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 4174ea1d6981Smrg<?dbfo keep-together="always" ?> 4175ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 4176ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 4177ea1d6981Smrg <thead> 4178ea1d6981Smrg <row> 4179ea1d6981Smrg <entry role='protoname'>XkbGetIndicatorMap</entry> 4180ea1d6981Smrg </row> 4181ea1d6981Smrg </thead> 4182ea1d6981Smrg <tbody> 4183ea1d6981Smrg <row> 4184ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 4185ea1d6981Smrg </row> 4186ea1d6981Smrg <row> 4187ea1d6981Smrg <entry role='protoname'> 4188ea1d6981Smrgwhich: KB_INDICATORMASK 4189ea1d6981Smrg </entry> 4190ea1d6981Smrg </row> 4191ea1d6981Smrg <row> 4192ea1d6981Smrg <entry role='protoreply'> 4193ea1d6981SmrgdeviceID: CARD8 4194ea1d6981Smrg </entry> 4195ea1d6981Smrg </row> 4196ea1d6981Smrg <row> 4197ea1d6981Smrg <entry role='protoreply'> 4198ea1d6981Smrgwhich: KB_INDICATORMASK 4199ea1d6981Smrg </entry> 4200ea1d6981Smrg </row> 4201ea1d6981Smrg <row> 4202ea1d6981Smrg <entry role='protoreply'> 4203ea1d6981SmrgrealIndicators: KB_INDICATORMASK 4204ea1d6981Smrg </entry> 4205ea1d6981Smrg </row> 4206ea1d6981Smrg <row> 4207ea1d6981Smrg <entry role='protoreply'> 4208ea1d6981SmrgnIndicators: CARD8 4209ea1d6981Smrg </entry> 4210ea1d6981Smrg </row> 4211ea1d6981Smrg <row> 4212ea1d6981Smrg <entry role='protoreply'> 4213ea1d6981Smrgmaps: LISTofKB_INDICATORMAP</entry> 4214ea1d6981Smrg </row> 4215ea1d6981Smrg <row> 4216ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 4217ea1d6981SmrgKeyboard</emphasis> 4218ea1d6981Smrg, <emphasis> 4219ea1d6981SmrgValue</emphasis> 4220ea1d6981Smrg</entry> 4221ea1d6981Smrg </row> 4222ea1d6981Smrg </tbody> 4223ea1d6981Smrg </tgroup> 4224ea1d6981Smrg</informaltable> 4225ea1d6981Smrg 4226ea1d6981Smrg<para> 4227ea1d6981SmrgThis request returns a subset of the maps for the indicators on the keyboard 4228ea1d6981Smrgspecified by <emphasis> 4229ea1d6981SmrgdeviceSpec</emphasis> 4230ea1d6981Smrg. If <emphasis> 4231ea1d6981SmrgdeviceSpec</emphasis> 4232ea1d6981Smrg does not specify a valid keyboard device, a <emphasis> 4233ea1d6981SmrgKeyboard</emphasis> 4234ea1d6981Smrg error results. 4235ea1d6981Smrg</para> 4236ea1d6981Smrg 4237ea1d6981Smrg 4238ea1d6981Smrg<para> 4239ea1d6981SmrgThe <emphasis> 4240ea1d6981Smrgwhich</emphasis> 4241ea1d6981Smrg field specifies the subset to be returned; a set bit in the which field 4242ea1d6981Smrgindicates that the map for the corresponding indicator should be returned. 4243ea1d6981Smrg</para> 4244ea1d6981Smrg 4245ea1d6981Smrg 4246ea1d6981Smrg<para> 4247ea1d6981SmrgOn successful return, the <emphasis> 4248ea1d6981SmrgdeviceID</emphasis> 4249ea1d6981Smrg field reports the input extension identifier of the keyboard or <emphasis> 4250ea1d6981Smrg0</emphasis> 4251ea1d6981Smrg if the server does not support the input extension. Any indicators specified 4252ea1d6981Smrgin <emphasis> 4253ea1d6981SmrgrealIndicators</emphasis> 4254ea1d6981Smrg are actually present on the keyboard; the rest are virtual indicators. Virtual 4255ea1d6981Smrgindicators do not directly cause any visible or audible effect when they change 4256ea1d6981Smrgstate, but they do cause <emphasis> 4257ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 4258ea1d6981Smrg events. 4259ea1d6981Smrg</para> 4260ea1d6981Smrg 4261ea1d6981Smrg 4262ea1d6981Smrg<para> 4263ea1d6981SmrgThe <emphasis> 4264ea1d6981Smrgmaps</emphasis> 4265ea1d6981Smrg return value reports the requested indicator maps. Indicator maps are 4266ea1d6981Smrgdescribed in <link linkend='Indicator_Maps'>Indicator Maps</link> 4267ea1d6981Smrg</para> 4268ea1d6981Smrg 4269ea1d6981Smrg 4270ea1d6981Smrg 4271ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 4272ea1d6981Smrg<?dbfo keep-together="always" ?> 4273ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 4274ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 4275ea1d6981Smrg <thead> 4276ea1d6981Smrg <row> 4277ea1d6981Smrg <entry role='protoname'>XkbSetIndicatorMap</entry> 4278ea1d6981Smrg </row> 4279ea1d6981Smrg </thead> 4280ea1d6981Smrg <tbody> 4281ea1d6981Smrg <row> 4282ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 4283ea1d6981Smrg </row> 4284ea1d6981Smrg <row> 4285ea1d6981Smrg <entry role='protoname'> 4286ea1d6981Smrgwhich: KB_INDICATORMASK</entry> 4287ea1d6981Smrg </row> 4288ea1d6981Smrg <row> 4289ea1d6981Smrg <entry role='protoname'> 4290ea1d6981Smrgmaps: LISTofKB_INDICATORMAP</entry> 4291ea1d6981Smrg </row> 4292ea1d6981Smrg 4293ea1d6981Smrg <row> 4294ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 4295ea1d6981SmrgKeyboard</emphasis> 4296ea1d6981Smrg, <emphasis> 4297ea1d6981SmrgValue</emphasis> 4298ea1d6981Smrg</entry> 4299ea1d6981Smrg </row> 4300ea1d6981Smrg 4301ea1d6981Smrg </tbody> 4302ea1d6981Smrg </tgroup> 4303ea1d6981Smrg</informaltable> 4304ea1d6981Smrg 4305ea1d6981Smrg<para> 4306ea1d6981SmrgThis request changes a subset of the maps on the keyboard specified by 4307ea1d6981Smrg<emphasis> 4308ea1d6981SmrgdeviceSpec</emphasis> 4309ea1d6981Smrg. If <emphasis> 4310ea1d6981SmrgdeviceSpec</emphasis> 4311ea1d6981Smrg does not specify a valid keyboard device, a <emphasis> 4312ea1d6981SmrgKeyboard</emphasis> 4313ea1d6981Smrg error results. 4314ea1d6981Smrg</para> 4315ea1d6981Smrg 4316ea1d6981Smrg 4317ea1d6981Smrg<para> 4318ea1d6981SmrgThe <emphasis> 4319ea1d6981Smrgwhich</emphasis> 4320ea1d6981Smrg field specifies the subset to be changed; the <emphasis> 4321ea1d6981Smrgmaps</emphasis> 4322ea1d6981Smrg field contains the new definitions. 4323ea1d6981Smrg</para> 4324ea1d6981Smrg 4325ea1d6981Smrg 4326ea1d6981Smrg<para> 4327ea1d6981SmrgIf successful, the new indicator maps are applied immediately. If any 4328ea1d6981Smrgindicators change state as a result of the new maps, the server generates 4329ea1d6981Smrg<emphasis> 4330ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 4331ea1d6981Smrg events as appropriate. 4332ea1d6981Smrg</para> 4333ea1d6981Smrg 4334ea1d6981Smrg 4335ea1d6981Smrg 4336ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 4337ea1d6981Smrg<?dbfo keep-together="always" ?> 4338ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 4339ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 4340ea1d6981Smrg <thead> 4341ea1d6981Smrg <row> 4342ea1d6981Smrg <entry role='protoname'>XkbGetNamedIndicator</entry> 4343ea1d6981Smrg </row> 4344ea1d6981Smrg </thead> 4345ea1d6981Smrg <tbody> 4346ea1d6981Smrg <row> 4347ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 4348ea1d6981Smrg </row> 4349ea1d6981Smrg <row> 4350ea1d6981Smrg <entry role='protoname'> 4351ea1d6981SmrgledClass: KB_LEDCLASSSPEC</entry> 4352ea1d6981Smrg </row> 4353ea1d6981Smrg <row> 4354ea1d6981Smrg <entry role='protoname'> 4355ea1d6981SmrgledID: KB_IDSPEC</entry> 4356ea1d6981Smrg </row> 4357ea1d6981Smrg <row> 4358ea1d6981Smrg <entry role='protoname'> 4359ea1d6981Smrgindicator: ATOM 4360ea1d6981Smrg </entry> 4361ea1d6981Smrg </row> 4362ea1d6981Smrg <row> 4363ea1d6981Smrg <entry role='protoreply'> 4364ea1d6981SmrgdeviceID: CARD8 4365ea1d6981Smrg </entry> 4366ea1d6981Smrg </row> 4367ea1d6981Smrg <row> 4368ea1d6981Smrg <entry role='protoreply'> 4369ea1d6981Smrgsupported: BOOL 4370ea1d6981Smrg </entry> 4371ea1d6981Smrg </row> 4372ea1d6981Smrg <row> 4373ea1d6981Smrg <entry role='protoreply'> 4374ea1d6981Smrgindicator: ATOM 4375ea1d6981Smrg </entry> 4376ea1d6981Smrg </row> 4377ea1d6981Smrg <row> 4378ea1d6981Smrg <entry role='protoreply'> 4379ea1d6981Smrgfound: BOOL 4380ea1d6981Smrg </entry> 4381ea1d6981Smrg </row> 4382ea1d6981Smrg <row> 4383ea1d6981Smrg <entry role='protoreply'> 4384ea1d6981Smrgon: BOOL 4385ea1d6981Smrg </entry> 4386ea1d6981Smrg </row> 4387ea1d6981Smrg <row> 4388ea1d6981Smrg <entry role='protoreply'> 4389ea1d6981SmrgrealIndicator: BOOL 4390ea1d6981Smrg </entry> 4391ea1d6981Smrg </row> 4392ea1d6981Smrg <row> 4393ea1d6981Smrg <entry role='protoreply'> 4394ea1d6981Smrgndx: CARD8 4395ea1d6981Smrg </entry> 4396ea1d6981Smrg </row> 4397ea1d6981Smrg <row> 4398ea1d6981Smrg <entry role='protoreply'> 4399ea1d6981Smrgmap: KB_INDICATORMAP</entry> 4400ea1d6981Smrg </row> 4401ea1d6981Smrg 4402ea1d6981Smrg <row> 4403ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 4404ea1d6981SmrgKeyboard</emphasis> 4405ea1d6981Smrg, <emphasis> 4406ea1d6981SmrgAtom</emphasis> 4407ea1d6981Smrg, <emphasis> 4408ea1d6981SmrgValue</emphasis> 4409ea1d6981Smrg</entry> 4410ea1d6981Smrg </row> 4411ea1d6981Smrg 4412ea1d6981Smrg </tbody> 4413ea1d6981Smrg </tgroup> 4414ea1d6981Smrg</informaltable> 4415ea1d6981Smrg 4416ea1d6981Smrg<para> 4417ea1d6981SmrgThis request returns information about the indicator specified by <emphasis> 4418ea1d6981SmrgledClass</emphasis> 4419ea1d6981Smrg, <emphasis> 4420ea1d6981SmrgledID</emphasis> 4421ea1d6981Smrg, and <emphasis> 4422ea1d6981Smrgindicator</emphasis> 4423ea1d6981Smrg on the keyboard specified by <emphasis> 4424ea1d6981SmrgdeviceSpec</emphasis> 4425ea1d6981Smrg. The <emphasis> 4426ea1d6981Smrgindicator</emphasis> 4427ea1d6981Smrg field specifies the name of the indicator for which information is to be 4428ea1d6981Smrgreturned. 4429ea1d6981Smrg</para> 4430ea1d6981Smrg 4431ea1d6981Smrg 4432ea1d6981Smrg<para> 4433ea1d6981SmrgIf <emphasis> 4434ea1d6981SmrgdeviceSpec</emphasis> 4435ea1d6981Smrg does not specify a device with indicators, a <emphasis> 4436ea1d6981SmrgKeyboard</emphasis> 4437ea1d6981Smrg error results. If <emphasis> 4438ea1d6981SmrgledClass</emphasis> 4439ea1d6981Smrg does not have the value <emphasis> 4440ea1d6981SmrgDfltXIClass</emphasis> 4441ea1d6981Smrg, <emphasis> 4442ea1d6981SmrgLedFeedbackClass</emphasis> 4443ea1d6981Smrg, or <emphasis> 4444ea1d6981SmrgKbdFeedbackClass</emphasis> 4445ea1d6981Smrg, a <emphasis> 4446ea1d6981SmrgValue</emphasis> 4447ea1d6981Smrg error results. If <emphasis> 4448ea1d6981SmrgledID</emphasis> 4449ea1d6981Smrg does not have the value <emphasis> 4450ea1d6981SmrgDfltXIId</emphasis> 4451ea1d6981Smrg or specify the identifier of a feedback of the class specified by <emphasis> 4452ea1d6981SmrgledClass</emphasis> 4453ea1d6981Smrg on the device specified by <emphasis> 4454ea1d6981SmrgdeviceSpec</emphasis> 4455ea1d6981Smrg, a <emphasis> 4456ea1d6981SmrgMatch</emphasis> 4457ea1d6981Smrg error results. If <emphasis> 4458ea1d6981Smrgindicator</emphasis> 4459ea1d6981Smrg is not a valid ATOM other than <emphasis> 4460ea1d6981SmrgNone</emphasis> 4461ea1d6981Smrg, an <emphasis> 4462ea1d6981SmrgAtom</emphasis> 4463ea1d6981Smrg error results. 4464ea1d6981Smrg</para> 4465ea1d6981Smrg 4466ea1d6981Smrg 4467ea1d6981Smrg<para> 4468ea1d6981SmrgThis request is always supported with default class and identifier on the core 4469ea1d6981Smrgkeyboard device. If the request specifies a device other than the core keyboard 4470ea1d6981Smrgdevice or a feedback class and identifier other than the defaults, and the 4471ea1d6981Smrgserver does not support indicator names or indicator maps for extension 4472ea1d6981Smrgdevices, the <emphasis> 4473ea1d6981Smrgsupported</emphasis> 4474ea1d6981Smrg return value is <emphasis> 4475ea1d6981SmrgFalse</emphasis> 4476ea1d6981Smrg and the values of the other fields in the reply are undefined. If the client 4477ea1d6981Smrgwhich issued the unsupported request has also selected to do so, it will also 4478ea1d6981Smrgreceive an <emphasis> 4479ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 4480ea1d6981Smrg event which reports the attempt to use an unsupported feature, in this case 4481ea1d6981Smrgone or both of <emphasis> 4482ea1d6981SmrgXkbXI_IndicatorMaps</emphasis> 4483ea1d6981Smrg or <emphasis> 4484ea1d6981SmrgXkbXI_IndicatorNames</emphasis> 4485ea1d6981Smrg. 4486ea1d6981Smrg</para> 4487ea1d6981Smrg 4488ea1d6981Smrg 4489ea1d6981Smrg<para> 4490ea1d6981SmrgOtherwise, <emphasis> 4491ea1d6981Smrgsupported</emphasis> 4492ea1d6981Smrg is <emphasis> 4493ea1d6981SmrgTrue</emphasis> 4494ea1d6981Smrg and the <emphasis> 4495ea1d6981SmrgdeviceID</emphasis> 4496ea1d6981Smrg field reports the input extension identifier of the keyboard or <emphasis> 4497ea1d6981Smrg0</emphasis> 4498ea1d6981Smrg if the server does not support the input extension. The <emphasis> 4499ea1d6981Smrgindicator</emphasis> 4500ea1d6981Smrg return value reports the name for which information was requested and the 4501ea1d6981Smrg<emphasis> 4502ea1d6981Smrgfound</emphasis> 4503ea1d6981Smrg return value is <emphasis> 4504ea1d6981SmrgTrue</emphasis> 4505ea1d6981Smrg if an indicator with the specified name was found on the device. 4506ea1d6981Smrg</para> 4507ea1d6981Smrg 4508ea1d6981Smrg 4509ea1d6981Smrg<para> 4510ea1d6981SmrgIf a matching indicator was found: 4511ea1d6981Smrg</para> 4512ea1d6981Smrg 4513ea1d6981Smrg<itemizedlist> 4514ea1d6981Smrg<listitem> 4515ea1d6981Smrg <para>The <emphasis> 4516ea1d6981Smrgon</emphasis> 4517ea1d6981Smrg return value reports the state of the indicator at the time of the request. 4518ea1d6981Smrg </para> 4519ea1d6981Smrg</listitem> 4520ea1d6981Smrg<listitem> 4521ea1d6981Smrg <para>The <emphasis> 4522ea1d6981SmrgrealIndicator</emphasis> 4523ea1d6981Smrg return value is <emphasis> 4524ea1d6981SmrgTrue</emphasis> 4525ea1d6981Smrg if the requested indicator is actually present on the keyboard or <emphasis> 4526ea1d6981SmrgFalse</emphasis> 4527ea1d6981Smrg if it is virtual. 4528ea1d6981Smrg </para> 4529ea1d6981Smrg</listitem> 4530ea1d6981Smrg<listitem> 4531ea1d6981Smrg <para>The <emphasis> 4532ea1d6981Smrgndx</emphasis> 4533ea1d6981Smrg return value reports the index of the indicator in the requested feedback. 4534ea1d6981Smrg </para> 4535ea1d6981Smrg</listitem> 4536ea1d6981Smrg<listitem> 4537ea1d6981Smrg <para>The <emphasis> 4538ea1d6981Smrgmap</emphasis> 4539ea1d6981Smrg return value reports the indicator map used by to automatically change the 4540ea1d6981Smrgstate of the specified indicator in response to changes in keyboard state or 4541ea1d6981Smrgcontrols. 4542ea1d6981Smrg </para> 4543ea1d6981Smrg</listitem> 4544ea1d6981Smrg</itemizedlist> 4545ea1d6981Smrg 4546ea1d6981Smrg<para> 4547ea1d6981SmrgIf no matching indicator is found, the <emphasis> 4548ea1d6981Smrgfound</emphasis> 4549ea1d6981Smrg return value is <emphasis> 4550ea1d6981SmrgFalse</emphasis> 4551ea1d6981Smrg, and the <emphasis> 4552ea1d6981Smrgon</emphasis> 4553ea1d6981Smrg, <emphasis> 4554ea1d6981SmrgrealIndicator</emphasis> 4555ea1d6981Smrg, <emphasis> 4556ea1d6981Smrgndx</emphasis> 4557ea1d6981Smrg, and <emphasis> 4558ea1d6981Smrgmap</emphasis> 4559ea1d6981Smrg return values are undefined. 4560ea1d6981Smrg</para> 4561ea1d6981Smrg 4562ea1d6981Smrg 4563ea1d6981Smrg 4564ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 4565ea1d6981Smrg<?dbfo keep-together="always" ?> 4566ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 4567ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 4568ea1d6981Smrg <thead> 4569ea1d6981Smrg <row> 4570ea1d6981Smrg <entry role='protoname'>XkbSetNamedIndicator</entry> 4571ea1d6981Smrg </row> 4572ea1d6981Smrg </thead> 4573ea1d6981Smrg <tbody> 4574ea1d6981Smrg <row> 4575ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 4576ea1d6981Smrg </row> 4577ea1d6981Smrg <row> 4578ea1d6981Smrg <entry role='protoname'> 4579ea1d6981SmrgledClass: KB_LEDCLASSSPEC</entry> 4580ea1d6981Smrg </row> 4581ea1d6981Smrg <row> 4582ea1d6981Smrg <entry role='protoname'> 4583ea1d6981SmrgledID: KB_IDSPEC</entry> 4584ea1d6981Smrg </row> 4585ea1d6981Smrg <row> 4586ea1d6981Smrg <entry role='protoname'> 4587ea1d6981Smrgindicator: ATOM</entry> 4588ea1d6981Smrg </row> 4589ea1d6981Smrg <row> 4590ea1d6981Smrg <entry role='protoname'> 4591ea1d6981SmrgsetState: BOOL</entry> 4592ea1d6981Smrg </row> 4593ea1d6981Smrg <row> 4594ea1d6981Smrg <entry role='protoname'> 4595ea1d6981Smrgon: BOOL</entry> 4596ea1d6981Smrg </row> 4597ea1d6981Smrg <row> 4598ea1d6981Smrg <entry role='protoname'> 4599ea1d6981SmrgsetMap: BOOL</entry> 4600ea1d6981Smrg </row> 4601ea1d6981Smrg <row> 4602ea1d6981Smrg <entry role='protoname'> 4603ea1d6981SmrgcreateMap: BOOL</entry> 4604ea1d6981Smrg </row> 4605ea1d6981Smrg <row> 4606ea1d6981Smrg <entry role='protoname'> 4607ea1d6981Smrgmap: KB_SETINDICATORMAP</entry> 4608ea1d6981Smrg </row> 4609ea1d6981Smrg 4610ea1d6981Smrg <row> 4611ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 4612ea1d6981SmrgKeyboard</emphasis> 4613ea1d6981Smrg, <emphasis> 4614ea1d6981SmrgAtom</emphasis> 4615ea1d6981Smrg, <emphasis> 4616ea1d6981SmrgAccess</emphasis> 4617ea1d6981Smrg</entry> 4618ea1d6981Smrg </row> 4619ea1d6981Smrg 4620ea1d6981Smrg </tbody> 4621ea1d6981Smrg </tgroup> 4622ea1d6981Smrg</informaltable> 4623ea1d6981Smrg 4624ea1d6981Smrg<para> 4625ea1d6981SmrgThis request changes various aspects of the indicator specified by <emphasis> 4626ea1d6981SmrgledClass</emphasis> 4627ea1d6981Smrg, <emphasis> 4628ea1d6981SmrgledID</emphasis> 4629ea1d6981Smrg, and <emphasis> 4630ea1d6981Smrgindicator</emphasis> 4631ea1d6981Smrg on the keyboard specified by <emphasis> 4632ea1d6981SmrgdeviceSpec</emphasis> 4633ea1d6981Smrg. The <emphasis> 4634ea1d6981Smrgindicator</emphasis> 4635ea1d6981Smrg argument specifies the name of the indicator to be updated. 4636ea1d6981Smrg</para> 4637ea1d6981Smrg 4638ea1d6981Smrg 4639ea1d6981Smrg<para> 4640ea1d6981SmrgIf <emphasis> 4641ea1d6981SmrgdeviceSpec</emphasis> 4642ea1d6981Smrg does not specify a device with indicators, a <emphasis> 4643ea1d6981SmrgKeyboard</emphasis> 4644ea1d6981Smrg error results. If <emphasis> 4645ea1d6981SmrgledClass</emphasis> 4646ea1d6981Smrg does not have the value <emphasis> 4647ea1d6981SmrgDfltXIClass</emphasis> 4648ea1d6981Smrg, <emphasis> 4649ea1d6981SmrgLedFeedbackClass</emphasis> 4650ea1d6981Smrg, or <emphasis> 4651ea1d6981SmrgKbdFeedbackClass</emphasis> 4652ea1d6981Smrg, a <emphasis> 4653ea1d6981SmrgValue</emphasis> 4654ea1d6981Smrg error results. If <emphasis> 4655ea1d6981SmrgledID</emphasis> 4656ea1d6981Smrg does not have the value <emphasis> 4657ea1d6981SmrgDfltXIId</emphasis> 4658ea1d6981Smrg or specify the identifier of a feedback of the class specified by <emphasis> 4659ea1d6981SmrgledClass</emphasis> 4660ea1d6981Smrg on the device specified by <emphasis> 4661ea1d6981SmrgdeviceSpec</emphasis> 4662ea1d6981Smrg, a <emphasis> 4663ea1d6981SmrgMatch</emphasis> 4664ea1d6981Smrg error results. If <emphasis> 4665ea1d6981Smrgindicator</emphasis> 4666ea1d6981Smrg is not a valid ATOM other than <emphasis> 4667ea1d6981SmrgNone</emphasis> 4668ea1d6981Smrg, an <emphasis> 4669ea1d6981SmrgAtom</emphasis> 4670ea1d6981Smrg error results. 4671ea1d6981Smrg</para> 4672ea1d6981Smrg 4673ea1d6981Smrg 4674ea1d6981Smrg<para> 4675ea1d6981SmrgThis request is always supported with default class and identifier on the core 4676ea1d6981Smrgkeyboard device. If the request specifies a device other than the core keyboard 4677ea1d6981Smrgdevice or a feedback class and identifier other than the defaults, and the 4678ea1d6981Smrgserver does not support indicator names or indicator maps for extension 4679ea1d6981Smrgdevices, the <emphasis> 4680ea1d6981Smrgsupported</emphasis> 4681ea1d6981Smrg return value is <emphasis> 4682ea1d6981SmrgFalse</emphasis> 4683ea1d6981Smrg and the values of the other fields in the reply are undefined. If the client 4684ea1d6981Smrgwhich issued the unsupported request has also selected to do so, it will also 4685ea1d6981Smrgreceive an <emphasis> 4686ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 4687ea1d6981Smrg event which reports the attempt to use an unsupported feature, in this case 4688ea1d6981Smrgone or both of <emphasis> 4689ea1d6981SmrgXkbXI_IndicatorMaps</emphasis> 4690ea1d6981Smrg and <emphasis> 4691ea1d6981SmrgXkbXI_IndicatorNames</emphasis> 4692ea1d6981Smrg. 4693ea1d6981Smrg</para> 4694ea1d6981Smrg 4695ea1d6981Smrg 4696ea1d6981Smrg<para> 4697ea1d6981SmrgOtherwise, <emphasis> 4698ea1d6981Smrgsupported</emphasis> 4699ea1d6981Smrg is <emphasis> 4700ea1d6981SmrgTrue</emphasis> 4701ea1d6981Smrg and the <emphasis> 4702ea1d6981SmrgdeviceID</emphasis> 4703ea1d6981Smrg field reports the input extension identifier of the keyboard or <emphasis> 4704ea1d6981Smrg0</emphasis> 4705ea1d6981Smrg if the server does not support the input extension. The <emphasis> 4706ea1d6981Smrgindicator</emphasis> 4707ea1d6981Smrg return value reports the name for which information was requested and the 4708ea1d6981Smrg<emphasis> 4709ea1d6981Smrgfound</emphasis> 4710ea1d6981Smrg return value is <emphasis> 4711ea1d6981SmrgTrue</emphasis> 4712ea1d6981Smrg if an indicator with the specified name was found on the device. 4713ea1d6981Smrg</para> 4714ea1d6981Smrg 4715ea1d6981Smrg 4716ea1d6981Smrg<para> 4717ea1d6981SmrgIf no indicator with the specified name is found on the specified device, and 4718ea1d6981Smrgthe <emphasis> 4719ea1d6981SmrgcreateMap</emphasis> 4720ea1d6981Smrg field is <emphasis> 4721ea1d6981SmrgTrue</emphasis> 4722ea1d6981Smrg, XKB assigns the specified name to the lowest-numbered indicator that has no 4723ea1d6981Smrgname (i.e. whose name is <emphasis> 4724ea1d6981SmrgNone</emphasis> 4725ea1d6981Smrg) and applies the rest of the fields in the request to the newly named 4726ea1d6981Smrgindicator. If no unnamed indicators remain, this request reports no error and 4727ea1d6981Smrghas no effect. 4728ea1d6981Smrg</para> 4729ea1d6981Smrg 4730ea1d6981Smrg 4731ea1d6981Smrg<para> 4732ea1d6981SmrgIf no matching indicator is found or new indicator assigned this request 4733ea1d6981Smrgreports no error and has no effect. Otherwise, it updates the indicator as 4734ea1d6981Smrgfollows: 4735ea1d6981Smrg</para> 4736ea1d6981Smrg 4737ea1d6981Smrg 4738ea1d6981Smrg<para> 4739ea1d6981SmrgIf <emphasis> 4740ea1d6981SmrgsetMap </emphasis> 4741ea1d6981Smrgis <emphasis> 4742ea1d6981SmrgTrue</emphasis> 4743ea1d6981Smrg, XKB changes the map for the indicator (see <link linkend='Indicator_Maps'>Indicator Maps</link>) to reflect the 4744ea1d6981Smrgvalues specified in <emphasis> 4745ea1d6981Smrgmap</emphasis> 4746ea1d6981Smrg. 4747ea1d6981Smrg</para> 4748ea1d6981Smrg 4749ea1d6981Smrg 4750ea1d6981Smrg<para> 4751ea1d6981SmrgIf <emphasis> 4752ea1d6981SmrgsetState</emphasis> 4753ea1d6981Smrg is <emphasis> 4754ea1d6981SmrgTrue</emphasis> 4755ea1d6981Smrg, XKB attempts to explicitly change the state of the indicator to the state 4756ea1d6981Smrgspecified in <emphasis> 4757ea1d6981Smrgon</emphasis> 4758ea1d6981Smrg. The effects of an attempt to explicitly change the state of an indicator 4759ea1d6981Smrgdepend on the values in the map for that indicator and are not guaranteed to 4760ea1d6981Smrgsucceed. 4761ea1d6981Smrg</para> 4762ea1d6981Smrg 4763ea1d6981Smrg 4764ea1d6981Smrg<para> 4765ea1d6981SmrgIf this request affects both indicator map and state, it updates the indicator 4766ea1d6981Smrgmap before attempting to change its state, so the success of the explicit 4767ea1d6981Smrgchange depends on the indicator map values specified in the request. 4768ea1d6981Smrg</para> 4769ea1d6981Smrg 4770ea1d6981Smrg 4771ea1d6981Smrg<para> 4772ea1d6981SmrgIf this request changes the indicator map, it applies the new map immediately 4773ea1d6981Smrgto determine the appropriate state for the indicator given the new indicator 4774ea1d6981Smrgmap and the current state of the keyboard. 4775ea1d6981Smrg</para> 4776ea1d6981Smrg 4777ea1d6981Smrg 4778ea1d6981Smrg</sect2> 4779ea1d6981Smrg<sect2 id='Querying_and_Changing_Symbolic_Names'> 4780ea1d6981Smrg<title>Querying and Changing Symbolic Names</title> 4781ea1d6981Smrg 4782ea1d6981Smrg 4783ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 4784ea1d6981Smrg<?dbfo keep-together="always" ?> 4785ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 4786ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 4787ea1d6981Smrg <thead> 4788ea1d6981Smrg <row> 4789ea1d6981Smrg <entry role='protoname'>XkbGetNames</entry> 4790ea1d6981Smrg </row> 4791ea1d6981Smrg </thead> 4792ea1d6981Smrg <tbody> 4793ea1d6981Smrg <row> 4794ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 4795ea1d6981Smrg </row> 4796ea1d6981Smrg <row> 4797ea1d6981Smrg <entry role='protoname'> 4798ea1d6981Smrgwhich: KB_NAMEDETAILMASK</entry> 4799ea1d6981Smrg </row> 4800ea1d6981Smrg <row> 4801ea1d6981Smrg <entry role='protoreply'> 4802ea1d6981SmrgdeviceID: CARD8 4803ea1d6981Smrgwhich: KB_NAMESMASK 4804ea1d6981SmrgminKeyCode, maxKeyCode: KEYCODE 4805ea1d6981SmrgnTypes: CARD8 4806ea1d6981SmrgnKTLevels: CARD16 4807ea1d6981SmrggroupNames: KB_GROUPMASK 4808ea1d6981SmrgvirtualMods: KB_VMODMASK 4809ea1d6981SmrgfirstKey: KEYCODE 4810ea1d6981SmrgnKeys: CARD8 4811ea1d6981Smrgindicators: KB_INDICATORMASK 4812ea1d6981SmrgnRadioGroups, nKeyAliases: CARD8 4813ea1d6981Smrgpresent: KB_NAMEDETAILMASK 4814ea1d6981SmrgvalueList: LISTofITEMs</entry> 4815ea1d6981Smrg </row> 4816ea1d6981Smrg 4817ea1d6981Smrg <row> 4818ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 4819ea1d6981SmrgKeyboard</emphasis> 4820ea1d6981Smrg, <emphasis> 4821ea1d6981SmrgValue</emphasis> 4822ea1d6981Smrg</entry> 4823ea1d6981Smrg </row> 4824ea1d6981Smrg 4825ea1d6981Smrg </tbody> 4826ea1d6981Smrg </tgroup> 4827ea1d6981Smrg</informaltable> 4828ea1d6981Smrg 4829ea1d6981Smrg<para> 4830ea1d6981SmrgThis request returns the symbolic names for various components of the keyboard 4831ea1d6981Smrgmapping for the device specified by <emphasis> 4832ea1d6981SmrgdeviceSpec</emphasis> 4833ea1d6981Smrg. The <emphasis> 4834ea1d6981Smrgwhich</emphasis> 4835ea1d6981Smrg field specifies the keyboard components for which names are to be returned. If 4836ea1d6981Smrg<emphasis> 4837ea1d6981SmrgdeviceSpec</emphasis> 4838ea1d6981Smrg does not specify a valid keyboard device, a <emphasis> 4839ea1d6981SmrgKeyboard</emphasis> 4840ea1d6981Smrg error results. If any undefined bits in <emphasis> 4841ea1d6981Smrgwhich</emphasis> 4842ea1d6981Smrg are non-zero, a <emphasis> 4843ea1d6981SmrgValue</emphasis> 4844ea1d6981Smrg error results. 4845ea1d6981Smrg</para> 4846ea1d6981Smrg 4847ea1d6981Smrg 4848ea1d6981Smrg<para> 4849ea1d6981SmrgThe <emphasis> 4850ea1d6981SmrgdeviceID</emphasis> 4851ea1d6981Smrg return value contains the X Input Extension device identifier of the specified 4852ea1d6981Smrgdevice or <emphasis> 4853ea1d6981Smrg0</emphasis> 4854ea1d6981Smrg if the server does not support the input extension. The <emphasis> 4855ea1d6981Smrgpresent</emphasis> 4856ea1d6981Smrg and <emphasis> 4857ea1d6981SmrgvalueList</emphasis> 4858ea1d6981Smrg return values specify the components for which names are being reported. If a 4859ea1d6981Smrgcomponent is specified in <emphasis> 4860ea1d6981Smrgpresent</emphasis> 4861ea1d6981Smrg, the corresponding element is present in the <emphasis> 4862ea1d6981SmrgvalueList</emphasis> 4863ea1d6981Smrg, otherwise that component has length <emphasis> 4864ea1d6981Smrg0</emphasis> 4865ea1d6981Smrg. The components of the <emphasis> 4866ea1d6981SmrgvalueList</emphasis> 4867ea1d6981Smrg appear in the following order, when present:. 4868ea1d6981Smrg</para> 4869ea1d6981Smrg 4870ea1d6981Smrg<informaltable frame='none'> 4871ea1d6981Smrg<?dbfo keep-together="always" ?> 4872ea1d6981Smrg<tgroup cols='3' align='left' colsep='0' rowsep='0'> 4873ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 4874ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 4875ea1d6981Smrg<colspec colname='c3' colwidth='1.0*'/> 4876ea1d6981Smrg<thead> 4877ea1d6981Smrg <row rowsep='1'> 4878ea1d6981Smrg <entry>Component</entry> 4879ea1d6981Smrg <entry>Size</entry> 4880ea1d6981Smrg <entry>Type</entry> 4881ea1d6981Smrg </row> 4882ea1d6981Smrg</thead> 4883ea1d6981Smrg<tbody> 4884ea1d6981Smrg <row> 4885ea1d6981Smrg <entry><emphasis> 4886ea1d6981SmrgXkbKeycodesName</emphasis> 4887ea1d6981Smrg</entry> 4888ea1d6981Smrg <entry>1</entry> 4889ea1d6981Smrg <entry> ATOM</entry> 4890ea1d6981Smrg </row> 4891ea1d6981Smrg <row> 4892ea1d6981Smrg <entry><emphasis> 4893ea1d6981SmrgXkbGeometryName</emphasis> 4894ea1d6981Smrg</entry> 4895ea1d6981Smrg <entry>1</entry> 4896ea1d6981Smrg <entry> ATOM</entry> 4897ea1d6981Smrg </row> 4898ea1d6981Smrg <row> 4899ea1d6981Smrg <entry><emphasis> 4900ea1d6981SmrgXkbSymbolsName</emphasis> 4901ea1d6981Smrg</entry> 4902ea1d6981Smrg <entry>1</entry> 4903ea1d6981Smrg <entry> ATOM</entry> 4904ea1d6981Smrg </row> 4905ea1d6981Smrg <row> 4906ea1d6981Smrg <entry><emphasis> 4907ea1d6981SmrgXkbPhysSymbolsName</emphasis> 4908ea1d6981Smrg</entry> 4909ea1d6981Smrg <entry>1</entry> 4910ea1d6981Smrg <entry> ATOM</entry> 4911ea1d6981Smrg </row> 4912ea1d6981Smrg <row> 4913ea1d6981Smrg <entry><emphasis> 4914ea1d6981SmrgXkbTypesName</emphasis> 4915ea1d6981Smrg</entry> 4916ea1d6981Smrg <entry>1</entry> 4917ea1d6981Smrg <entry> ATOM</entry> 4918ea1d6981Smrg </row> 4919ea1d6981Smrg <row> 4920ea1d6981Smrg <entry><emphasis> 4921ea1d6981SmrgXkbCompatName</emphasis> 4922ea1d6981Smrg</entry> 4923ea1d6981Smrg <entry>1</entry> 4924ea1d6981Smrg <entry> ATOM</entry> 4925ea1d6981Smrg </row> 4926ea1d6981Smrg <row> 4927ea1d6981Smrg <entry><emphasis> 4928ea1d6981SmrgXkbKeyTypeNames</emphasis> 4929ea1d6981Smrg </entry> 4930ea1d6981Smrg <entry><emphasis> 4931ea1d6981SmrgnTypes</emphasis> 4932ea1d6981Smrg</entry> 4933ea1d6981Smrg <entry> LISTofATOM</entry> 4934ea1d6981Smrg </row> 4935ea1d6981Smrg <row> 4936ea1d6981Smrg <entry><emphasis> 4937ea1d6981SmrgXkbKTLevelNames</emphasis> 4938ea1d6981Smrg </entry> 4939ea1d6981Smrg <entry><emphasis> 4940ea1d6981SmrgnTypes</emphasis> 4941ea1d6981Smrg, 4942ea1d6981Smrg<emphasis> 4943ea1d6981SmrgnKTLevels</emphasis> 4944ea1d6981Smrg</entry> 4945ea1d6981Smrg <entry>{ count: LISTofCARD8, 4946ea1d6981Smrg names: LISTofATOM }</entry> 4947ea1d6981Smrg </row> 4948ea1d6981Smrg <row> 4949ea1d6981Smrg <entry><emphasis> 4950ea1d6981SmrgXkbIndicatorNames</emphasis> 4951ea1d6981Smrg </entry> 4952ea1d6981Smrg <entry>One per bit set in <emphasis> 4953ea1d6981Smrgindicators</emphasis> 4954ea1d6981Smrg</entry> 4955ea1d6981Smrg <entry> LISTofATOM</entry> 4956ea1d6981Smrg </row> 4957ea1d6981Smrg <row> 4958ea1d6981Smrg <entry><emphasis> 4959ea1d6981SmrgXkbVirtualModNames</emphasis> 4960ea1d6981Smrg </entry> 4961ea1d6981Smrg <entry>One per bit set in <emphasis> 4962ea1d6981SmrgvirtualMods</emphasis> 4963ea1d6981Smrg</entry> 4964ea1d6981Smrg <entry> LISTofATOM</entry> 4965ea1d6981Smrg </row> 4966ea1d6981Smrg <row> 4967ea1d6981Smrg <entry><emphasis> 4968ea1d6981SmrgXkbGroupNames </emphasis> 4969ea1d6981Smrg</entry> 4970ea1d6981Smrg <entry>One per bit set in <emphasis> 4971ea1d6981SmrggroupNames</emphasis> 4972ea1d6981Smrg</entry> 4973ea1d6981Smrg <entry> LISTofATOM</entry> 4974ea1d6981Smrg </row> 4975ea1d6981Smrg <row> 4976ea1d6981Smrg <entry><emphasis> 4977ea1d6981SmrgXkbKeyNames</emphasis> 4978ea1d6981Smrg</entry> 4979ea1d6981Smrg <entry><emphasis> 4980ea1d6981SmrgnKeys</emphasis> 4981ea1d6981Smrg</entry> 4982ea1d6981Smrg <entry> LISTofKB_KEYNAME</entry> 4983ea1d6981Smrg </row> 4984ea1d6981Smrg <row> 4985ea1d6981Smrg <entry><emphasis> 4986ea1d6981SmrgXkbKeyAliases</emphasis> 4987ea1d6981Smrg</entry> 4988ea1d6981Smrg <entry><emphasis> 4989ea1d6981SmrgnKeyAliases</emphasis> 4990ea1d6981Smrg</entry> 4991ea1d6981Smrg <entry> LISTofKB_KEYALIAS</entry> 4992ea1d6981Smrg </row> 4993ea1d6981Smrg <row> 4994ea1d6981Smrg <entry><emphasis> 4995ea1d6981SmrgXkbRGNames</emphasis> 4996ea1d6981Smrg</entry> 4997ea1d6981Smrg <entry><emphasis> 4998ea1d6981SmrgnRadioGroups</emphasis> 4999ea1d6981Smrg</entry> 5000ea1d6981Smrg <entry> LISTofATOM</entry> 5001ea1d6981Smrg </row> 5002ea1d6981Smrg</tbody> 5003ea1d6981Smrg</tgroup> 5004ea1d6981Smrg</informaltable> 5005ea1d6981Smrg 5006ea1d6981Smrg<para> 5007ea1d6981SmrgIf type names are reported, the <emphasis> 5008ea1d6981SmrgnTypes</emphasis> 5009ea1d6981Smrg return value reports the number of types defined for the keyboard, and the 5010ea1d6981Smrglist of key type names in <emphasis> 5011ea1d6981SmrgvalueList</emphasis> 5012ea1d6981Smrg has <emphasis> 5013ea1d6981SmrgnTypes</emphasis> 5014ea1d6981Smrg elements. 5015ea1d6981Smrg</para> 5016ea1d6981Smrg 5017ea1d6981Smrg 5018ea1d6981Smrg<para> 5019ea1d6981SmrgIf key type level names are reported, the list of key type level names in the 5020ea1d6981Smrg<emphasis> 5021ea1d6981SmrgvalueList</emphasis> 5022ea1d6981Smrg has two parts: The <emphasis> 5023ea1d6981Smrgcount</emphasis> 5024ea1d6981Smrg array has <emphasis> 5025ea1d6981SmrgnTypes</emphasis> 5026ea1d6981Smrg elements, each of which reports the number of level names reported for the 5027ea1d6981Smrgcorresponding key type. The <emphasis> 5028ea1d6981Smrgnames</emphasis> 5029ea1d6981Smrg array has <emphasis> 5030ea1d6981SmrgnKTLevels</emphasis> 5031ea1d6981Smrg atoms and reports the names of each type sequentially. The <emphasis> 5032ea1d6981SmrgnKTLevels</emphasis> 5033ea1d6981Smrg return value is always equal to the sum of all of the elements of the 5034ea1d6981Smrg<emphasis> 5035ea1d6981Smrgcount</emphasis> 5036ea1d6981Smrg array. 5037ea1d6981Smrg</para> 5038ea1d6981Smrg 5039ea1d6981Smrg 5040ea1d6981Smrg<para> 5041ea1d6981SmrgIf indicator names are reported, the <emphasis> 5042ea1d6981Smrgindicators</emphasis> 5043ea1d6981Smrg mask specifies the indicators for which names are defined; any indicators not 5044ea1d6981Smrgspecified in <emphasis> 5045ea1d6981Smrgindicators</emphasis> 5046ea1d6981Smrg have the name <emphasis> 5047ea1d6981SmrgNone</emphasis> 5048ea1d6981Smrg. The list of indicator names in <emphasis> 5049ea1d6981SmrgvalueList</emphasis> 5050ea1d6981Smrg contains the names of the listed indicators, beginning with the 5051ea1d6981Smrglowest-numbered indicator for which a name is defined and proceeding to the 5052ea1d6981Smrghighest. 5053ea1d6981Smrg</para> 5054ea1d6981Smrg 5055ea1d6981Smrg 5056ea1d6981Smrg<para> 5057ea1d6981SmrgIf virtual modifier names are reported, the <emphasis> 5058ea1d6981SmrgvirtualMods</emphasis> 5059ea1d6981Smrg mask specifies the virtual modifiers for which names are defined; any virtual 5060ea1d6981Smrgmodifiers not specified in <emphasis> 5061ea1d6981SmrgvirtualMods</emphasis> 5062ea1d6981Smrg have the name <emphasis> 5063ea1d6981SmrgNone</emphasis> 5064ea1d6981Smrg. The list of virtual modifier names in <emphasis> 5065ea1d6981SmrgvalueList</emphasis> 5066ea1d6981Smrg contains the names of the listed virtual modifiers, beginning with the 5067ea1d6981Smrglowest-numbered virtual modifier for which a name is defined and proceeding to 5068ea1d6981Smrgthe highest. 5069ea1d6981Smrg</para> 5070ea1d6981Smrg 5071ea1d6981Smrg 5072ea1d6981Smrg<para> 5073ea1d6981SmrgIf group names are reported, the <emphasis> 5074ea1d6981SmrggroupNames</emphasis> 5075ea1d6981Smrg mask specifies the groups for which names are defined; any groups not 5076ea1d6981Smrgspecified in <emphasis> 5077ea1d6981SmrggroupNames</emphasis> 5078ea1d6981Smrg have the name <emphasis> 5079ea1d6981SmrgNone</emphasis> 5080ea1d6981Smrg. The list of group names in <emphasis> 5081ea1d6981SmrgvalueList</emphasis> 5082ea1d6981Smrg contains the names of the listed groups, beginning with the lowest-numbered 5083ea1d6981Smrggroup for which a name is defined and proceeding to the highest. 5084ea1d6981Smrg</para> 5085ea1d6981Smrg 5086ea1d6981Smrg 5087ea1d6981Smrg<para> 5088ea1d6981SmrgIf key names are reported, the <emphasis> 5089ea1d6981SmrgfirstKey</emphasis> 5090ea1d6981Smrg and <emphasis> 5091ea1d6981SmrgnKeys</emphasis> 5092ea1d6981Smrg return values specify a range of keys which includes all keys for which names 5093ea1d6981Smrgare defined; any key that does not fall in the range specified by <emphasis> 5094ea1d6981SmrgfirstKey</emphasis> 5095ea1d6981Smrg and <emphasis> 5096ea1d6981SmrgnKeys</emphasis> 5097ea1d6981Smrg has the name <emphasis> 5098ea1d6981SmrgNullKeyName</emphasis> 5099ea1d6981Smrg. The list of key names in the <emphasis> 5100ea1d6981SmrgvalueList</emphasis> 5101ea1d6981Smrg has <emphasis> 5102ea1d6981SmrgnKeys</emphasis> 5103ea1d6981Smrg entries and specifies the names of the keys beginning at <emphasis> 5104ea1d6981SmrgfirstKey</emphasis> 5105ea1d6981Smrg. 5106ea1d6981Smrg</para> 5107ea1d6981Smrg 5108ea1d6981Smrg 5109ea1d6981Smrg<para> 5110ea1d6981SmrgIf key aliases are reported, the <emphasis> 5111ea1d6981SmrgnKeyAliases</emphasis> 5112ea1d6981Smrg return value specifies the total number of key aliases defined for the 5113ea1d6981Smrgkeyboard. The list of key aliases in <emphasis> 5114ea1d6981SmrgvalueList</emphasis> 5115ea1d6981Smrg has <emphasis> 5116ea1d6981SmrgnKeyAliases</emphasis> 5117ea1d6981Smrg entries, each of which reports an alias and the real name of the key to which 5118ea1d6981Smrgit corresponds. 5119ea1d6981Smrg</para> 5120ea1d6981Smrg 5121ea1d6981Smrg 5122ea1d6981Smrg<para> 5123ea1d6981SmrgIf radio group names are reported, the <emphasis> 5124ea1d6981SmrgnRadioGroups</emphasis> 5125ea1d6981Smrg return value specifies the number of radio groups on the keyboard for which 5126ea1d6981Smrgnames are defined. The list of radio group names in <emphasis> 5127ea1d6981SmrgvalueList</emphasis> 5128ea1d6981Smrg reports the names of each group and has <emphasis> 5129ea1d6981SmrgnRadioGroups</emphasis> 5130ea1d6981Smrg entries. 5131ea1d6981Smrg</para> 5132ea1d6981Smrg 5133ea1d6981Smrg 5134ea1d6981Smrg 5135ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 5136ea1d6981Smrg<?dbfo keep-together="always" ?> 5137ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 5138ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 5139ea1d6981Smrg <thead> 5140ea1d6981Smrg <row> 5141ea1d6981Smrg <entry role='protoname'>XkbSetNames</entry> 5142ea1d6981Smrg </row> 5143ea1d6981Smrg </thead> 5144ea1d6981Smrg <tbody> 5145ea1d6981Smrg <row> 5146ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 5147ea1d6981Smrg </row> 5148ea1d6981Smrg <row> 5149ea1d6981Smrg <entry role='protoargs'>which: KB_NAMEDETAILMASK</entry> 5150ea1d6981Smrg </row> 5151ea1d6981Smrg <row> 5152ea1d6981Smrg <entry role='protoname'> 5153ea1d6981SmrgvirtualMods: KB_VMODMASK</entry> 5154ea1d6981Smrg </row> 5155ea1d6981Smrg <row> 5156ea1d6981Smrg <entry role='protoname'> 5157ea1d6981SmrgfirstType, nTypes: CARD8</entry> 5158ea1d6981Smrg </row> 5159ea1d6981Smrg <row> 5160ea1d6981Smrg <entry role='protoname'> 5161ea1d6981SmrgfirstKTLevel, nKTLevels: CARD8</entry> 5162ea1d6981Smrg </row> 5163ea1d6981Smrg <row> 5164ea1d6981Smrg <entry role='protoname'> 5165ea1d6981SmrgtotalKTLevelNames: CARD16</entry> 5166ea1d6981Smrg </row> 5167ea1d6981Smrg <row> 5168ea1d6981Smrg <entry role='protoname'> 5169ea1d6981Smrgindicators: KB_INDICATORMASK</entry> 5170ea1d6981Smrg </row> 5171ea1d6981Smrg <row> 5172ea1d6981Smrg <entry role='protoname'> 5173ea1d6981SmrggroupNames: KB_GROUPMASK</entry> 5174ea1d6981Smrg </row> 5175ea1d6981Smrg <row> 5176ea1d6981Smrg <entry role='protoname'> 5177ea1d6981SmrgnRadioGroups: CARD8</entry> 5178ea1d6981Smrg </row> 5179ea1d6981Smrg <row> 5180ea1d6981Smrg <entry role='protoname'> 5181ea1d6981SmrgfirstKey: KEYCODE</entry> 5182ea1d6981Smrg </row> 5183ea1d6981Smrg <row> 5184ea1d6981Smrg <entry role='protoname'> 5185ea1d6981SmrgnKeys, nKeyAliases: CARD8</entry> 5186ea1d6981Smrg </row> 5187ea1d6981Smrg <row> 5188ea1d6981Smrg <entry role='protoname'> 5189ea1d6981SmrgvalueList: LISTofITEMs</entry> 5190ea1d6981Smrg </row> 5191ea1d6981Smrg 5192ea1d6981Smrg <row> 5193ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 5194ea1d6981SmrgKeyboard</emphasis> 5195ea1d6981Smrg, <emphasis> 5196ea1d6981SmrgAtom</emphasis> 5197ea1d6981Smrg, <emphasis> 5198ea1d6981SmrgValue</emphasis> 5199ea1d6981Smrg, <emphasis> 5200ea1d6981SmrgMatch</emphasis> 5201ea1d6981Smrg, <emphasis> 5202ea1d6981SmrgAlloc</emphasis> 5203ea1d6981Smrg</entry> 5204ea1d6981Smrg </row> 5205ea1d6981Smrg 5206ea1d6981Smrg </tbody> 5207ea1d6981Smrg </tgroup> 5208ea1d6981Smrg</informaltable> 5209ea1d6981Smrg 5210ea1d6981Smrg<para> 5211ea1d6981SmrgThis request changes the symbolic names for the requested components of the 5212ea1d6981Smrgkeyboard specified by <emphasis> 5213ea1d6981SmrgdeviceSpec</emphasis> 5214ea1d6981Smrg. The <emphasis> 5215ea1d6981Smrgwhich</emphasis> 5216ea1d6981Smrg field specifies the components for which one or more names are to be updated. 5217ea1d6981SmrgIf <emphasis> 5218ea1d6981SmrgdeviceSpec</emphasis> 5219ea1d6981Smrg does not specify a valid keyboard device, a <emphasis> 5220ea1d6981SmrgKeyboard</emphasis> 5221ea1d6981Smrg error results. If any undefined bits in <emphasis> 5222ea1d6981Smrgwhich</emphasis> 5223ea1d6981Smrg are non-zero, a <emphasis> 5224ea1d6981SmrgValue</emphasis> 5225ea1d6981Smrg error results. If any error (other than <emphasis> 5226ea1d6981SmrgAlloc</emphasis> 5227ea1d6981Smrg or <emphasis> 5228ea1d6981SmrgImplementation</emphasis> 5229ea1d6981Smrg) occurs, this request returns without modifying any names. 5230ea1d6981Smrg</para> 5231ea1d6981Smrg 5232ea1d6981Smrg 5233ea1d6981Smrg<para> 5234ea1d6981SmrgThe <emphasis> 5235ea1d6981Smrgwhich</emphasis> 5236ea1d6981Smrg and <emphasis> 5237ea1d6981SmrgvalueList</emphasis> 5238ea1d6981Smrg fields specify the components to be changed; the type of each <emphasis> 5239ea1d6981SmrgvalueList</emphasis> 5240ea1d6981Smrg entry, the order in which components appear in the <emphasis> 5241ea1d6981SmrgvalueList</emphasis> 5242ea1d6981Smrg when specified, and the correspondence between components in <emphasis> 5243ea1d6981Smrgwhich</emphasis> 5244ea1d6981Smrg and the entries in the <emphasis> 5245ea1d6981SmrgvalueList</emphasis> 5246ea1d6981Smrg are as specified for the <emphasis> 5247ea1d6981SmrgXkbGetNames</emphasis> 5248ea1d6981Smrg request. 5249ea1d6981Smrg</para> 5250ea1d6981Smrg 5251ea1d6981Smrg 5252ea1d6981Smrg<para> 5253ea1d6981SmrgIf keycodes, geometry, symbols, physical symbols, types or compatibility map 5254ea1d6981Smrgnames are to be changed, the corresponding entries in the <emphasis> 5255ea1d6981SmrgvalueList</emphasis> 5256ea1d6981Smrg must have the value <emphasis> 5257ea1d6981SmrgNone</emphasis> 5258ea1d6981Smrg or specify a valid ATOM, else an <emphasis> 5259ea1d6981SmrgAtom</emphasis> 5260ea1d6981Smrg error occurs. 5261ea1d6981Smrg</para> 5262ea1d6981Smrg 5263ea1d6981Smrg 5264ea1d6981Smrg<para> 5265ea1d6981SmrgIf key type names are to be changed, the <emphasis> 5266ea1d6981SmrgfirstType</emphasis> 5267ea1d6981Smrg and <emphasis> 5268ea1d6981SmrgnTypes</emphasis> 5269ea1d6981Smrg fields specify a range of types for which new names are supplied, and the list 5270ea1d6981Smrgof key type names in <emphasis> 5271ea1d6981SmrgvalueList</emphasis> 5272ea1d6981Smrg has <emphasis> 5273ea1d6981SmrgnTypes</emphasis> 5274ea1d6981Smrg elements. Names for types that fall outside of the range specified by 5275ea1d6981Smrg<emphasis> 5276ea1d6981SmrgfirstType</emphasis> 5277ea1d6981Smrg and <emphasis> 5278ea1d6981SmrgnTypes</emphasis> 5279ea1d6981Smrg are not affected. If this request specifies names for types that are not 5280ea1d6981Smrgpresent on the keyboard, a <emphasis> 5281ea1d6981SmrgMatch</emphasis> 5282ea1d6981Smrg error results. All of the type names in the <emphasis> 5283ea1d6981SmrgvalueList</emphasis> 5284ea1d6981Smrg must be valid ATOMs or have the value <emphasis> 5285ea1d6981SmrgNone</emphasis> 5286ea1d6981Smrg, or an <emphasis> 5287ea1d6981SmrgAtom</emphasis> 5288ea1d6981Smrg error results. 5289ea1d6981Smrg</para> 5290ea1d6981Smrg 5291ea1d6981Smrg 5292ea1d6981Smrg<para> 5293ea1d6981SmrgThe names of the first four keyboard types are specified by the XKB extension 5294ea1d6981Smrgand cannot be changed; including any of the canonical types in this request 5295ea1d6981Smrgcauses an <emphasis> 5296ea1d6981SmrgAccess</emphasis> 5297ea1d6981Smrg error, as does trying to assign the name reserved for a canonical type to one 5298ea1d6981Smrgof the other key types. 5299ea1d6981Smrg</para> 5300ea1d6981Smrg 5301ea1d6981Smrg 5302ea1d6981Smrg<para> 5303ea1d6981SmrgIf key type level names are to be changed, the <emphasis> 5304ea1d6981SmrgfirstKTLevel</emphasis> 5305ea1d6981Smrg and <emphasis> 5306ea1d6981SmrgnKTLevels</emphasis> 5307ea1d6981Smrg fields specify a range of key types for which new level names are supplied, 5308ea1d6981Smrgand the list of key type level names in the <emphasis> 5309ea1d6981SmrgvalueList</emphasis> 5310ea1d6981Smrg has two parts: The <emphasis> 5311ea1d6981Smrgcount</emphasis> 5312ea1d6981Smrg array has <emphasis> 5313ea1d6981SmrgnKTLevels</emphasis> 5314ea1d6981Smrg elements, each of which specifies the number of levels for which names are 5315ea1d6981Smrgsupplied on the corresponding key type; any levels for which no names are 5316ea1d6981Smrgspecified are assigned the name <emphasis> 5317ea1d6981SmrgNone</emphasis> 5318ea1d6981Smrg. The <emphasis> 5319ea1d6981Smrgnames</emphasis> 5320ea1d6981Smrg array has <emphasis> 5321ea1d6981SmrgtotalKTLevels</emphasis> 5322ea1d6981Smrg atoms and specifies the names of each type sequentially. The <emphasis> 5323ea1d6981SmrgtotalKTLevels</emphasis> 5324ea1d6981Smrg field must always equal the sum of all of the elements of the <emphasis> 5325ea1d6981Smrgcount</emphasis> 5326ea1d6981Smrg array. Level names for types that fall outside of the specified range are not 5327ea1d6981Smrgaffected. If this request specifies level names for types that are not present 5328ea1d6981Smrgon the keyboard, or if it specifies more names for a type than the type has 5329ea1d6981Smrglevels, a <emphasis> 5330ea1d6981SmrgMatch</emphasis> 5331ea1d6981Smrg error results. All specified type level names must be <emphasis> 5332ea1d6981SmrgNone</emphasis> 5333ea1d6981Smrg or a valid ATOM or an <emphasis> 5334ea1d6981SmrgAtom</emphasis> 5335ea1d6981Smrg error results. 5336ea1d6981Smrg</para> 5337ea1d6981Smrg 5338ea1d6981Smrg 5339ea1d6981Smrg<para> 5340ea1d6981SmrgIf indicator names are to be changed, the <emphasis> 5341ea1d6981Smrgindicators</emphasis> 5342ea1d6981Smrg mask specifies the indicators for which new names are specified; the names for 5343ea1d6981Smrgindicators not specified in <emphasis> 5344ea1d6981Smrgindicators</emphasis> 5345ea1d6981Smrg are not affected. The list of indicator names in <emphasis> 5346ea1d6981SmrgvalueList</emphasis> 5347ea1d6981Smrg contains the new names for the listed indicators, beginning with the 5348ea1d6981Smrglowest-numbered indicator for which a name is defined and proceeding to the 5349ea1d6981Smrghighest. All specified indicator names must be a valid ATOM or <emphasis> 5350ea1d6981SmrgNone</emphasis> 5351ea1d6981Smrg, or an <emphasis> 5352ea1d6981SmrgAtom</emphasis> 5353ea1d6981Smrg error results. 5354ea1d6981Smrg</para> 5355ea1d6981Smrg 5356ea1d6981Smrg 5357ea1d6981Smrg<para> 5358ea1d6981SmrgIf virtual modifier names are to be changed, the <emphasis> 5359ea1d6981SmrgvirtualMods</emphasis> 5360ea1d6981Smrg mask specifies the virtual modifiers for which new names are specified; names 5361ea1d6981Smrgfor any virtual modifiers not specified in <emphasis> 5362ea1d6981SmrgvirtualMods</emphasis> 5363ea1d6981Smrg are not affected. The list of virtual modifier names in <emphasis> 5364ea1d6981SmrgvalueList</emphasis> 5365ea1d6981Smrg contains the new names for the specified virtual modifiers, beginning with the 5366ea1d6981Smrglowest-numbered virtual modifier for which a name is defined and proceeding to 5367ea1d6981Smrgthe highest. All virtual modifier names must be valid ATOMs or <emphasis> 5368ea1d6981SmrgNone</emphasis> 5369ea1d6981Smrg, or an <emphasis> 5370ea1d6981SmrgAtom</emphasis> 5371ea1d6981Smrg error results. 5372ea1d6981Smrg</para> 5373ea1d6981Smrg 5374ea1d6981Smrg 5375ea1d6981Smrg<para> 5376ea1d6981SmrgIf group names are to be changed, the <emphasis> 5377ea1d6981SmrggroupNames</emphasis> 5378ea1d6981Smrg mask specifies the groups for which new names are specified; the name of any 5379ea1d6981Smrggroup not specified in <emphasis> 5380ea1d6981SmrggroupNames</emphasis> 5381ea1d6981Smrg is not changed. The list of group names in <emphasis> 5382ea1d6981SmrgvalueList</emphasis> 5383ea1d6981Smrg contains the new names for the listed groups, beginning with the 5384ea1d6981Smrglowest-numbered group for which a name is defined and proceeding to the 5385ea1d6981Smrghighest. All specified group names must be a valid ATOM or <emphasis> 5386ea1d6981SmrgNone</emphasis> 5387ea1d6981Smrg, or an <emphasis> 5388ea1d6981SmrgAtom</emphasis> 5389ea1d6981Smrg error results. 5390ea1d6981Smrg</para> 5391ea1d6981Smrg 5392ea1d6981Smrg 5393ea1d6981Smrg<para> 5394ea1d6981SmrgIf key names are to be changed, the <emphasis> 5395ea1d6981SmrgfirstKey</emphasis> 5396ea1d6981Smrg and <emphasis> 5397ea1d6981SmrgnKeys</emphasis> 5398ea1d6981Smrg fields specify a range of keys for which new names are defined; the name of 5399ea1d6981Smrgany key that does not fall in the range specified by <emphasis> 5400ea1d6981SmrgfirstKey</emphasis> 5401ea1d6981Smrg and <emphasis> 5402ea1d6981SmrgnKeys</emphasis> 5403ea1d6981Smrg is not changed. The list of key names in the <emphasis> 5404ea1d6981SmrgvalueList</emphasis> 5405ea1d6981Smrg has <emphasis> 5406ea1d6981SmrgnKeys</emphasis> 5407ea1d6981Smrg entries and specifies the names of the keys beginning at <emphasis> 5408ea1d6981SmrgfirstKey</emphasis> 5409ea1d6981Smrg. 5410ea1d6981Smrg</para> 5411ea1d6981Smrg 5412ea1d6981Smrg 5413ea1d6981Smrg<para> 5414ea1d6981SmrgIf key aliases are to be changed, the <emphasis> 5415ea1d6981SmrgnKeyAliases</emphasis> 5416ea1d6981Smrg field specifies the length of a new list of key aliases for the keyboard. The 5417ea1d6981Smrglist of key aliases can only be replaced in its entirety; it cannot be 5418ea1d6981Smrgreplaced. The list of key aliases in <emphasis> 5419ea1d6981SmrgvalueList</emphasis> 5420ea1d6981Smrg has <emphasis> 5421ea1d6981SmrgnKeyAliases</emphasis> 5422ea1d6981Smrg entries, each of which reports an alias and the real name of the key to which 5423ea1d6981Smrgit corresponds. 5424ea1d6981Smrg</para> 5425ea1d6981Smrg 5426ea1d6981Smrg 5427ea1d6981Smrg<para> 5428ea1d6981SmrgXKB does not check key names or aliases for consistency and validity, so 5429ea1d6981Smrgapplications should take care not to assign duplicate names or aliases 5430ea1d6981Smrg</para> 5431ea1d6981Smrg 5432ea1d6981Smrg 5433ea1d6981Smrg<para> 5434ea1d6981SmrgIf radio group names are to be changed, the <emphasis> 5435ea1d6981SmrgnRadioGroups</emphasis> 5436ea1d6981Smrg field specifies the length of a new list of radio group names for the 5437ea1d6981Smrgkeyboard. There is no way to edit the list of radio group names; it can only be 5438ea1d6981Smrgreplaced in its entirety. The list of radio group names in <emphasis> 5439ea1d6981SmrgvalueList</emphasis> 5440ea1d6981Smrg reports the names of each group and has <emphasis> 5441ea1d6981SmrgnRadioGroups</emphasis> 5442ea1d6981Smrg entries. If the list of radio group names specifies names for more radio 5443ea1d6981Smrggroups than XKB allows (32), a <emphasis> 5444ea1d6981SmrgMatch</emphasis> 5445ea1d6981Smrg error results. All specified radio group names must be valid ATOMs or have the 5446ea1d6981Smrgvalue <emphasis> 5447ea1d6981SmrgNone</emphasis> 5448ea1d6981Smrg, or an <emphasis> 5449ea1d6981SmrgAtom</emphasis> 5450ea1d6981Smrg error results. 5451ea1d6981Smrg</para> 5452ea1d6981Smrg 5453ea1d6981Smrg 5454ea1d6981Smrg</sect2> 5455ea1d6981Smrg<sect2 id='Querying_and_Changing_Keyboard_Geometry'> 5456ea1d6981Smrg<title>Querying and Changing Keyboard Geometry</title> 5457ea1d6981Smrg 5458ea1d6981Smrg 5459ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 5460ea1d6981Smrg<?dbfo keep-together="always" ?> 5461ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 5462ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 5463ea1d6981Smrg <thead> 5464ea1d6981Smrg <row> 5465ea1d6981Smrg <entry role='protoname'>XkbGetGeometry</entry> 5466ea1d6981Smrg </row> 5467ea1d6981Smrg </thead> 5468ea1d6981Smrg <tbody> 5469ea1d6981Smrg <row> 5470ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC 5471ea1d6981Smrg </entry> 5472ea1d6981Smrg </row> 5473ea1d6981Smrg <row> 5474ea1d6981Smrg <entry role='protoname'> 5475ea1d6981Smrgname: ATOM</entry> 5476ea1d6981Smrg </row> 5477ea1d6981Smrg <row> 5478ea1d6981Smrg <entry role='protoreply'> 5479ea1d6981SmrgdeviceID: CARD8 5480ea1d6981Smrg </entry> 5481ea1d6981Smrg </row> 5482ea1d6981Smrg <row> 5483ea1d6981Smrg <entry role='protoname'> 5484ea1d6981Smrgname: ATOM 5485ea1d6981Smrg </entry> 5486ea1d6981Smrg </row> 5487ea1d6981Smrg <row> 5488ea1d6981Smrg <entry role='protoname'> 5489ea1d6981Smrgfound: BOOL 5490ea1d6981Smrg </entry> 5491ea1d6981Smrg </row> 5492ea1d6981Smrg <row> 5493ea1d6981Smrg <entry role='protoname'> 5494ea1d6981SmrgwidthMM, heightMM: CARD16 5495ea1d6981Smrg </entry> 5496ea1d6981Smrg </row> 5497ea1d6981Smrg <row> 5498ea1d6981Smrg <entry role='protoname'> 5499ea1d6981SmrgbaseColorNdx, labelColorNdx: CARD8 5500ea1d6981Smrg </entry> 5501ea1d6981Smrg </row> 5502ea1d6981Smrg <row> 5503ea1d6981Smrg <entry role='protoname'> 5504ea1d6981Smrgproperties: LISTofKB_PROPERTY 5505ea1d6981Smrg </entry> 5506ea1d6981Smrg </row> 5507ea1d6981Smrg <row> 5508ea1d6981Smrg <entry role='protoname'> 5509ea1d6981Smrgcolors: LISTofSTRING8 5510ea1d6981Smrg </entry> 5511ea1d6981Smrg </row> 5512ea1d6981Smrg <row> 5513ea1d6981Smrg <entry role='protoname'> 5514ea1d6981Smrgshapes: LISTofKB_SHAPE 5515ea1d6981Smrg </entry> 5516ea1d6981Smrg </row> 5517ea1d6981Smrg <row> 5518ea1d6981Smrg <entry role='protoname'> 5519ea1d6981Smrgsections: LISTofKB_SECTION 5520ea1d6981Smrg </entry> 5521ea1d6981Smrg </row> 5522ea1d6981Smrg <row> 5523ea1d6981Smrg <entry role='protoname'> 5524ea1d6981Smrgdoodads: LISTofKB_DOODAD 5525ea1d6981Smrg </entry> 5526ea1d6981Smrg </row> 5527ea1d6981Smrg <row> 5528ea1d6981Smrg <entry role='protoname'> 5529ea1d6981SmrgkeyAliases: LISTofKB_KEYALIAS</entry> 5530ea1d6981Smrg </row> 5531ea1d6981Smrg <row> 5532ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 5533ea1d6981SmrgKeyboard</emphasis> 5534ea1d6981Smrg</entry> 5535ea1d6981Smrg </row> 5536ea1d6981Smrg </tbody> 5537ea1d6981Smrg </tgroup> 5538ea1d6981Smrg</informaltable> 5539ea1d6981Smrg 5540ea1d6981Smrg<para> 5541ea1d6981SmrgThis request returns a description of the physical layout of a keyboard. If the 5542ea1d6981Smrg<emphasis> 5543ea1d6981Smrgname</emphasis> 5544ea1d6981Smrg field has the value <emphasis> 5545ea1d6981SmrgNone</emphasis> 5546ea1d6981Smrg, or if name is identical to the name of the geometry for the keyboard 5547ea1d6981Smrgspecified by <emphasis> 5548ea1d6981SmrgdeviceSpec</emphasis> 5549ea1d6981Smrg, this request returns the geometry of the keyboard specified by <emphasis> 5550ea1d6981SmrgdeviceSpec</emphasis> 5551ea1d6981Smrg; otherwise, if <emphasis> 5552ea1d6981Smrgname</emphasis> 5553ea1d6981Smrg is a valid atom other than <emphasis> 5554ea1d6981SmrgNone</emphasis> 5555ea1d6981Smrg, the server returns the keyboard geometry description with that name in the 5556ea1d6981Smrgserver database of keyboard components (see <link linkend='The_Server_Database_of_Keyboard_Components'>The Server Database of Keyboard 5557ea1d6981SmrgComponents</link>) if one exists. If <emphasis> 5558ea1d6981SmrgdeviceSpec</emphasis> 5559ea1d6981Smrg does not specify a valid keyboard device, a <emphasis> 5560ea1d6981SmrgKeyboard</emphasis> 5561ea1d6981Smrg error results. If <emphasis> 5562ea1d6981Smrgname</emphasis> 5563ea1d6981Smrg has a value other than <emphasis> 5564ea1d6981SmrgNone</emphasis> 5565ea1d6981Smrg or a valid ATOM, an <emphasis> 5566ea1d6981SmrgAtom</emphasis> 5567ea1d6981Smrg error results. 5568ea1d6981Smrg</para> 5569ea1d6981Smrg 5570ea1d6981Smrg 5571ea1d6981Smrg<para> 5572ea1d6981SmrgOn successful return, the <emphasis> 5573ea1d6981SmrgdeviceID</emphasis> 5574ea1d6981Smrg field reports the X Input extension identifier of the keyboard device 5575ea1d6981Smrgspecified in the request, or <emphasis> 5576ea1d6981Smrg0</emphasis> 5577ea1d6981Smrg if the server does not support the input extension. 5578ea1d6981Smrg</para> 5579ea1d6981Smrg 5580ea1d6981Smrg 5581ea1d6981Smrg<para> 5582ea1d6981SmrgThe <emphasis> 5583ea1d6981Smrgfound</emphasis> 5584ea1d6981Smrg return value reports whether the requested geometry was available. If 5585ea1d6981Smrg<emphasis> 5586ea1d6981Smrgfound</emphasis> 5587ea1d6981Smrg is <emphasis> 5588ea1d6981SmrgFalse</emphasis> 5589ea1d6981Smrg, no matching geometry was found and the remaining fields in the request reply 5590ea1d6981Smrgare undefined; if <emphasis> 5591ea1d6981Smrgfound</emphasis> 5592ea1d6981Smrg is <emphasis> 5593ea1d6981SmrgTrue</emphasis> 5594ea1d6981Smrg, the remaining fields of the reply describe the requested keyboard geometry. 5595ea1d6981SmrgThe interpretation of the components that make up a keyboard geometry is 5596ea1d6981Smrgdescribed in detail in <link linkend='Keyboard_Geometry'>Keyboard 5597ea1d6981SmrgGeometry</link> 5598ea1d6981Smrg</para> 5599ea1d6981Smrg 5600ea1d6981Smrg 5601ea1d6981Smrg 5602ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 5603ea1d6981Smrg<?dbfo keep-together="always" ?> 5604ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 5605ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 5606ea1d6981Smrg <thead> 5607ea1d6981Smrg <row> 5608ea1d6981Smrg <entry role='protoname'>XkbSetGeometry</entry> 5609ea1d6981Smrg </row> 5610ea1d6981Smrg </thead> 5611ea1d6981Smrg <tbody> 5612ea1d6981Smrg <row> 5613ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 5614ea1d6981Smrg </row> 5615ea1d6981Smrg <row> 5616ea1d6981Smrg <entry role='protoname'> 5617ea1d6981Smrgname: ATOM</entry> 5618ea1d6981Smrg </row> 5619ea1d6981Smrg <row> 5620ea1d6981Smrg <entry role='protoname'> 5621ea1d6981SmrgwidthMM, heightMM, CARD16</entry> 5622ea1d6981Smrg </row> 5623ea1d6981Smrg <row> 5624ea1d6981Smrg <entry role='protoname'> 5625ea1d6981SmrgbaseColorNdx, labelColorNdx: CARD8</entry> 5626ea1d6981Smrg </row> 5627ea1d6981Smrg <row> 5628ea1d6981Smrg <entry role='protoname'> 5629ea1d6981Smrgshapes: LISTofKB_SHAPE</entry> 5630ea1d6981Smrg </row> 5631ea1d6981Smrg <row> 5632ea1d6981Smrg <entry role='protoname'> 5633ea1d6981Smrgsections: LISTofKB_SECTION</entry> 5634ea1d6981Smrg </row> 5635ea1d6981Smrg <row> 5636ea1d6981Smrg <entry role='protoname'> 5637ea1d6981Smrgproperties: LISTofKB_PROPERTY</entry> 5638ea1d6981Smrg </row> 5639ea1d6981Smrg <row> 5640ea1d6981Smrg <entry role='protoname'> 5641ea1d6981Smrgcolors: LISTofSTRING8</entry> 5642ea1d6981Smrg </row> 5643ea1d6981Smrg <row> 5644ea1d6981Smrg <entry role='protoname'> 5645ea1d6981Smrgdoodads: LISTofKB_DOODAD</entry> 5646ea1d6981Smrg </row> 5647ea1d6981Smrg <row> 5648ea1d6981Smrg <entry role='protoname'> 5649ea1d6981SmrgkeyAliases: LISTofKB_KEYALIAS</entry> 5650ea1d6981Smrg </row> 5651ea1d6981Smrg 5652ea1d6981Smrg <row> 5653ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 5654ea1d6981SmrgKeyboard</emphasis> 5655ea1d6981Smrg, <emphasis> 5656ea1d6981SmrgAtom</emphasis> 5657ea1d6981Smrg, <emphasis> 5658ea1d6981SmrgValue</emphasis> 5659ea1d6981Smrg</entry> 5660ea1d6981Smrg </row> 5661ea1d6981Smrg 5662ea1d6981Smrg </tbody> 5663ea1d6981Smrg </tgroup> 5664ea1d6981Smrg</informaltable> 5665ea1d6981Smrg 5666ea1d6981Smrg<para> 5667ea1d6981SmrgThis request changes the reported description of the geometry for the keyboard 5668ea1d6981Smrgspecified by <emphasis> 5669ea1d6981SmrgdeviceSpec</emphasis> 5670ea1d6981Smrg. If deviceSpec does not specify a valid keyboard device, a <emphasis> 5671ea1d6981SmrgKeyboard</emphasis> 5672ea1d6981Smrg error results. 5673ea1d6981Smrg</para> 5674ea1d6981Smrg 5675ea1d6981Smrg 5676ea1d6981Smrg<para> 5677ea1d6981SmrgThe <emphasis> 5678ea1d6981Smrgname</emphasis> 5679ea1d6981Smrg field specifies the name of the new keyboard geometry and must be a valid ATOM 5680ea1d6981Smrgor an <emphasis> 5681ea1d6981SmrgAtom</emphasis> 5682ea1d6981Smrg error results. The new geometry is not added to the server database of 5683ea1d6981Smrgkeyboard components, but it can be retrieved using the <emphasis> 5684ea1d6981SmrgXkbGetGeometry</emphasis> 5685ea1d6981Smrg request for as long as it is bound to the keyboard. The keyboard geometry 5686ea1d6981Smrgsymbolic name is also updated from the name field, and an <emphasis> 5687ea1d6981SmrgXkbNamesNotify</emphasis> 5688ea1d6981Smrg event is generated, if necessary. 5689ea1d6981Smrg</para> 5690ea1d6981Smrg 5691ea1d6981Smrg 5692ea1d6981Smrg<para> 5693ea1d6981SmrgThe list of <emphasis> 5694ea1d6981Smrgcolors</emphasis> 5695ea1d6981Smrg must include at least two definitions, or a <emphasis> 5696ea1d6981SmrgValue</emphasis> 5697ea1d6981Smrg error results. All color definitions in the geometry must specify a legal 5698ea1d6981Smrgcolor (i.e. must specify a valid index for one of the entries of the <emphasis> 5699ea1d6981Smrgcolors</emphasis> 5700ea1d6981Smrg list) or a <emphasis> 5701ea1d6981SmrgMatch</emphasis> 5702ea1d6981Smrg error results. The <emphasis> 5703ea1d6981SmrgbaseColorNdx</emphasis> 5704ea1d6981Smrg and the <emphasis> 5705ea1d6981SmrglabelColorNdx</emphasis> 5706ea1d6981Smrg must be different or a <emphasis> 5707ea1d6981SmrgMatch</emphasis> 5708ea1d6981Smrg error results. 5709ea1d6981Smrg</para> 5710ea1d6981Smrg 5711ea1d6981Smrg 5712ea1d6981Smrg<para> 5713ea1d6981SmrgThe list of <emphasis> 5714ea1d6981Smrgshapes</emphasis> 5715ea1d6981Smrg must include at least one shape definition, or a <emphasis> 5716ea1d6981SmrgValue</emphasis> 5717ea1d6981Smrg error results. If any two shapes have the same name, a <emphasis> 5718ea1d6981SmrgMatch</emphasis> 5719ea1d6981Smrg error result. All doodads and keys which specify shape must specify a valid 5720ea1d6981Smrgindex for one of the elements of the <emphasis> 5721ea1d6981Smrgshapes</emphasis> 5722ea1d6981Smrg list, or a <emphasis> 5723ea1d6981SmrgMatch</emphasis> 5724ea1d6981Smrg error results. 5725ea1d6981Smrg</para> 5726ea1d6981Smrg 5727ea1d6981Smrg 5728ea1d6981Smrg<para> 5729ea1d6981SmrgAll section, shape and doodad names must be valid ATOMs or an <emphasis> 5730ea1d6981SmrgAtom</emphasis> 5731ea1d6981Smrg error results; the constant <emphasis> 5732ea1d6981SmrgNone</emphasis> 5733ea1d6981Smrg is not permitted for any of these components. 5734ea1d6981Smrg</para> 5735ea1d6981Smrg 5736ea1d6981Smrg 5737ea1d6981Smrg<para> 5738ea1d6981SmrgAll doodads must be of a known type; XKB does not support "private" doodad 5739ea1d6981Smrgtypes. 5740ea1d6981Smrg</para> 5741ea1d6981Smrg 5742ea1d6981Smrg 5743ea1d6981Smrg<para> 5744ea1d6981SmrgIf, after rotation, any keys or doodads fall outside of the bounding box for a 5745ea1d6981Smrgsection, the bounding box is automatically adjusted to the minimum size which 5746ea1d6981Smrgencloses all of its components. 5747ea1d6981Smrg</para> 5748ea1d6981Smrg 5749ea1d6981Smrg 5750ea1d6981Smrg<para> 5751ea1d6981SmrgIf, after adjustment and rotation, the bounding box of any section or doodad 5752ea1d6981Smrgextends below zero on either the X or Y axes, the entire geometry is translated 5753ea1d6981Smrgso that the minimum extent along either axis is zero. 5754ea1d6981Smrg</para> 5755ea1d6981Smrg 5756ea1d6981Smrg 5757ea1d6981Smrg<para> 5758ea1d6981SmrgIf, after rotation and translation, any keyboard components fall outside of the 5759ea1d6981Smrgrectangle specified by <emphasis> 5760ea1d6981SmrgwidthMM</emphasis> 5761ea1d6981Smrg and <emphasis> 5762ea1d6981SmrgheightMM</emphasis> 5763ea1d6981Smrg, the keyboard dimensions are automatically resized to the minimum bounding box 5764ea1d6981Smrgthat surrounds all components. Otherwise, the width and height of the keyboard 5765ea1d6981Smrgare left as specified. 5766ea1d6981Smrg</para> 5767ea1d6981Smrg 5768ea1d6981Smrg 5769ea1d6981Smrg<para> 5770ea1d6981SmrgThe <emphasis> 5771ea1d6981Smrgunder</emphasis> 5772ea1d6981Smrg field of any overlay key definitions must specify a key that is in the section 5773ea1d6981Smrgthat contains the overlay key, or a <emphasis> 5774ea1d6981SmrgMatch</emphasis> 5775ea1d6981Smrg error results. This request does not check the value of the <emphasis> 5776ea1d6981Smrgover</emphasis> 5777ea1d6981Smrg field of an overlay key definition, so applications must be careful to avoid 5778ea1d6981Smrgconflicts with actual keys. 5779ea1d6981Smrg</para> 5780ea1d6981Smrg 5781ea1d6981Smrg 5782ea1d6981Smrg<para> 5783ea1d6981SmrgThis request does not verify that key names or aliases are unique. It also does 5784ea1d6981Smrgnot verify that all key names specified in the geometry are bound to some 5785ea1d6981Smrgkeycode or that all keys that are named in the keyboard definition are also 5786ea1d6981Smrgavailable in the geometry. Applications should make sure that keyboard geometry 5787ea1d6981Smrghas no internal conflicts and is consistent with the other components of the 5788ea1d6981Smrgkeyboard definition, but XKB does not check for or guarantee it. 5789ea1d6981Smrg</para> 5790ea1d6981Smrg 5791ea1d6981Smrg 5792ea1d6981Smrg</sect2> 5793ea1d6981Smrg<sect2 id='Querying_and_Changing_Per_Client_Flags'> 5794ea1d6981Smrg<title>Querying and Changing Per-Client Flags</title> 5795ea1d6981Smrg 5796ea1d6981Smrg 5797ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 5798ea1d6981Smrg<?dbfo keep-together="always" ?> 5799ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 5800ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 5801ea1d6981Smrg <thead> 5802ea1d6981Smrg <row> 5803ea1d6981Smrg <entry role='protoname'>XkbPerClientFlags</entry> 5804ea1d6981Smrg </row> 5805ea1d6981Smrg </thead> 5806ea1d6981Smrg <tbody> 5807ea1d6981Smrg <row> 5808ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 5809ea1d6981Smrg </row> 5810ea1d6981Smrg <row> 5811ea1d6981Smrg <entry role='protoname'> 5812ea1d6981Smrgchange: KB_PCFMASK</entry> 5813ea1d6981Smrg </row> 5814ea1d6981Smrg <row> 5815ea1d6981Smrg <entry role='protoname'> 5816ea1d6981Smrgvalue: KB_PCFMASK</entry> 5817ea1d6981Smrg </row> 5818ea1d6981Smrg <row> 5819ea1d6981Smrg <entry role='protoname'> 5820ea1d6981SmrgctrlsToChange: KB_BOOLCTRLMASK</entry> 5821ea1d6981Smrg </row> 5822ea1d6981Smrg <row> 5823ea1d6981Smrg <entry role='protoname'> 5824ea1d6981SmrgautoCtrls: KB_BOOLCTRLMASK</entry> 5825ea1d6981Smrg </row> 5826ea1d6981Smrg <row> 5827ea1d6981Smrg <entry role='protoname'> 5828ea1d6981SmrgautoCtrlValues: KB_BOOLCTRLMASK</entry> 5829ea1d6981Smrg </row> 5830ea1d6981Smrg <row> 5831ea1d6981Smrg <entry role='protoreply'> 5832ea1d6981SmrgdeviceID: CARD8 5833ea1d6981Smrgsupported: KB_PCFMASK 5834ea1d6981Smrgvalue: KB_PCFMASK 5835ea1d6981SmrgautoCtrls: KB_BOOLCTRLMASK 5836ea1d6981SmrgautoCtrlValues: KB_BOOLCTRLMASK 5837ea1d6981Smrgwhere: KB_PCFMASK:</entry> 5838ea1d6981Smrg </row> 5839ea1d6981Smrg 5840ea1d6981Smrg <row> 5841ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 5842ea1d6981SmrgKeyboard</emphasis> 5843ea1d6981Smrg, <emphasis> 5844ea1d6981SmrgValue</emphasis> 5845ea1d6981Smrg, <emphasis> 5846ea1d6981SmrgMatch</emphasis> 5847ea1d6981Smrg, <emphasis> 5848ea1d6981SmrgAlloc</emphasis> 5849ea1d6981Smrg</entry> 5850ea1d6981Smrg </row> 5851ea1d6981Smrg 5852ea1d6981Smrg </tbody> 5853ea1d6981Smrg </tgroup> 5854ea1d6981Smrg</informaltable> 5855ea1d6981Smrg 5856ea1d6981Smrg<para> 5857ea1d6981SmrgChanges the client specific flags for the keyboard specified by <emphasis> 5858ea1d6981SmrgdeviceSpec</emphasis> 5859ea1d6981Smrg. Reports a <emphasis> 5860ea1d6981SmrgKeyboard</emphasis> 5861ea1d6981Smrg error if <emphasis> 5862ea1d6981SmrgdeviceSpec</emphasis> 5863ea1d6981Smrg does not specify a valid keyboard device. 5864ea1d6981Smrg</para> 5865ea1d6981Smrg 5866ea1d6981Smrg 5867ea1d6981Smrg<para> 5868ea1d6981SmrgAny flags specified in <emphasis> 5869ea1d6981Smrgchange</emphasis> 5870ea1d6981Smrg are set to the corresponding values in <emphasis> 5871ea1d6981Smrgvalue</emphasis> 5872ea1d6981Smrg, provided that the server supports the requested control. Legal 5873ea1d6981Smrgper-client-flags are: 5874ea1d6981Smrg</para> 5875ea1d6981Smrg 5876ea1d6981Smrg<informaltable frame='topbot'> 5877ea1d6981Smrg<?dbfo keep-together="always" ?> 5878ea1d6981Smrg<tgroup cols='2' align='left' colsep='0' rowsep='0'> 5879ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 5880ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 5881ea1d6981Smrg<thead> 5882ea1d6981Smrg <row rowsep='1'> 5883ea1d6981Smrg <entry>Flag…</entry> 5884ea1d6981Smrg <entry>Described in…</entry> 5885ea1d6981Smrg </row> 5886ea1d6981Smrg</thead> 5887ea1d6981Smrg<tbody> 5888ea1d6981Smrg <row> 5889ea1d6981Smrg <entry><emphasis> 5890ea1d6981SmrgXkbPCF_DetectableAutorepeat</emphasis> 5891ea1d6981Smrg</entry> 5892ea1d6981Smrg <entry><link linkend='Detectable_Autorepeat'>Detectable 5893ea1d6981SmrgAutorepeat</link></entry> 5894ea1d6981Smrg </row> 5895ea1d6981Smrg <row> 5896ea1d6981Smrg <entry><emphasis> 5897ea1d6981SmrgXkbPCF_GrabsUseXKBStateMask</emphasis> 5898ea1d6981Smrg</entry> 5899ea1d6981Smrg <entry><link linkend='Setting_a_Passive_Grab_for_an_XKB_State'>Setting a Passive Grab 5900ea1d6981Smrgfor an XKB State</link></entry> 5901ea1d6981Smrg </row> 5902ea1d6981Smrg <row> 5903ea1d6981Smrg <entry><emphasis> 5904ea1d6981SmrgXkbPCF_AutoResetControlsMask</emphasis> 5905ea1d6981Smrg</entry> 5906ea1d6981Smrg <entry><link linkend='Automatic_Reset_of_Boolean_Controls'>Automatic Reset of 5907ea1d6981SmrgBoolean Controls</link></entry> 5908ea1d6981Smrg </row> 5909ea1d6981Smrg <row> 5910ea1d6981Smrg <entry><emphasis> 5911ea1d6981SmrgXkbPCF_LookupStateWhenGrabbed</emphasis> 5912ea1d6981Smrg</entry> 5913ea1d6981Smrg <entry><link linkend='Effects_of_XKB_on_Core_Protocol_Events'>Effects of XKB on Core 5914ea1d6981SmrgProtocol Events</link></entry> 5915ea1d6981Smrg </row> 5916ea1d6981Smrg <row> 5917ea1d6981Smrg <entry><emphasis> 5918ea1d6981SmrgXkbPCF_SendEventUsesXKBState</emphasis> 5919ea1d6981Smrg</entry> 5920ea1d6981Smrg <entry><link linkend='Sending_Events_to_Clients'>Sending Events to 5921ea1d6981SmrgClients</link></entry> 5922ea1d6981Smrg </row> 5923ea1d6981Smrg</tbody> 5924ea1d6981Smrg</tgroup> 5925ea1d6981Smrg</informaltable> 5926ea1d6981Smrg 5927ea1d6981Smrg<para> 5928ea1d6981SmrgIf <emphasis> 5929ea1d6981SmrgPCF_AutoResetControls</emphasis> 5930ea1d6981Smrg is set in both <emphasis> 5931ea1d6981Smrgchange</emphasis> 5932ea1d6981Smrg and <emphasis> 5933ea1d6981Smrgvalue</emphasis> 5934ea1d6981Smrg, the client’s mask of controls to be changed is updated from <emphasis> 5935ea1d6981SmrgctrlsToChange</emphasis> 5936ea1d6981Smrg, <emphasis> 5937ea1d6981SmrgautoCtrls</emphasis> 5938ea1d6981Smrg, and <emphasis> 5939ea1d6981SmrgautoCtrlValues</emphasis> 5940ea1d6981Smrg. Any controls specified in <emphasis> 5941ea1d6981SmrgctrlsToChange</emphasis> 5942ea1d6981Smrg are modified in the auto-reset controls mask for the client; the corresponding 5943ea1d6981Smrgbits from the <emphasis> 5944ea1d6981SmrgautoCtrls</emphasis> 5945ea1d6981Smrg field are copied into the auto-reset controls mask and the corresponding bits 5946ea1d6981Smrgfrom <emphasis> 5947ea1d6981SmrgautoCtrlValues</emphasis> 5948ea1d6981Smrg are copied into the auto-reset controls state values. If any controls are 5949ea1d6981Smrgspecified in <emphasis> 5950ea1d6981SmrgautoCtrlValues</emphasis> 5951ea1d6981Smrg but not in <emphasis> 5952ea1d6981SmrgautoCtrls</emphasis> 5953ea1d6981Smrg, a <emphasis> 5954ea1d6981SmrgMatch</emphasis> 5955ea1d6981Smrg error results. If any controls are specified in <emphasis> 5956ea1d6981SmrgautoCtrls</emphasis> 5957ea1d6981Smrg but not in <emphasis> 5958ea1d6981SmrgctrlsToChange</emphasis> 5959ea1d6981Smrg, a <emphasis> 5960ea1d6981SmrgMatch</emphasis> 5961ea1d6981Smrg error results. 5962ea1d6981Smrg</para> 5963ea1d6981Smrg 5964ea1d6981Smrg 5965ea1d6981Smrg<para> 5966ea1d6981SmrgIf <emphasis> 5967ea1d6981SmrgPCF_AutoResetControls</emphasis> 5968ea1d6981Smrg is set in <emphasis> 5969ea1d6981Smrgchange</emphasis> 5970ea1d6981Smrg but not in <emphasis> 5971ea1d6981Smrgvalue</emphasis> 5972ea1d6981Smrg, the client’s mask of controls to be changed is reset to all zeroes (i.e. 5973ea1d6981Smrgthe client does not change any controls when it exits). 5974ea1d6981Smrg</para> 5975ea1d6981Smrg 5976ea1d6981Smrg 5977ea1d6981Smrg<para> 5978ea1d6981SmrgThis request reports a <emphasis> 5979ea1d6981SmrgMatch</emphasis> 5980ea1d6981Smrg error if a bit is set in any of the value masks but not in the control mask 5981ea1d6981Smrgthat governs it or a <emphasis> 5982ea1d6981SmrgValue</emphasis> 5983ea1d6981Smrg error if any undefined bits are set in any of the masks. 5984ea1d6981Smrg</para> 5985ea1d6981Smrg 5986ea1d6981Smrg 5987ea1d6981Smrg<para> 5988ea1d6981SmrgOn successful return, the <emphasis> 5989ea1d6981SmrgdeviceID</emphasis> 5990ea1d6981Smrg field reports the X Input extension identifier of the keyboard, or <emphasis> 5991ea1d6981Smrg0</emphasis> 5992ea1d6981Smrg if the server does not support the X Input Extension. 5993ea1d6981Smrg</para> 5994ea1d6981Smrg 5995ea1d6981Smrg 5996ea1d6981Smrg<para> 5997ea1d6981SmrgThe <emphasis> 5998ea1d6981Smrgsupported</emphasis> 5999ea1d6981Smrg return value reports the set of per-client flags that are supported by the 6000ea1d6981Smrgserver; in this version of XKB, only the <emphasis> 6001ea1d6981SmrgXkbPCF_DetectableAutorepeat</emphasis> 6002ea1d6981Smrg per-client flag is optional; all other per-client flags must be supported. 6003ea1d6981Smrg</para> 6004ea1d6981Smrg 6005ea1d6981Smrg 6006ea1d6981Smrg<para> 6007ea1d6981SmrgThe <emphasis> 6008ea1d6981Smrgvalue</emphasis> 6009ea1d6981Smrg return value reports the current settings of all per-client flags for the 6010ea1d6981Smrgspecified keyboard. The <emphasis> 6011ea1d6981SmrgautoCtrls</emphasis> 6012ea1d6981Smrg return value reports the current set of controls to be reset when the client 6013ea1d6981Smrgexits, while the <emphasis> 6014ea1d6981SmrgautoCtrlValues</emphasis> 6015ea1d6981Smrg return value reports the state to which they should be set. 6016ea1d6981Smrg</para> 6017ea1d6981Smrg 6018ea1d6981Smrg 6019ea1d6981Smrg</sect2> 6020ea1d6981Smrg<sect2 id='Using_the_Servers_Database_of_Keyboard_Components'> 6021ea1d6981Smrg<title>Using the Server’s Database of Keyboard Components</title> 6022ea1d6981Smrg 6023ea1d6981Smrg 6024ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 6025ea1d6981Smrg<?dbfo keep-together="always" ?> 6026ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 6027ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 6028ea1d6981Smrg <thead> 6029ea1d6981Smrg <row> 6030ea1d6981Smrg <entry role='protoname'>XkbListComponents</entry> 6031ea1d6981Smrg </row> 6032ea1d6981Smrg </thead> 6033ea1d6981Smrg <tbody> 6034ea1d6981Smrg <row> 6035ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 6036ea1d6981Smrg </row> 6037ea1d6981Smrg <row> 6038ea1d6981Smrg <entry role='protoname'> 6039ea1d6981SmrgmaxNames: CARD16</entry> 6040ea1d6981Smrg </row> 6041ea1d6981Smrg <row> 6042ea1d6981Smrg <entry role='protoname'> 6043ea1d6981SmrgkeymapsSpec: STRING8</entry> 6044ea1d6981Smrg </row> 6045ea1d6981Smrg <row> 6046ea1d6981Smrg <entry role='protoname'> 6047ea1d6981SmrgkeycodesSpec: STRING8</entry> 6048ea1d6981Smrg </row> 6049ea1d6981Smrg <row> 6050ea1d6981Smrg <entry role='protoname'> 6051ea1d6981SmrgtypesSpec: STRING8</entry> 6052ea1d6981Smrg </row> 6053ea1d6981Smrg <row> 6054ea1d6981Smrg <entry role='protoname'> 6055ea1d6981SmrgcompatMapSpec: STRING8</entry> 6056ea1d6981Smrg </row> 6057ea1d6981Smrg <row> 6058ea1d6981Smrg <entry role='protoname'> 6059ea1d6981SmrgsymbolsSpec: STRING8</entry> 6060ea1d6981Smrg </row> 6061ea1d6981Smrg <row> 6062ea1d6981Smrg <entry role='protoname'> 6063ea1d6981SmrggeometrySpec: STRING8 6064ea1d6981Smrg </entry> 6065ea1d6981Smrg </row> 6066ea1d6981Smrg <row> 6067ea1d6981Smrg <entry role='protoreply'> 6068ea1d6981SmrgdeviceID: CARD8 6069ea1d6981Smrg </entry> 6070ea1d6981Smrg </row> 6071ea1d6981Smrg <row> 6072ea1d6981Smrg <entry role='protoreply'> 6073ea1d6981Smrgextra: CARD16 6074ea1d6981Smrg </entry> 6075ea1d6981Smrg </row> 6076ea1d6981Smrg <row> 6077ea1d6981Smrg <entry role='protoreply'> 6078ea1d6981Smrgkeymaps,keycodes,types,compatMaps: LISTofKB_COMPONENTNAME 6079ea1d6981Smrg </entry> 6080ea1d6981Smrg </row> 6081ea1d6981Smrg <row> 6082ea1d6981Smrg <entry role='protoreply'> 6083ea1d6981Smrgsymbols, geometries: LISTofKB_COMPONENTNAME</entry> 6084ea1d6981Smrg </row> 6085ea1d6981Smrg <row> 6086ea1d6981Smrg <entry role='protoreply'>Where:</entry> 6087ea1d6981Smrg </row> 6088ea1d6981Smrg <row> 6089ea1d6981Smrg <entry role='protoreply'>KB_COMPONENTNAME { hints: CARD8, name: 6090ea1d6981SmrgSTRING8 }</entry> 6091ea1d6981Smrg </row> 6092ea1d6981Smrg <row> 6093ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 6094ea1d6981SmrgKeyboard</emphasis> 6095ea1d6981Smrg, <emphasis> 6096ea1d6981SmrgAlloc</emphasis> 6097ea1d6981Smrg</entry> 6098ea1d6981Smrg </row> 6099ea1d6981Smrg </tbody> 6100ea1d6981Smrg </tgroup> 6101ea1d6981Smrg</informaltable> 6102ea1d6981Smrg 6103ea1d6981Smrg<para> 6104ea1d6981SmrgThis request returns one or more lists of keyboard components that are 6105ea1d6981Smrgavailable from the X server database of keyboard components for the device 6106ea1d6981Smrgspecified by <emphasis> 6107ea1d6981SmrgdeviceSpec</emphasis> 6108ea1d6981Smrg. The X server is allowed, but not required or expected, to maintain separate 6109ea1d6981Smrgdatabases for each keyboard device. A <emphasis> 6110ea1d6981SmrgKeyboard</emphasis> 6111ea1d6981Smrg error results if <emphasis> 6112ea1d6981SmrgdeviceSpec</emphasis> 6113ea1d6981Smrg does not specify a valid keyboard device. 6114ea1d6981Smrg</para> 6115ea1d6981Smrg 6116ea1d6981Smrg 6117ea1d6981Smrg<para> 6118ea1d6981SmrgThe <emphasis> 6119ea1d6981SmrgmaxNames</emphasis> 6120ea1d6981Smrg field specifies the maximum number of component names to be reported, in 6121ea1d6981Smrgtotal, by this request. 6122ea1d6981Smrg</para> 6123ea1d6981Smrg 6124ea1d6981Smrg 6125ea1d6981Smrg<para> 6126ea1d6981SmrgThe <emphasis> 6127ea1d6981SmrgkeymapsSpec</emphasis> 6128ea1d6981Smrg, <emphasis> 6129ea1d6981SmrgkeycodesSpec</emphasis> 6130ea1d6981Smrg, <emphasis> 6131ea1d6981SmrgtypesSpec</emphasis> 6132ea1d6981Smrg, <emphasis> 6133ea1d6981SmrgcompatMapSpec</emphasis> 6134ea1d6981Smrg, <emphasis> 6135ea1d6981SmrgsymbolsSpec</emphasis> 6136ea1d6981Smrg and <emphasis> 6137ea1d6981SmrggeometrySpec</emphasis> 6138ea1d6981Smrg request fields specify a pattern to be matched against the names of all 6139ea1d6981Smrgcomponents of the corresponding type in the server database of keyboard 6140ea1d6981Smrgcomponents. 6141ea1d6981Smrg</para> 6142ea1d6981Smrg 6143ea1d6981Smrg 6144ea1d6981Smrg<para> 6145ea1d6981SmrgEach pattern uses the ISO Latin-1 encoding and should contain only parentheses, 6146ea1d6981Smrgthe wildcard characters "?" and "*" or characters that are permitted in a 6147ea1d6981Smrgcomponent class or member name (see <link linkend='Component_Names'>Component Names</link>). Illegal 6148ea1d6981Smrgcharacters in a pattern are simply ignored; no error results if a pattern 6149ea1d6981Smrgcontains illegal characters. 6150ea1d6981Smrg</para> 6151ea1d6981Smrg 6152ea1d6981Smrg 6153ea1d6981Smrg<para> 6154ea1d6981SmrgComparison is case-sensitive and, in a pattern, the "?" wildcard character 6155ea1d6981Smrgmatches any single character except parentheses while the "*" character matches 6156ea1d6981Smrgany number of characters except parentheses. If an implementation accepts 6157ea1d6981Smrgcharacters other than those required by XKB, whether or not those characters 6158ea1d6981Smrgmatch either wildcard is also implementation dependent. An empty pattern does 6159ea1d6981Smrgnot match any component names. 6160ea1d6981Smrg</para> 6161ea1d6981Smrg 6162ea1d6981Smrg 6163ea1d6981Smrg<para> 6164ea1d6981SmrgOn successful return, the <emphasis> 6165ea1d6981SmrgdeviceID</emphasis> 6166ea1d6981Smrg return value reports the X Input Extension device identifier of the specified 6167ea1d6981Smrgdevice, or <emphasis> 6168ea1d6981Smrg0</emphasis> 6169ea1d6981Smrg if the server does not support the X input extension. The <emphasis> 6170ea1d6981Smrgextra</emphasis> 6171ea1d6981Smrg return value reports the number of matching component names that could not be 6172ea1d6981Smrgreturned due to the setting of the <emphasis> 6173ea1d6981SmrgmaxNames</emphasis> 6174ea1d6981Smrg field in the request. 6175ea1d6981Smrg</para> 6176ea1d6981Smrg 6177ea1d6981Smrg 6178ea1d6981Smrg<para> 6179ea1d6981SmrgThe <emphasis> 6180ea1d6981Smrgkeymaps</emphasis> 6181ea1d6981Smrg, <emphasis> 6182ea1d6981Smrgkeycodes</emphasis> 6183ea1d6981Smrg, <emphasis> 6184ea1d6981Smrgtypes</emphasis> 6185ea1d6981Smrg, <emphasis> 6186ea1d6981SmrgcompatMaps</emphasis> 6187ea1d6981Smrg, <emphasis> 6188ea1d6981Smrgsymbols</emphasis> 6189ea1d6981Smrg and <emphasis> 6190ea1d6981Smrggeometries</emphasis> 6191ea1d6981Smrg return the hints (see <link linkend='Component_Hints'>Component 6192ea1d6981SmrgHints</link>) and names of any components from the server database that match 6193ea1d6981Smrgthe corresponding pattern. 6194ea1d6981Smrg</para> 6195ea1d6981Smrg 6196ea1d6981Smrg 6197ea1d6981Smrg<para> 6198ea1d6981Smrg<link linkend='The_Server_Database_of_Keyboard_Components'>The Server Database of Keyboard 6199ea1d6981SmrgComponents</link> describes the X server database of keyboard components in 6200ea1d6981Smrgmore detail. 6201ea1d6981Smrg</para> 6202ea1d6981Smrg 6203ea1d6981Smrg 6204ea1d6981Smrg 6205ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 6206ea1d6981Smrg<?dbfo keep-together="always" ?> 6207ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 6208ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 6209ea1d6981Smrg <thead> 6210ea1d6981Smrg <row> 6211ea1d6981Smrg <entry role='protoname'>XkbGetKbdByName</entry> 6212ea1d6981Smrg </row> 6213ea1d6981Smrg </thead> 6214ea1d6981Smrg <tbody> 6215ea1d6981Smrg <row> 6216ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 6217ea1d6981Smrg </row> 6218ea1d6981Smrg <row> 6219ea1d6981Smrg <entry role='protoname'> 6220ea1d6981Smrgneed, want: KB_GBNDETAILMASK</entry> 6221ea1d6981Smrg </row> 6222ea1d6981Smrg <row> 6223ea1d6981Smrg <entry role='protoname'> 6224ea1d6981Smrgload: BOOL</entry> 6225ea1d6981Smrg </row> 6226ea1d6981Smrg <row> 6227ea1d6981Smrg <entry role='protoname'> 6228ea1d6981SmrgkeymapsSpec: STRING8</entry> 6229ea1d6981Smrg </row> 6230ea1d6981Smrg <row> 6231ea1d6981Smrg <entry role='protoname'> 6232ea1d6981SmrgkeycodesSpec, typesSpec: STRING8</entry> 6233ea1d6981Smrg </row> 6234ea1d6981Smrg <row> 6235ea1d6981Smrg <entry role='protoname'> 6236ea1d6981SmrgcompatMapSpec, symbolsSpec: STRING8</entry> 6237ea1d6981Smrg </row> 6238ea1d6981Smrg <row> 6239ea1d6981Smrg <entry role='protoname'> 6240ea1d6981SmrggeometrySpec: STRING8 6241ea1d6981Smrg </entry> 6242ea1d6981Smrg </row> 6243ea1d6981Smrg <row> 6244ea1d6981Smrg <entry role='protoreply'> 6245ea1d6981SmrgdeviceID: CARD8 6246ea1d6981Smrg </entry> 6247ea1d6981Smrg </row> 6248ea1d6981Smrg <row> 6249ea1d6981Smrg <entry role='protoreply'> 6250ea1d6981SmrgminKeyCode, maxKeyCode: KEYCODE 6251ea1d6981Smrg </entry> 6252ea1d6981Smrg </row> 6253ea1d6981Smrg <row> 6254ea1d6981Smrg <entry role='protoreply'> 6255ea1d6981Smrgloaded, newKeyboard: BOOL 6256ea1d6981Smrg </entry> 6257ea1d6981Smrg </row> 6258ea1d6981Smrg <row> 6259ea1d6981Smrg <entry role='protoreply'> 6260ea1d6981Smrgfound, reported: KB_GBNDETAILMASK 6261ea1d6981Smrg </entry> 6262ea1d6981Smrg </row> 6263ea1d6981Smrg <row> 6264ea1d6981Smrg <entry role='protoreply'> 6265ea1d6981Smrgmap: optional <emphasis> 6266ea1d6981SmrgXkbGetMap</emphasis> 6267ea1d6981Smrg reply 6268ea1d6981Smrg </entry> 6269ea1d6981Smrg </row> 6270ea1d6981Smrg <row> 6271ea1d6981Smrg <entry role='protoreply'> 6272ea1d6981Smrgcompat: optional <emphasis> 6273ea1d6981SmrgXkbGetCompatMap</emphasis> 6274ea1d6981Smrg reply 6275ea1d6981Smrg </entry> 6276ea1d6981Smrg </row> 6277ea1d6981Smrg <row> 6278ea1d6981Smrg <entry role='protoreply'> 6279ea1d6981Smrgindicators: optional <emphasis> 6280ea1d6981SmrgXkbGetIndicatorMap</emphasis> 6281ea1d6981Smrg reply 6282ea1d6981Smrg </entry> 6283ea1d6981Smrg </row> 6284ea1d6981Smrg <row> 6285ea1d6981Smrg <entry role='protoreply'> 6286ea1d6981Smrgnames: optional <emphasis> 6287ea1d6981SmrgXkbGetNames</emphasis> 6288ea1d6981Smrg reply 6289ea1d6981Smrg </entry> 6290ea1d6981Smrg </row> 6291ea1d6981Smrg <row> 6292ea1d6981Smrg <entry role='protoreply'> 6293ea1d6981Smrggeometry: optional <emphasis> 6294ea1d6981SmrgXkbGetGeometry</emphasis> 6295ea1d6981Smrg reply</entry> 6296ea1d6981Smrg </row> 6297ea1d6981Smrg 6298ea1d6981Smrg <row> 6299ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 6300ea1d6981SmrgKeyboard</emphasis> 6301ea1d6981Smrg, <emphasis> 6302ea1d6981SmrgAccess</emphasis> 6303ea1d6981Smrg, <emphasis> 6304ea1d6981SmrgAlloc</emphasis> 6305ea1d6981Smrg</entry> 6306ea1d6981Smrg </row> 6307ea1d6981Smrg 6308ea1d6981Smrg </tbody> 6309ea1d6981Smrg </tgroup> 6310ea1d6981Smrg</informaltable> 6311ea1d6981Smrg 6312ea1d6981Smrg<para> 6313ea1d6981SmrgAssembles and returns a keymap from the current mapping and specified elements 6314ea1d6981Smrgfrom the server database of keymap components for the keyboard specified by 6315ea1d6981Smrg<emphasis> 6316ea1d6981SmrgdeviceSpec</emphasis> 6317ea1d6981Smrg, and optionally replaces the current keyboard mapping with the newly generated 6318ea1d6981Smrgdescription. If <emphasis> 6319ea1d6981SmrgdeviceSpec</emphasis> 6320ea1d6981Smrg does not specify a valid keyboard device, a <emphasis> 6321ea1d6981SmrgKeyboard</emphasis> 6322ea1d6981Smrg error results. 6323ea1d6981Smrg</para> 6324ea1d6981Smrg 6325ea1d6981Smrg 6326ea1d6981Smrg<para> 6327ea1d6981SmrgThe <emphasis> 6328ea1d6981SmrgkeymapsSpec</emphasis> 6329ea1d6981Smrg, <emphasis> 6330ea1d6981SmrgkeycodesSpec</emphasis> 6331ea1d6981Smrg, <emphasis> 6332ea1d6981SmrgtypesSpec</emphasis> 6333ea1d6981Smrg, <emphasis> 6334ea1d6981SmrgcompatMapSpec</emphasis> 6335ea1d6981Smrg, <emphasis> 6336ea1d6981SmrgsymbolsSpec</emphasis> 6337ea1d6981Smrg and <emphasis> 6338ea1d6981SmrggeometrySpec</emphasis> 6339ea1d6981Smrg component expressions (see <link linkend='Partial_Components_and_Combining_Multiple_Components'> 6340ea1d6981SmrgPartial Components and Combining Multiple Components</link>) specify the 6341ea1d6981Smrgdatabase components to be used to assemble the keyboard description. 6342ea1d6981Smrg</para> 6343ea1d6981Smrg 6344ea1d6981Smrg 6345ea1d6981Smrg<para> 6346ea1d6981SmrgThe <emphasis> 6347ea1d6981Smrgwant</emphasis> 6348ea1d6981Smrg field lists the pieces of the keyboard description that the client wants to 6349ea1d6981Smrghave reported for the newly constructed keymap. The <emphasis> 6350ea1d6981Smrgneed</emphasis> 6351ea1d6981Smrg field lists all of the pieces that must be reported. If any of the pieces in 6352ea1d6981Smrg<emphasis> 6353ea1d6981Smrgneed</emphasis> 6354ea1d6981Smrg cannot be loaded from the specified names, no description of the keyboard is 6355ea1d6981Smrgreturned. 6356ea1d6981Smrg</para> 6357ea1d6981Smrg 6358ea1d6981Smrg 6359ea1d6981Smrg<para> 6360ea1d6981SmrgThe <emphasis> 6361ea1d6981Smrgwant</emphasis> 6362ea1d6981Smrg and <emphasis> 6363ea1d6981Smrgneed</emphasis> 6364ea1d6981Smrg fields can include any combinations of these <emphasis> 6365ea1d6981SmrgXkbGetMapByName</emphasis> 6366ea1d6981Smrg (GBN) components: 6367ea1d6981Smrg</para> 6368ea1d6981Smrg 6369ea1d6981Smrg<informaltable frame='topbot'> 6370ea1d6981Smrg<?dbfo keep-together="always" ?> 6371ea1d6981Smrg<tgroup cols='3' align='left' colsep='0' rowsep='0'> 6372ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 6373ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 6374ea1d6981Smrg<colspec colname='c3' colwidth='1.0*'/> 6375ea1d6981Smrg<thead> 6376ea1d6981Smrg <row rowsep='1'> 6377ea1d6981Smrg <entry>XkbGetMapByName Keyboard Component…</entry> 6378ea1d6981Smrg <entry>Database Component…</entry> 6379ea1d6981Smrg <entry>Components of Keyboard Description</entry> 6380ea1d6981Smrg </row> 6381ea1d6981Smrg</thead> 6382ea1d6981Smrg<tbody> 6383ea1d6981Smrg <row> 6384ea1d6981Smrg <entry><emphasis> 6385ea1d6981SmrgXkbGBN_Types</emphasis> 6386ea1d6981Smrg</entry> 6387ea1d6981Smrg <entry>types</entry> 6388ea1d6981Smrg <entry>key types</entry> 6389ea1d6981Smrg </row> 6390ea1d6981Smrg <row> 6391ea1d6981Smrg <entry><emphasis> 6392ea1d6981SmrgXkbGBN_CompatMap</emphasis> 6393ea1d6981Smrg</entry> 6394ea1d6981Smrg <entry>compat</entry> 6395ea1d6981Smrg <entry>symbol interpretations, group compatibility map</entry> 6396ea1d6981Smrg </row> 6397ea1d6981Smrg <row> 6398ea1d6981Smrg <entry><emphasis> 6399ea1d6981SmrgXkbGBN_ClientSymbols</emphasis> 6400ea1d6981Smrg</entry> 6401ea1d6981Smrg <entry>symbols, types, keycodes</entry> 6402ea1d6981Smrg <entry>key types, key symbol mappings, modifier mapping</entry> 6403ea1d6981Smrg </row> 6404ea1d6981Smrg <row> 6405ea1d6981Smrg <entry><emphasis> 6406ea1d6981SmrgXkbGBN_ServerSymbols</emphasis> 6407ea1d6981Smrg</entry> 6408ea1d6981Smrg <entry>symbols, types, keycodes</entry> 6409ea1d6981Smrg <entry>key behaviors, key actions, key explicit components, virtual 6410ea1d6981Smrgmodifiers, virtual modifier mapping</entry> 6411ea1d6981Smrg </row> 6412ea1d6981Smrg <row> 6413ea1d6981Smrg <entry><emphasis> 6414ea1d6981SmrgXkbGBN_IndicatorMap</emphasis> 6415ea1d6981Smrg</entry> 6416ea1d6981Smrg <entry>compat</entry> 6417ea1d6981Smrg <entry>indicator maps, indicator names</entry> 6418ea1d6981Smrg </row> 6419ea1d6981Smrg <row> 6420ea1d6981Smrg <entry><emphasis> 6421ea1d6981SmrgXkbGBN_KeyNames</emphasis> 6422ea1d6981Smrg</entry> 6423ea1d6981Smrg <entry>keycodes</entry> 6424ea1d6981Smrg <entry>key names, key aliases</entry> 6425ea1d6981Smrg </row> 6426ea1d6981Smrg <row> 6427ea1d6981Smrg <entry><emphasis> 6428ea1d6981SmrgXkbGBN_Geometry</emphasis> 6429ea1d6981Smrg</entry> 6430ea1d6981Smrg <entry>geometry</entry> 6431ea1d6981Smrg <entry>keyboard geometry</entry> 6432ea1d6981Smrg </row> 6433ea1d6981Smrg <row> 6434ea1d6981Smrg <entry><emphasis> 6435ea1d6981SmrgXkbGBN_OtherNames</emphasis> 6436ea1d6981Smrg</entry> 6437ea1d6981Smrg <entry>all</entry> 6438ea1d6981Smrg <entry>key types, symbol interpretations, indicator maps, names, 6439ea1d6981Smrggeometry</entry> 6440ea1d6981Smrg </row> 6441ea1d6981Smrg</tbody> 6442ea1d6981Smrg</tgroup> 6443ea1d6981Smrg</informaltable> 6444ea1d6981Smrg 6445ea1d6981Smrg<para> 6446ea1d6981SmrgIf either field contains a GBN component that depends on some database 6447ea1d6981Smrgcomponent for which the request does not supply an expression, XKB 6448ea1d6981Smrgautomatically substitutes the special pattern "%" which copies the 6449ea1d6981Smrgcorresponding component from the current keyboard description, as described in 6450ea1d6981Smrg<link linkend='Partial_Components_and_Combining_Multiple_Components'>Partial Components and Combining 6451ea1d6981SmrgMultiple Components</link>. 6452ea1d6981Smrg</para> 6453ea1d6981Smrg 6454ea1d6981Smrg 6455ea1d6981Smrg<para> 6456ea1d6981SmrgThe <emphasis> 6457ea1d6981Smrgload</emphasis> 6458ea1d6981Smrg flag asks the server to replace the current keyboard description for <emphasis> 6459ea1d6981SmrgdeviceSpec</emphasis> 6460ea1d6981Smrg with the newly constructed keyboard description. If <emphasis> 6461ea1d6981Smrgload</emphasis> 6462ea1d6981Smrg is <emphasis> 6463ea1d6981SmrgTrue</emphasis> 6464ea1d6981Smrg, the request must include component expressions for all of the database 6465ea1d6981Smrgcomponents; if any are missing, XKB substitutes "%" as described above. 6466ea1d6981Smrg</para> 6467ea1d6981Smrg 6468ea1d6981Smrg 6469ea1d6981Smrg<para> 6470ea1d6981SmrgIf all necessary components are both specified and found, the new keyboard 6471ea1d6981Smrgdescription is loaded. If the new keyboard description has a different geometry 6472ea1d6981Smrgor keycode range than the previous keyboard description, XKB sends <emphasis> 6473ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 6474ea1d6981Smrg events to all interested clients. See 6475ea1d6981Smrg<link linkend='Replacing_the_Keyboard_On_the_Fly'>Replacing the Keyboard 6476ea1d6981Smrg"On-the-Fly"</link> for more information about the effects of replacing the 6477ea1d6981Smrgkeyboard description on the fly. 6478ea1d6981Smrg</para> 6479ea1d6981Smrg 6480ea1d6981Smrg 6481ea1d6981Smrg<para> 6482ea1d6981SmrgIf the range of keycodes changes, clients that have requested <emphasis> 6483ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 6484ea1d6981Smrg events are not sent any other change notification events by this request. 6485ea1d6981SmrgClients that do not request <emphasis> 6486ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 6487ea1d6981Smrg events are sent other XKB change notification events (e.g. <emphasis> 6488ea1d6981SmrgXkbMapNotify</emphasis> 6489ea1d6981Smrg, <emphasis> 6490ea1d6981SmrgXkbNamesNotify</emphasis> 6491ea1d6981Smrg) as necessary to alert them to as many of the keyboard changes as possible. 6492ea1d6981Smrg</para> 6493ea1d6981Smrg 6494ea1d6981Smrg 6495ea1d6981Smrg<para> 6496ea1d6981SmrgIf no error occurs, the request reply reports the GBN components that were 6497ea1d6981Smrgfound and sends a description of any of the resulting keyboard that includes 6498ea1d6981Smrgand of the components that were requested. 6499ea1d6981Smrg</para> 6500ea1d6981Smrg 6501ea1d6981Smrg 6502ea1d6981Smrg<para> 6503ea1d6981SmrgThe <emphasis> 6504ea1d6981SmrgdeviceID</emphasis> 6505ea1d6981Smrg return value reports the X Input extension device identifier of the keyboard 6506ea1d6981Smrgthat was used, or <emphasis> 6507ea1d6981Smrg0</emphasis> 6508ea1d6981Smrg if the server does not support the X input extension. 6509ea1d6981Smrg</para> 6510ea1d6981Smrg 6511ea1d6981Smrg 6512ea1d6981Smrg<para> 6513ea1d6981SmrgThe <emphasis> 6514ea1d6981SmrgminKeyCode</emphasis> 6515ea1d6981Smrg and <emphasis> 6516ea1d6981SmrgmaxKeyCode</emphasis> 6517ea1d6981Smrg return values report the legal range of keycodes for the keyboard description 6518ea1d6981Smrgthat was created. If the resulting keyboard description does not include at 6519ea1d6981Smrgleast one of the key names, client symbols or server symbols components, 6520ea1d6981Smrg<emphasis> 6521ea1d6981SmrgminKeyCode</emphasis> 6522ea1d6981Smrg and <emphasis> 6523ea1d6981SmrgmaxKeyCode</emphasis> 6524ea1d6981Smrg are both <emphasis> 6525ea1d6981Smrg0</emphasis> 6526ea1d6981Smrg. 6527ea1d6981Smrg</para> 6528ea1d6981Smrg 6529ea1d6981Smrg 6530ea1d6981Smrg<para> 6531ea1d6981SmrgThe <emphasis> 6532ea1d6981Smrgloaded</emphasis> 6533ea1d6981Smrg return value reports whether or not the existing keyboard definition was 6534ea1d6981Smrgreplaced with the newly created one. If <emphasis> 6535ea1d6981Smrgloaded</emphasis> 6536ea1d6981Smrg is <emphasis> 6537ea1d6981SmrgTrue</emphasis> 6538ea1d6981Smrg, the <emphasis> 6539ea1d6981SmrgnewKeyboard</emphasis> 6540ea1d6981Smrg return value reports whether or not the new map changed the geometry or range 6541ea1d6981Smrgof keycodes and caused <emphasis> 6542ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 6543ea1d6981Smrg events for clients that have requested them. 6544ea1d6981Smrg</para> 6545ea1d6981Smrg 6546ea1d6981Smrg 6547ea1d6981Smrg<para> 6548ea1d6981SmrgThe <emphasis> 6549ea1d6981Smrgfound</emphasis> 6550ea1d6981Smrg return value reports the GBN components that were present in the keymap that 6551ea1d6981Smrgwas constructed by this request. The <emphasis> 6552ea1d6981Smrgreported</emphasis> 6553ea1d6981Smrg return value lists the subset of those components for which descriptions 6554ea1d6981Smrgfollow. if any of the components specified in the <emphasis> 6555ea1d6981Smrgneed</emphasis> 6556ea1d6981Smrg field of the request were not found, <emphasis> 6557ea1d6981Smrgreported</emphasis> 6558ea1d6981Smrg is empty, otherwise it contains the intersection of the <emphasis> 6559ea1d6981Smrgfound</emphasis> 6560ea1d6981Smrg return value with the union of the <emphasis> 6561ea1d6981Smrgneed</emphasis> 6562ea1d6981Smrg and <emphasis> 6563ea1d6981Smrgwant</emphasis> 6564ea1d6981Smrg request fields. 6565ea1d6981Smrg</para> 6566ea1d6981Smrg 6567ea1d6981Smrg 6568ea1d6981Smrg<para> 6569ea1d6981SmrgIf any of <emphasis> 6570ea1d6981SmrgGBN_Types</emphasis> 6571ea1d6981Smrg, <emphasis> 6572ea1d6981SmrgGBN_ClientSymbols</emphasis> 6573ea1d6981Smrg or <emphasis> 6574ea1d6981SmrgGBN_ServerSymbols</emphasis> 6575ea1d6981Smrg are set in <emphasis> 6576ea1d6981Smrgreported</emphasis> 6577ea1d6981Smrg, the <emphasis> 6578ea1d6981Smrgmap</emphasis> 6579ea1d6981Smrg return value has the same format as the reply to an <emphasis> 6580ea1d6981SmrgXkbGetMap</emphasis> 6581ea1d6981Smrg request and reports the corresponding pieces of the newly constructed keyboard 6582ea1d6981Smrgdescription. 6583ea1d6981Smrg</para> 6584ea1d6981Smrg 6585ea1d6981Smrg 6586ea1d6981Smrg<para> 6587ea1d6981SmrgIf <emphasis> 6588ea1d6981SmrgGBN_CompatMap</emphasis> 6589ea1d6981Smrg is set in <emphasis> 6590ea1d6981Smrgreported</emphasis> 6591ea1d6981Smrg, the <emphasis> 6592ea1d6981Smrgcompat</emphasis> 6593ea1d6981Smrg return value has the same format as the reply to an <emphasis> 6594ea1d6981SmrgXkbGetCompatMap</emphasis> 6595ea1d6981Smrg request and reports the symbol interpretations and group compatibility map for 6596ea1d6981Smrgthe newly constructed keyboard description. 6597ea1d6981Smrg</para> 6598ea1d6981Smrg 6599ea1d6981Smrg 6600ea1d6981Smrg<para> 6601ea1d6981SmrgIf <emphasis> 6602ea1d6981SmrgGBN_IndicatorMap</emphasis> 6603ea1d6981Smrg is set in <emphasis> 6604ea1d6981Smrgreported</emphasis> 6605ea1d6981Smrg, the <emphasis> 6606ea1d6981Smrgindicators</emphasis> 6607ea1d6981Smrg return value has the same format as the reply to an <emphasis> 6608ea1d6981SmrgXkbGetIndicatorMap</emphasis> 6609ea1d6981Smrg request and reports the physical indicators and indicator maps for the newly 6610ea1d6981Smrgconstructed keyboard description. 6611ea1d6981Smrg</para> 6612ea1d6981Smrg 6613ea1d6981Smrg 6614ea1d6981Smrg<para> 6615ea1d6981SmrgIf <emphasis> 6616ea1d6981SmrgGBN_KeyNames</emphasis> 6617ea1d6981Smrg or <emphasis> 6618ea1d6981SmrgGBN_OtherNames</emphasis> 6619ea1d6981Smrg are set in <emphasis> 6620ea1d6981Smrgreported</emphasis> 6621ea1d6981Smrg, the <emphasis> 6622ea1d6981Smrgnames</emphasis> 6623ea1d6981Smrg return value has the same format as the reply to an <emphasis> 6624ea1d6981SmrgXkbGetNames</emphasis> 6625ea1d6981Smrg reply and reports the corresponding set of symbolic names for the newly 6626ea1d6981Smrgconstructed keyboard description. 6627ea1d6981Smrg</para> 6628ea1d6981Smrg 6629ea1d6981Smrg 6630ea1d6981Smrg<para> 6631ea1d6981SmrgIf <emphasis> 6632ea1d6981SmrgGBN_Geometry</emphasis> 6633ea1d6981Smrg is set in <emphasis> 6634ea1d6981Smrgreported</emphasis> 6635ea1d6981Smrg, the <emphasis> 6636ea1d6981Smrggeometry</emphasis> 6637ea1d6981Smrg return value has the same format as the reply to an <emphasis> 6638ea1d6981SmrgXkbGetGeometryMap</emphasis> 6639ea1d6981Smrg request and reports the keyboard geometry for the newly constructed keyboard 6640ea1d6981Smrgdescription. 6641ea1d6981Smrg</para> 6642ea1d6981Smrg 6643ea1d6981Smrg 6644ea1d6981Smrg</sect2> 6645ea1d6981Smrg<sect2 id='Querying_and_Changing_Input_Extension_Devices'> 6646ea1d6981Smrg<title>Querying and Changing Input Extension Devices</title> 6647ea1d6981Smrg 6648ea1d6981Smrg 6649ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 6650ea1d6981Smrg<?dbfo keep-together="always" ?> 6651ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 6652ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 6653ea1d6981Smrg <thead> 6654ea1d6981Smrg <row> 6655ea1d6981Smrg <entry role='protoname'>XkbGetDeviceInfo</entry> 6656ea1d6981Smrg </row> 6657ea1d6981Smrg </thead> 6658ea1d6981Smrg <tbody> 6659ea1d6981Smrg <row> 6660ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 6661ea1d6981Smrg </row> 6662ea1d6981Smrg <row> 6663ea1d6981Smrg <entry role='protoname'> 6664ea1d6981Smrgwanted: KB_XIDEVFEATUREMASK</entry> 6665ea1d6981Smrg </row> 6666ea1d6981Smrg <row> 6667ea1d6981Smrg <entry role='protoname'> 6668ea1d6981SmrgledClass: KB_LEDCLASSSPEC</entry> 6669ea1d6981Smrg </row> 6670ea1d6981Smrg <row> 6671ea1d6981Smrg <entry role='protoname'> 6672ea1d6981SmrgledID: KB_IDSPEC</entry> 6673ea1d6981Smrg </row> 6674ea1d6981Smrg <row> 6675ea1d6981Smrg <entry role='protoname'> 6676ea1d6981SmrgallButtons: BOOL</entry> 6677ea1d6981Smrg </row> 6678ea1d6981Smrg <row> 6679ea1d6981Smrg <entry role='protoname'> 6680ea1d6981SmrgfirstButton, nButtons: CARD8 6681ea1d6981Smrg </entry> 6682ea1d6981Smrg </row> 6683ea1d6981Smrg <row> 6684ea1d6981Smrg <entry role='protoreply'> 6685ea1d6981SmrgdeviceID: CARD8 6686ea1d6981Smrg </entry> 6687ea1d6981Smrg </row> 6688ea1d6981Smrg <row> 6689ea1d6981Smrg <entry role='protoreply'> 6690ea1d6981Smrgpresent: KB_XIDEVFEATUREMASK 6691ea1d6981Smrg </entry> 6692ea1d6981Smrg </row> 6693ea1d6981Smrg <row> 6694ea1d6981Smrg <entry role='protoreply'> 6695ea1d6981Smrgsupported: KB_XIFEATUREMASK 6696ea1d6981Smrg </entry> 6697ea1d6981Smrg </row> 6698ea1d6981Smrg <row> 6699ea1d6981Smrg <entry role='protoreply'> 6700ea1d6981Smrgunsupported: KB_XIFEATUREMASK 6701ea1d6981Smrg </entry> 6702ea1d6981Smrg </row> 6703ea1d6981Smrg <row> 6704ea1d6981Smrg <entry role='protoreply'> 6705ea1d6981SmrgfirstBtnWanted: CARD8 6706ea1d6981Smrg </entry> 6707ea1d6981Smrg </row> 6708ea1d6981Smrg <row> 6709ea1d6981Smrg <entry role='protoreply'> 6710ea1d6981SmrgnBtnsWanted: CARD8 6711ea1d6981Smrg </entry> 6712ea1d6981Smrg </row> 6713ea1d6981Smrg <row> 6714ea1d6981Smrg <entry role='protoreply'> 6715ea1d6981SmrgfirstBtnRtrn: CARD8 6716ea1d6981Smrg </entry> 6717ea1d6981Smrg </row> 6718ea1d6981Smrg <row> 6719ea1d6981Smrg <entry role='protoreply'> 6720ea1d6981SmrgnBtnsRtrn: CARD8 6721ea1d6981Smrg </entry> 6722ea1d6981Smrg </row> 6723ea1d6981Smrg <row> 6724ea1d6981Smrg <entry role='protoreply'> 6725ea1d6981SmrgtotalBtns: CARD8 6726ea1d6981Smrg </entry> 6727ea1d6981Smrg </row> 6728ea1d6981Smrg <row> 6729ea1d6981Smrg <entry role='protoreply'> 6730ea1d6981SmrghasOwnState: BOOL 6731ea1d6981Smrg </entry> 6732ea1d6981Smrg </row> 6733ea1d6981Smrg <row> 6734ea1d6981Smrg <entry role='protoreply'> 6735ea1d6981SmrgdfltKbdFB, dfltLedFB: KB_IDSPEC 6736ea1d6981Smrg </entry> 6737ea1d6981Smrg </row> 6738ea1d6981Smrg <row> 6739ea1d6981Smrg <entry role='protoreply'> 6740ea1d6981SmrgdevType: ATOM 6741ea1d6981Smrg </entry> 6742ea1d6981Smrg </row> 6743ea1d6981Smrg <row> 6744ea1d6981Smrg <entry role='protoreply'> 6745ea1d6981Smrgname: STRING 6746ea1d6981Smrg </entry> 6747ea1d6981Smrg </row> 6748ea1d6981Smrg <row> 6749ea1d6981Smrg <entry role='protoreply'> 6750ea1d6981SmrgbtnActions: LISTofKB_ACTION 6751ea1d6981Smrg </entry> 6752ea1d6981Smrg </row> 6753ea1d6981Smrg <row> 6754ea1d6981Smrg <entry role='protoreply'> 6755ea1d6981Smrgleds: LISTofKB_DEVICELEDINFO</entry> 6756ea1d6981Smrg </row> 6757ea1d6981Smrg 6758ea1d6981Smrg <row> 6759ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 6760ea1d6981SmrgDevice</emphasis> 6761ea1d6981Smrg, <emphasis> 6762ea1d6981SmrgMatch</emphasis> 6763ea1d6981Smrg, <emphasis> 6764ea1d6981SmrgAccess</emphasis> 6765ea1d6981Smrg, <emphasis> 6766ea1d6981SmrgAlloc</emphasis> 6767ea1d6981Smrg</entry> 6768ea1d6981Smrg </row> 6769ea1d6981Smrg 6770ea1d6981Smrg </tbody> 6771ea1d6981Smrg </tgroup> 6772ea1d6981Smrg</informaltable> 6773ea1d6981Smrg 6774ea1d6981Smrg<para> 6775ea1d6981SmrgReports a subset of the XKB-supplied information about the input device 6776ea1d6981Smrgspecified by <emphasis> 6777ea1d6981SmrgdeviceSpec</emphasis> 6778ea1d6981Smrg. Unlike most XKB requests, the device specified for <emphasis> 6779ea1d6981SmrgXkbGetDeviceInfo</emphasis> 6780ea1d6981Smrg need not be a keyboard device. Nonetheless, a <emphasis> 6781ea1d6981SmrgKeyboard</emphasis> 6782ea1d6981Smrg error results if <emphasis> 6783ea1d6981SmrgdeviceSpec</emphasis> 6784ea1d6981Smrg does not specify a valid core or input extension device. 6785ea1d6981Smrg</para> 6786ea1d6981Smrg 6787ea1d6981Smrg 6788ea1d6981Smrg<para> 6789ea1d6981SmrgThe <emphasis> 6790ea1d6981Smrgwanted</emphasis> 6791ea1d6981Smrg field specifies the types of information to be returned, and controls the 6792ea1d6981Smrginterpretation of the other request fields. 6793ea1d6981Smrg</para> 6794ea1d6981Smrg 6795ea1d6981Smrg 6796ea1d6981Smrg<para> 6797ea1d6981SmrgIf the server does not support assignment of XKB actions to extension device 6798ea1d6981Smrgbuttons, the <emphasis> 6799ea1d6981SmrgallButtons</emphasis> 6800ea1d6981Smrg, <emphasis> 6801ea1d6981SmrgfirstButton</emphasis> 6802ea1d6981Smrg and <emphasis> 6803ea1d6981SmrgnButtons</emphasis> 6804ea1d6981Smrg fields are ignored. 6805ea1d6981Smrg</para> 6806ea1d6981Smrg 6807ea1d6981Smrg 6808ea1d6981Smrg<para> 6809ea1d6981SmrgOtherwise, if the <emphasis> 6810ea1d6981SmrgXkbXI_ButtonActions</emphasis> 6811ea1d6981Smrg flag is set in <emphasis> 6812ea1d6981Smrgwanted</emphasis> 6813ea1d6981Smrg, the <emphasis> 6814ea1d6981SmrgallButtons</emphasis> 6815ea1d6981Smrg, <emphasis> 6816ea1d6981SmrgfirstButton</emphasis> 6817ea1d6981Smrg and <emphasis> 6818ea1d6981SmrgnButtons</emphasis> 6819ea1d6981Smrg fields specify the device buttons for which actions should be returned. 6820ea1d6981SmrgSetting <emphasis> 6821ea1d6981SmrgallButtons</emphasis> 6822ea1d6981Smrg to <emphasis> 6823ea1d6981SmrgTrue</emphasis> 6824ea1d6981Smrg requests actions for all device buttons; if <emphasis> 6825ea1d6981SmrgallButtons</emphasis> 6826ea1d6981Smrg is <emphasis> 6827ea1d6981SmrgFalse</emphasis> 6828ea1d6981Smrg, <emphasis> 6829ea1d6981SmrgfirstButton</emphasis> 6830ea1d6981Smrg and <emphasis> 6831ea1d6981SmrgnButtons</emphasis> 6832ea1d6981Smrg specify a range of buttons for which actions are requested. If the device has 6833ea1d6981Smrgno buttons or if <emphasis> 6834ea1d6981SmrgfirstButton</emphasis> 6835ea1d6981Smrg and <emphasis> 6836ea1d6981SmrgnButtons</emphasis> 6837ea1d6981Smrg specify illegal buttons, a <emphasis> 6838ea1d6981SmrgMatch</emphasis> 6839ea1d6981Smrg error results. If <emphasis> 6840ea1d6981SmrgallButtons</emphasis> 6841ea1d6981Smrg is <emphasis> 6842ea1d6981SmrgTrue</emphasis> 6843ea1d6981Smrg, <emphasis> 6844ea1d6981SmrgfirstButton</emphasis> 6845ea1d6981Smrg and <emphasis> 6846ea1d6981SmrgnButtons</emphasis> 6847ea1d6981Smrg are ignored. 6848ea1d6981Smrg</para> 6849ea1d6981Smrg 6850ea1d6981Smrg 6851ea1d6981Smrg<para> 6852ea1d6981SmrgIf the server does not support XKB access to any aspect of the indicators on 6853ea1d6981Smrgextension devices, or if the <emphasis> 6854ea1d6981Smrgwanted</emphasis> 6855ea1d6981Smrg field does not include any of the indicator flags, the <emphasis> 6856ea1d6981SmrgledClass</emphasis> 6857ea1d6981Smrg and <emphasis> 6858ea1d6981SmrgledID</emphasis> 6859ea1d6981Smrg fields are ignored. Otherwise, <emphasis> 6860ea1d6981SmrgledClass</emphasis> 6861ea1d6981Smrg and <emphasis> 6862ea1d6981SmrgledID</emphasis> 6863ea1d6981Smrg specify one or more feedback(s) for which indicator information is requested. 6864ea1d6981SmrgIf <emphasis> 6865ea1d6981SmrgledClass</emphasis> 6866ea1d6981Smrg or <emphasis> 6867ea1d6981SmrgledID</emphasis> 6868ea1d6981Smrg have illegal values, a <emphasis> 6869ea1d6981SmrgValue</emphasis> 6870ea1d6981Smrg error results. If they have legal values but do not specify a keyboard or 6871ea1d6981Smrgindicator class feedback for the device in question, a <emphasis> 6872ea1d6981SmrgMatch</emphasis> 6873ea1d6981Smrg error results. 6874ea1d6981Smrg</para> 6875ea1d6981Smrg 6876ea1d6981Smrg 6877ea1d6981Smrg<para> 6878ea1d6981SmrgThe <emphasis> 6879ea1d6981SmrgledClass</emphasis> 6880ea1d6981Smrg field can specify either <emphasis> 6881ea1d6981SmrgKbdFeedbackClass</emphasis> 6882ea1d6981Smrg, <emphasis> 6883ea1d6981SmrgLedFeedbackClass</emphasis> 6884ea1d6981Smrg, <emphasis> 6885ea1d6981SmrgXkbDfltXIClass</emphasis> 6886ea1d6981Smrg, or <emphasis> 6887ea1d6981SmrgXkbAllXIClasses</emphasis> 6888ea1d6981Smrg. If at least one keyboard feedback is defined for the specified device, 6889ea1d6981Smrg<emphasis> 6890ea1d6981SmrgXkbDfltXIClass</emphasis> 6891ea1d6981Smrg is equivalent to <emphasis> 6892ea1d6981SmrgKbdFeedbackClass</emphasis> 6893ea1d6981Smrg, otherwise it is equivalent to <emphasis> 6894ea1d6981SmrgLedFeedbackClass</emphasis> 6895ea1d6981Smrg. If <emphasis> 6896ea1d6981SmrgXkbAllXIClasses</emphasis> 6897ea1d6981Smrg is specified, this request returns information about both indicator and 6898ea1d6981Smrgkeyboard class feedbacks which match the requested identifier, as described 6899ea1d6981Smrgbelow. 6900ea1d6981Smrg</para> 6901ea1d6981Smrg 6902ea1d6981Smrg 6903ea1d6981Smrg<para> 6904ea1d6981SmrgThe <emphasis> 6905ea1d6981SmrgledID</emphasis> 6906ea1d6981Smrg field can specify any valid input extension feedback identifier, <emphasis> 6907ea1d6981SmrgXkbDfltXIId</emphasis> 6908ea1d6981Smrg, or <emphasis> 6909ea1d6981SmrgXkbAllXIIds</emphasis> 6910ea1d6981Smrg. The default keyboard feedback is the one that is affected by core protocol 6911ea1d6981Smrgrequests; the default led feedback is implementation-specific. If <emphasis> 6912ea1d6981SmrgXkbAllXIIds</emphasis> 6913ea1d6981Smrg is specified, this request returns indicator information about all feedbacks 6914ea1d6981Smrgof the class(es) specified by <emphasis> 6915ea1d6981SmrgledClass</emphasis> 6916ea1d6981Smrg. 6917ea1d6981Smrg</para> 6918ea1d6981Smrg 6919ea1d6981Smrg 6920ea1d6981Smrg<para> 6921ea1d6981SmrgIf no error results, the <emphasis> 6922ea1d6981SmrgdeviceID</emphasis> 6923ea1d6981Smrg return value reports the input extension device identifier of the device for 6924ea1d6981Smrgwhich values are being returned. The <emphasis> 6925ea1d6981Smrgsupported</emphasis> 6926ea1d6981Smrg return value reports the set of optional XKB extension device features that 6927ea1d6981Smrgare supported by this implementation (see 6928ea1d6981Smrg<link linkend='Interactions_Between_XKB_and_the_X_Input_Extension'> 6929ea1d6981SmrgInteractions Between XKB and the X Input 6930ea1d6981SmrgExtension</link>) for the specified device, and the unsupported return value 6931ea1d6981Smrgreports any <emphasis> 6932ea1d6981Smrgunsupported</emphasis> 6933ea1d6981Smrg features. 6934ea1d6981Smrg</para> 6935ea1d6981Smrg 6936ea1d6981Smrg 6937ea1d6981Smrg<para> 6938ea1d6981SmrgIf <emphasis> 6939ea1d6981SmrghasOwnState</emphasis> 6940ea1d6981Smrg is <emphasis> 6941ea1d6981SmrgTrue</emphasis> 6942ea1d6981Smrg, the device is also a keyboard, and any indicator maps bound to the device use 6943ea1d6981Smrgthe current state and control settings for this device to control automatic 6944ea1d6981Smrgchanges. If <emphasis> 6945ea1d6981SmrghasOwnState</emphasis> 6946ea1d6981Smrg is <emphasis> 6947ea1d6981SmrgFalse</emphasis> 6948ea1d6981Smrg, the state and control settings of the core keyboard device control automatic 6949ea1d6981Smrgindicator changes. 6950ea1d6981Smrg</para> 6951ea1d6981Smrg 6952ea1d6981Smrg 6953ea1d6981Smrg<para> 6954ea1d6981SmrgThe <emphasis> 6955ea1d6981Smrgname</emphasis> 6956ea1d6981Smrg field reports the X Input Extension name for the device. The <emphasis> 6957ea1d6981SmrgdevType</emphasis> 6958ea1d6981Smrg field reports the X Input Extension device type. Both fields are provided 6959ea1d6981Smrgmerely for convenience and are not interpreted by XKB. 6960ea1d6981Smrg</para> 6961ea1d6981Smrg 6962ea1d6981Smrg 6963ea1d6981Smrg<para> 6964ea1d6981SmrgThe <emphasis> 6965ea1d6981Smrgpresent</emphasis> 6966ea1d6981Smrg return value reports the kinds of device information being returned, and 6967ea1d6981Smrgcontrols the interpretation of the remaining fields. The <emphasis> 6968ea1d6981Smrgpresent</emphasis> 6969ea1d6981Smrg field consists of the <emphasis> 6970ea1d6981Smrgwanted</emphasis> 6971ea1d6981Smrg field from the original request minus the flags for any unsupported features. 6972ea1d6981Smrg</para> 6973ea1d6981Smrg 6974ea1d6981Smrg 6975ea1d6981Smrg<para> 6976ea1d6981SmrgIf <emphasis> 6977ea1d6981SmrgXkbXI_ButtonActions</emphasis> 6978ea1d6981Smrg is set in <emphasis> 6979ea1d6981Smrgpresent</emphasis> 6980ea1d6981Smrg, the <emphasis> 6981ea1d6981SmrgtotalBtns</emphasis> 6982ea1d6981Smrg return value reports the total number of buttons present on the device, 6983ea1d6981Smrg<emphasis> 6984ea1d6981SmrgfirstBtnWanted</emphasis> 6985ea1d6981Smrg and <emphasis> 6986ea1d6981SmrgnBtnsWanted</emphasis> 6987ea1d6981Smrg specify the range of buttons for which actions were requested, and the 6988ea1d6981Smrg<emphasis> 6989ea1d6981SmrgfirstBtnRtrn</emphasis> 6990ea1d6981Smrg and <emphasis> 6991ea1d6981SmrgnBtnsRtrn </emphasis> 6992ea1d6981Smrgvalues specify the range of buttons for which actions are reported. The 6993ea1d6981Smrg<emphasis> 6994ea1d6981SmrgactionsRtrn</emphasis> 6995ea1d6981Smrg list has <emphasis> 6996ea1d6981SmrgnButtonsRtrn</emphasis> 6997ea1d6981Smrg entries which contain the actions bound to the specified buttons on the 6998ea1d6981Smrgdevice. Any buttons for which actions were requested but not returned have the 6999ea1d6981Smrgaction <emphasis> 7000ea1d6981SmrgNoAction()</emphasis> 7001ea1d6981Smrg. 7002ea1d6981Smrg</para> 7003ea1d6981Smrg 7004ea1d6981Smrg 7005ea1d6981Smrg<para> 7006ea1d6981SmrgIf any indicator information is reported, the leds list contains one element 7007ea1d6981Smrgfor each requested feedback. For example, if <emphasis> 7008ea1d6981SmrgledClass</emphasis> 7009ea1d6981Smrg is <emphasis> 7010ea1d6981SmrgXkbAllXIClasses</emphasis> 7011ea1d6981Smrg and <emphasis> 7012ea1d6981SmrgledID</emphasis> 7013ea1d6981Smrg is <emphasis> 7014ea1d6981SmrgXkbAllXIIds</emphasis> 7015ea1d6981Smrg, <emphasis> 7016ea1d6981Smrgleds</emphasis> 7017ea1d6981Smrg describes all of the indicators on the device and has one element for each 7018ea1d6981Smrgkeyboard or led class feedback defined for the device. If any information at 7019ea1d6981Smrgall is reported about a feedback, the set of physical indicators is also 7020ea1d6981Smrgreported in the <emphasis> 7021ea1d6981SmrgphysIndicators</emphasis> 7022ea1d6981Smrg field of the corresponding element of <emphasis> 7023ea1d6981Smrgleds</emphasis> 7024ea1d6981Smrg. 7025ea1d6981Smrg</para> 7026ea1d6981Smrg 7027ea1d6981Smrg 7028ea1d6981Smrg<para> 7029ea1d6981SmrgIf the server supports assignment of indicator maps to extension device 7030ea1d6981Smrgindicators, and if the <emphasis> 7031ea1d6981SmrgXkbXI_IndicatorMaps</emphasis> 7032ea1d6981Smrg flag is set in <emphasis> 7033ea1d6981Smrgwanted</emphasis> 7034ea1d6981Smrg, each member of <emphasis> 7035ea1d6981Smrgleds</emphasis> 7036ea1d6981Smrg reports any indicators on the corresponding feedback to which names have been 7037ea1d6981Smrgassigned. Any indicators for which no map is reported have the default map, 7038ea1d6981Smrgwhich allows explicit changes and does not request any automatic changes. 7039ea1d6981Smrg</para> 7040ea1d6981Smrg 7041ea1d6981Smrg 7042ea1d6981Smrg<para> 7043ea1d6981SmrgIf the server supports assignment of indicator names to extension device 7044ea1d6981Smrgindicators, and the <emphasis> 7045ea1d6981SmrgXkbXI_IndicatorNames</emphasis> 7046ea1d6981Smrg flag is set in <emphasis> 7047ea1d6981Smrgwanted</emphasis> 7048ea1d6981Smrg, each member of <emphasis> 7049ea1d6981Smrgleds</emphasis> 7050ea1d6981Smrg reports any indicators on the corresponding feedback to which names have been 7051ea1d6981Smrgassigned. Any indicators for which no name is reported have the name <emphasis> 7052ea1d6981SmrgNone</emphasis> 7053ea1d6981Smrg. 7054ea1d6981Smrg</para> 7055ea1d6981Smrg 7056ea1d6981Smrg 7057ea1d6981Smrg<para> 7058ea1d6981SmrgIf the server supports XKB access to the state of extension device indicators, 7059ea1d6981Smrgand the <emphasis> 7060ea1d6981SmrgXkbXI_IndicatorState</emphasis> 7061ea1d6981Smrg flag is set in wanted, each member of leds reports the state of the indicators 7062ea1d6981Smrgon the corresponding feedback. 7063ea1d6981Smrg</para> 7064ea1d6981Smrg 7065ea1d6981Smrg 7066ea1d6981Smrg<para> 7067ea1d6981SmrgIf any unsupported features are requested, and the requesting client has 7068ea1d6981Smrgselected for them, the server sends the client an <emphasis> 7069ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 7070ea1d6981Smrg event which indicates that an unsupported feature was requested. This event is 7071ea1d6981Smrgonly generated if the client which issued the unsupported request has selected 7072ea1d6981Smrgfor it and, if generated, is not sent to any other clients. 7073ea1d6981Smrg</para> 7074ea1d6981Smrg 7075ea1d6981Smrg 7076ea1d6981Smrg 7077ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 7078ea1d6981Smrg<?dbfo keep-together="always" ?> 7079ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 7080ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 7081ea1d6981Smrg <thead> 7082ea1d6981Smrg <row> 7083ea1d6981Smrg <entry role='protoname'>XkbSetDeviceInfo</entry> 7084ea1d6981Smrg </row> 7085ea1d6981Smrg </thead> 7086ea1d6981Smrg <tbody> 7087ea1d6981Smrg <row> 7088ea1d6981Smrg <entry role='protoargs'>deviceSpec: KB_DEVICESPEC</entry> 7089ea1d6981Smrg </row> 7090ea1d6981Smrg <row> 7091ea1d6981Smrg <entry role='protoname'> 7092ea1d6981Smrgchange: KB_XIDEVFEATUREMASK</entry> 7093ea1d6981Smrg </row> 7094ea1d6981Smrg <row> 7095ea1d6981Smrg <entry role='protoname'> 7096ea1d6981SmrgfirstBtn, nBtns: CARD8</entry> 7097ea1d6981Smrg </row> 7098ea1d6981Smrg <row> 7099ea1d6981Smrg <entry role='protoname'> 7100ea1d6981SmrgbtnActions:LISTofKB_ACTION</entry> 7101ea1d6981Smrg </row> 7102ea1d6981Smrg <row> 7103ea1d6981Smrg <entry role='protoname'> 7104ea1d6981Smrgleds: LISTofKB_DEVICELEDINFO</entry> 7105ea1d6981Smrg </row> 7106ea1d6981Smrg 7107ea1d6981Smrg <row> 7108ea1d6981Smrg <entry role='protoerror'>Errors: <emphasis> 7109ea1d6981SmrgDevice</emphasis> 7110ea1d6981Smrg, <emphasis> 7111ea1d6981SmrgMatch</emphasis> 7112ea1d6981Smrg, <emphasis> 7113ea1d6981SmrgAccess</emphasis> 7114ea1d6981Smrg, <emphasis> 7115ea1d6981SmrgAlloc</emphasis> 7116ea1d6981Smrg</entry> 7117ea1d6981Smrg </row> 7118ea1d6981Smrg 7119ea1d6981Smrg </tbody> 7120ea1d6981Smrg </tgroup> 7121ea1d6981Smrg</informaltable> 7122ea1d6981Smrg 7123ea1d6981Smrg<para> 7124ea1d6981SmrgChanges a subset of the XKB-supplied information about the input device 7125ea1d6981Smrgspecified by <emphasis> 7126ea1d6981SmrgdeviceSpec</emphasis> 7127ea1d6981Smrg. Unlike most XKB requests, the device specified for <emphasis> 7128ea1d6981SmrgXkbGetDeviceInfo</emphasis> 7129ea1d6981Smrg need not be a keyboard device. Nonetheless, a <emphasis> 7130ea1d6981SmrgKeyboard</emphasis> 7131ea1d6981Smrg error results if <emphasis> 7132ea1d6981SmrgdeviceSpec</emphasis> 7133ea1d6981Smrg does not specify a valid core or input extension device 7134ea1d6981Smrg</para> 7135ea1d6981Smrg 7136ea1d6981Smrg 7137ea1d6981Smrg<para> 7138ea1d6981SmrgThe <emphasis> 7139ea1d6981Smrgchange</emphasis> 7140ea1d6981Smrg field specifies the features for which new values are supplied, and controls 7141ea1d6981Smrgthe interpretation of the other request fields. 7142ea1d6981Smrg</para> 7143ea1d6981Smrg 7144ea1d6981Smrg 7145ea1d6981Smrg<para> 7146ea1d6981SmrgIf the server does not support assignment of XKB actions to extension device 7147ea1d6981Smrgbuttons, the <emphasis> 7148ea1d6981SmrgfirstButton</emphasis> 7149ea1d6981Smrg and <emphasis> 7150ea1d6981SmrgnButtons</emphasis> 7151ea1d6981Smrg fields are ignored. 7152ea1d6981Smrg</para> 7153ea1d6981Smrg 7154ea1d6981Smrg 7155ea1d6981Smrg<para> 7156ea1d6981SmrgOtherwise, if the <emphasis> 7157ea1d6981SmrgXkbXI_ButtonActions</emphasis> 7158ea1d6981Smrg flag is set in <emphasis> 7159ea1d6981Smrgchange</emphasis> 7160ea1d6981Smrg, the <emphasis> 7161ea1d6981SmrgfirstBtn</emphasis> 7162ea1d6981Smrg and <emphasis> 7163ea1d6981SmrgnBtns</emphasis> 7164ea1d6981Smrg fields specify a range of buttons for which actions are specified in this 7165ea1d6981Smrgrequest. If the device has no buttons or if <emphasis> 7166ea1d6981SmrgfirstBtn</emphasis> 7167ea1d6981Smrg and <emphasis> 7168ea1d6981SmrgnBtns</emphasis> 7169ea1d6981Smrg specify illegal buttons, a <emphasis> 7170ea1d6981SmrgMatch</emphasis> 7171ea1d6981Smrg error results. 7172ea1d6981Smrg</para> 7173ea1d6981Smrg 7174ea1d6981Smrg 7175ea1d6981Smrg<para> 7176ea1d6981SmrgEach element of the <emphasis> 7177ea1d6981Smrgleds</emphasis> 7178ea1d6981Smrg list describes the changes for a single keyboard or led feedback. If the 7179ea1d6981Smrg<emphasis> 7180ea1d6981SmrgledClass</emphasis> 7181ea1d6981Smrg field of any element of <emphasis> 7182ea1d6981Smrgleds</emphasis> 7183ea1d6981Smrg contains any value other than <emphasis> 7184ea1d6981SmrgKbdFeedbackClass</emphasis> 7185ea1d6981Smrg, <emphasis> 7186ea1d6981SmrgLedFeedbackClass</emphasis> 7187ea1d6981Smrg or <emphasis> 7188ea1d6981SmrgXkbDfltXIClass</emphasis> 7189ea1d6981Smrg, a <emphasis> 7190ea1d6981SmrgValue</emphasis> 7191ea1d6981Smrg error results. If the <emphasis> 7192ea1d6981SmrgledId</emphasis> 7193ea1d6981Smrg field of any element of leds contains any value other than a valid input 7194ea1d6981Smrgextension feedback identifier or <emphasis> 7195ea1d6981SmrgXkbDfltXIId</emphasis> 7196ea1d6981Smrg, a <emphasis> 7197ea1d6981SmrgValue</emphasis> 7198ea1d6981Smrg error results. If both fields are valid, but the device has no matching 7199ea1d6981Smrgfeedback, a <emphasis> 7200ea1d6981SmrgMatch</emphasis> 7201ea1d6981Smrg error results. 7202ea1d6981Smrg</para> 7203ea1d6981Smrg 7204ea1d6981Smrg 7205ea1d6981Smrg<para> 7206ea1d6981SmrgThe fields of each element of <emphasis> 7207ea1d6981Smrgleds</emphasis> 7208ea1d6981Smrg are interpreted as follows: 7209ea1d6981Smrg</para> 7210ea1d6981Smrg 7211ea1d6981Smrg<itemizedlist> 7212ea1d6981Smrg<listitem> 7213ea1d6981Smrg <para>If <emphasis> 7214ea1d6981SmrgXkbXI_IndicatorMaps</emphasis> 7215ea1d6981Smrg is set in <emphasis> 7216ea1d6981Smrgchange</emphasis> 7217ea1d6981Smrg and the server supports XKB assignment of indicator maps to the corresponding 7218ea1d6981Smrgfeedback, the maps for all indicators on the corresponding feedback are taken 7219ea1d6981Smrgfrom <emphasis> 7220ea1d6981Smrgleds</emphasis> 7221ea1d6981Smrg. If the server does not support this feature, any maps specified in <emphasis> 7222ea1d6981Smrgleds</emphasis> 7223ea1d6981Smrg are ignored. 7224ea1d6981Smrg </para> 7225ea1d6981Smrg</listitem> 7226ea1d6981Smrg<listitem> 7227ea1d6981Smrg <para>If <emphasis> 7228ea1d6981SmrgXkbXI_IndicatorNames</emphasis> 7229ea1d6981Smrg is set in <emphasis> 7230ea1d6981Smrgchange</emphasis> 7231ea1d6981Smrg, and the server supports XKB assignment of names to indicators for the 7232ea1d6981Smrgcorresponding feedback, the names for all indicators on the corresponding 7233ea1d6981Smrgfeedback are taken from <emphasis> 7234ea1d6981Smrgleds</emphasis> 7235ea1d6981Smrg. If the server does not support this feature, any names specified in <emphasis> 7236ea1d6981Smrgleds</emphasis> 7237ea1d6981Smrg are ignored. Regardless of whether they are used, any names be a valid Atom or 7238ea1d6981Smrg<emphasis> 7239ea1d6981SmrgNone</emphasis> 7240ea1d6981Smrg, or an <emphasis> 7241ea1d6981SmrgAtom</emphasis> 7242ea1d6981Smrg error results. 7243ea1d6981Smrg </para> 7244ea1d6981Smrg</listitem> 7245ea1d6981Smrg<listitem> 7246ea1d6981Smrg <para>If <emphasis> 7247ea1d6981SmrgXkbXI_IndicatorState</emphasis> 7248ea1d6981Smrg is set in change, and the server supports XKB changes to extension device 7249ea1d6981Smrgindicator state, the server attempts to change the indicators on the 7250ea1d6981Smrgcorresponding feedback as specified by <emphasis> 7251ea1d6981Smrgleds</emphasis> 7252ea1d6981Smrg. Any indicator maps bound to the feedback are applied, so state changes might 7253ea1d6981Smrgbe blocked or have side-effects. 7254ea1d6981Smrg </para> 7255ea1d6981Smrg</listitem> 7256ea1d6981Smrg</itemizedlist> 7257ea1d6981Smrg 7258ea1d6981Smrg<para> 7259ea1d6981SmrgIf any unsupported features are requested, and the requesting client has 7260ea1d6981Smrgselected for them, the server sends the client an <emphasis> 7261ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 7262ea1d6981Smrg event which indicates that an unsupported feature was requested. This event is 7263ea1d6981Smrgonly generated if the client which issued the unsupported request has selected 7264ea1d6981Smrgfor it and, if generated, is not sent to any other clients. 7265ea1d6981Smrg</para> 7266ea1d6981Smrg 7267ea1d6981Smrg 7268ea1d6981Smrg</sect2> 7269ea1d6981Smrg<sect2 id='Debugging_the_X_Keyboard_Extension'> 7270ea1d6981Smrg<title>Debugging the X Keyboard Extension</title> 7271ea1d6981Smrg 7272ea1d6981Smrg 7273ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 7274ea1d6981Smrg<?dbfo keep-together="always" ?> 7275ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 7276ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 7277ea1d6981Smrg <thead> 7278ea1d6981Smrg <row> 7279ea1d6981Smrg <entry role='protoname'>XkbSetDebuggingFlags</entry> 7280ea1d6981Smrg </row> 7281ea1d6981Smrg </thead> 7282ea1d6981Smrg <tbody> 7283ea1d6981Smrg <row> 7284ea1d6981Smrg <entry role='protoargs'>affectFlags, flags: CARD32</entry> 7285ea1d6981Smrg </row> 7286ea1d6981Smrg <row> 7287ea1d6981Smrg <entry role='protoname'> 7288ea1d6981SmrgaffectCtrls, ctrls: CARD32</entry> 7289ea1d6981Smrg </row> 7290ea1d6981Smrg <row> 7291ea1d6981Smrg <entry role='protoname'> 7292ea1d6981Smrgmessage: STRING 7293ea1d6981Smrg </entry> 7294ea1d6981Smrg </row> 7295ea1d6981Smrg <row> 7296ea1d6981Smrg <entry role='protoreply'> 7297ea1d6981SmrgcurrentFlags, supportedFlags: CARD32 7298ea1d6981Smrg </entry> 7299ea1d6981Smrg </row> 7300ea1d6981Smrg <row> 7301ea1d6981Smrg <entry role='protoreply'> 7302ea1d6981SmrgcurrentCtrls, supportedCtrls: CARD32</entry> 7303ea1d6981Smrg </row> 7304ea1d6981Smrg 7305ea1d6981Smrg </tbody> 7306ea1d6981Smrg </tgroup> 7307ea1d6981Smrg</informaltable> 7308ea1d6981Smrg 7309ea1d6981Smrg<para> 7310ea1d6981SmrgThis request sets up various internal XKB debugging flags and controls. It is 7311ea1d6981Smrgintended for developer use and may be disabled in production servers. If 7312ea1d6981Smrgdisabled, <emphasis> 7313ea1d6981SmrgXkbSetDebuggingFlags</emphasis> 7314ea1d6981Smrg has no effect but returns <emphasis> 7315ea1d6981SmrgSuccess</emphasis> 7316ea1d6981Smrg. 7317ea1d6981Smrg</para> 7318ea1d6981Smrg 7319ea1d6981Smrg 7320ea1d6981Smrg<para> 7321ea1d6981SmrgThe <emphasis> 7322ea1d6981SmrgaffectFlags</emphasis> 7323ea1d6981Smrg field specifies the debugging flags to be changed, the <emphasis> 7324ea1d6981Smrgflags</emphasis> 7325ea1d6981Smrg field specifies new values for the changed flags. The interpretation of the 7326ea1d6981Smrgdebugging flags is implementation-specific, but flags are intended to control 7327ea1d6981Smrgdebugging output and should not otherwise affect the operation of the server. 7328ea1d6981Smrg</para> 7329ea1d6981Smrg 7330ea1d6981Smrg 7331ea1d6981Smrg<para> 7332ea1d6981SmrgThe <emphasis> 7333ea1d6981SmrgaffectCtrls</emphasis> 7334ea1d6981Smrg field specifies the debugging controls to be changed, the <emphasis> 7335ea1d6981Smrgctrls</emphasis> 7336ea1d6981Smrg field specifies new values for the changed controls. The interpretation of the 7337ea1d6981Smrgdebugging controls is implementation-specific, but debugging controls are 7338ea1d6981Smrgallowed to affect the behavior of the server. 7339ea1d6981Smrg</para> 7340ea1d6981Smrg 7341ea1d6981Smrg 7342ea1d6981Smrg<para> 7343ea1d6981SmrgThe <emphasis> 7344ea1d6981Smrgmessage</emphasis> 7345ea1d6981Smrg field provides a message that the X server can print in any logging or 7346ea1d6981Smrgdebugging files before changing the flags. The server must accept this field 7347ea1d6981Smrgbut it is not required to actually display it anywhere. 7348ea1d6981Smrg</para> 7349ea1d6981Smrg 7350ea1d6981Smrg 7351ea1d6981Smrg<para> 7352ea1d6981SmrgThe X Test Suite makes some assumptions about the implementation of locking 7353ea1d6981Smrgmodifier keys that do not apply when XKB is present. The <emphasis> 7354ea1d6981SmrgXkbDF_DisableLocks</emphasis> 7355ea1d6981Smrg debugging control provides a simple workaround to these test suite problems by 7356ea1d6981Smrgsimply disabling all locking keys. If <emphasis> 7357ea1d6981SmrgXkbDF_DisableLocks</emphasis> 7358ea1d6981Smrg is enabled, the <emphasis> 7359ea1d6981SmrgSA_LockMods</emphasis> 7360ea1d6981Smrg and <emphasis> 7361ea1d6981SmrgSA_LockGroup</emphasis> 7362ea1d6981Smrg actions behave like <emphasis> 7363ea1d6981SmrgSA_SetMods</emphasis> 7364ea1d6981Smrg and <emphasis> 7365ea1d6981SmrgSA_LockMods</emphasis> 7366ea1d6981Smrg, respectively. If it is disabled, <emphasis> 7367ea1d6981SmrgSA_LockMods</emphasis> 7368ea1d6981Smrg and <emphasis> 7369ea1d6981SmrgSA_LockGroup</emphasis> 7370ea1d6981Smrg actions behave normally. 7371ea1d6981Smrg</para> 7372ea1d6981Smrg 7373ea1d6981Smrg 7374ea1d6981Smrg<para> 7375ea1d6981SmrgImplementations are free to ignore the <emphasis> 7376ea1d6981SmrgXkbDF_DisableLocks</emphasis> 7377ea1d6981Smrg debugging control or to define others. 7378ea1d6981Smrg</para> 7379ea1d6981Smrg 7380ea1d6981Smrg 7381ea1d6981Smrg<para> 7382ea1d6981SmrgThe <emphasis> 7383ea1d6981SmrgcurrentFlags</emphasis> 7384ea1d6981Smrg return value reports the current setting for the debugging flags, if 7385ea1d6981Smrgapplicable. The <emphasis> 7386ea1d6981SmrgcurrentCtrls</emphasis> 7387ea1d6981Smrg return value reports the setting for the debugging controls, if applicable. 7388ea1d6981SmrgThe <emphasis> 7389ea1d6981SmrgsupportedFlags</emphasis> 7390ea1d6981Smrg and <emphasis> 7391ea1d6981SmrgsupportedCtrls</emphasis> 7392ea1d6981Smrg fields report the flags and controls that are recognized by the 7393ea1d6981Smrgimplementation. Attempts to change unsupported fields or controls are silently 7394ea1d6981Smrgignored. 7395ea1d6981Smrg</para> 7396ea1d6981Smrg 7397ea1d6981Smrg 7398ea1d6981Smrg<para> 7399ea1d6981SmrgIf the <emphasis> 7400ea1d6981SmrgXkbSetDebuggingFlags</emphasis> 7401ea1d6981Smrg request contains more data than expected, the server ignores the extra data, 7402ea1d6981Smrgbut no error results. If the request has less data than expected, a <emphasis> 7403ea1d6981SmrgLength</emphasis> 7404ea1d6981Smrg error results. 7405ea1d6981Smrg</para> 7406ea1d6981Smrg 7407ea1d6981Smrg 7408ea1d6981Smrg<para> 7409ea1d6981SmrgIf the <emphasis> 7410ea1d6981SmrgXkbSetDebuggingFlags</emphasis> 7411ea1d6981Smrg reply contains more data than expected, the client just ignores any 7412ea1d6981Smrguninterpreted data without reporting an error. If the reply has less data than 7413ea1d6981Smrgexpected, a <emphasis> 7414ea1d6981SmrgLength</emphasis> 7415ea1d6981Smrg error results. 7416ea1d6981Smrg</para> 7417ea1d6981Smrg 7418ea1d6981Smrg 7419ea1d6981Smrg</sect2> 7420ea1d6981Smrg</sect1> 7421ea1d6981Smrg<sect1 id='Events'> 7422ea1d6981Smrg<title>Events</title> 7423ea1d6981Smrg 7424ea1d6981Smrg<para> 7425ea1d6981SmrgAll XKB events report the time at which they occurred in a field named 7426ea1d6981Smrg<emphasis> 7427ea1d6981Smrgtime</emphasis> 7428ea1d6981Smrg and the device on which they occurred in a field named <emphasis> 7429ea1d6981SmrgdeviceID</emphasis> 7430ea1d6981Smrg. XKB uses a single X event code for all events and uses a common field to 7431ea1d6981Smrgdistinguish XKB event type. 7432ea1d6981Smrg</para> 7433ea1d6981Smrg 7434ea1d6981Smrg 7435ea1d6981Smrg<sect2 id='Tracking_Keyboard_Replacement'> 7436ea1d6981Smrg<title>Tracking Keyboard Replacement</title> 7437ea1d6981Smrg 7438ea1d6981Smrg 7439ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 7440ea1d6981Smrg<?dbfo keep-together="always" ?> 7441ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 7442ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 7443ea1d6981Smrg <thead> 7444ea1d6981Smrg <row> 7445ea1d6981Smrg <entry role='protoname'>XkbNewKeyboardNotify</entry> 7446ea1d6981Smrg </row> 7447ea1d6981Smrg </thead> 7448ea1d6981Smrg <tbody> 7449ea1d6981Smrg <row> 7450ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 7451ea1d6981Smrg </row> 7452ea1d6981Smrg <row> 7453ea1d6981Smrg <entry role='protoname'> 7454ea1d6981SmrgdeviceID: CARD8</entry> 7455ea1d6981Smrg </row> 7456ea1d6981Smrg <row> 7457ea1d6981Smrg <entry role='protoname'> 7458ea1d6981Smrgchanged: KB_NKNDETAILMASK</entry> 7459ea1d6981Smrg </row> 7460ea1d6981Smrg <row> 7461ea1d6981Smrg <entry role='protoname'> 7462ea1d6981SmrgminKeyCode, maxKeyCode: KEYCODE</entry> 7463ea1d6981Smrg </row> 7464ea1d6981Smrg <row> 7465ea1d6981Smrg <entry role='protoname'> 7466ea1d6981SmrgoldDeviceID: CARD8</entry> 7467ea1d6981Smrg </row> 7468ea1d6981Smrg <row> 7469ea1d6981Smrg <entry role='protoname'> 7470ea1d6981SmrgoldMinKeyCode, oldMaxKeyCode: KEYCODE</entry> 7471ea1d6981Smrg </row> 7472ea1d6981Smrg <row> 7473ea1d6981Smrg <entry role='protoname'> 7474ea1d6981SmrgrequestMajor, requestMinor: CARD8</entry> 7475ea1d6981Smrg </row> 7476ea1d6981Smrg 7477ea1d6981Smrg </tbody> 7478ea1d6981Smrg </tgroup> 7479ea1d6981Smrg</informaltable> 7480ea1d6981Smrg 7481ea1d6981Smrg<para> 7482ea1d6981SmrgAn <emphasis> 7483ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 7484ea1d6981Smrg event reports that a new core keyboard has been installed. New keyboard notify 7485ea1d6981Smrgevents can be generated: 7486ea1d6981Smrg</para> 7487ea1d6981Smrg 7488ea1d6981Smrg<itemizedlist> 7489ea1d6981Smrg<listitem> 7490ea1d6981Smrg <para>When the X server detects that the keyboard was changed. 7491ea1d6981Smrg </para> 7492ea1d6981Smrg</listitem> 7493ea1d6981Smrg<listitem> 7494ea1d6981Smrg <para>When a client installs a new extension device as the core keyboard 7495ea1d6981Smrgusing the X Input Extension <emphasis> 7496ea1d6981SmrgChangeKeyboardDevice</emphasis> 7497ea1d6981Smrg request. 7498ea1d6981Smrg </para> 7499ea1d6981Smrg</listitem> 7500ea1d6981Smrg<listitem> 7501ea1d6981Smrg <para>When a client issues an <emphasis> 7502ea1d6981SmrgXkbGetMapByName</emphasis> 7503ea1d6981Smrg request which changes the keycodes range or geometry. 7504ea1d6981Smrg </para> 7505ea1d6981Smrg</listitem> 7506ea1d6981Smrg</itemizedlist> 7507ea1d6981Smrg 7508ea1d6981Smrg<para> 7509ea1d6981SmrgThe <emphasis> 7510ea1d6981Smrgchanged</emphasis> 7511ea1d6981Smrg field of the event reports the aspects of the keyboard that have changed, and 7512ea1d6981Smrgcan contain any combination of the event details for this event: 7513ea1d6981Smrg</para> 7514ea1d6981Smrg 7515ea1d6981Smrg<informaltable frame='topbot'> 7516ea1d6981Smrg<?dbfo keep-together="always" ?> 7517ea1d6981Smrg<tgroup cols='2' align='left' colsep='0' rowsep='0'> 7518ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 7519ea1d6981Smrg<colspec colname='c2' colwidth='2.0*'/> 7520ea1d6981Smrg<thead> 7521ea1d6981Smrg <row rowsep='1'> 7522ea1d6981Smrg <entry>Bit in Changed</entry> 7523ea1d6981Smrg <entry>Meaning</entry> 7524ea1d6981Smrg </row> 7525ea1d6981Smrg</thead> 7526ea1d6981Smrg<tbody> 7527ea1d6981Smrg <row> 7528ea1d6981Smrg <entry>NKN_Keycodes</entry> 7529ea1d6981Smrg <entry>The new keyboard has a different minimum or maximum keycode.</entry> 7530ea1d6981Smrg </row> 7531ea1d6981Smrg <row> 7532ea1d6981Smrg <entry>NKN_Geometry</entry> 7533ea1d6981Smrg <entry>The new keyboard has a different keyboard geometry.</entry> 7534ea1d6981Smrg </row> 7535ea1d6981Smrg <row> 7536ea1d6981Smrg <entry>NKN_DeviceID</entry> 7537ea1d6981Smrg <entry>The new keyboard has a new X Input Extension device 7538ea1d6981Smrgidentifier</entry> 7539ea1d6981Smrg </row> 7540ea1d6981Smrg</tbody> 7541ea1d6981Smrg</tgroup> 7542ea1d6981Smrg</informaltable> 7543ea1d6981Smrg 7544ea1d6981Smrg<para> 7545ea1d6981SmrgThe server sends an <emphasis> 7546ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 7547ea1d6981Smrg event to a client only if at least one of the bits that is set in the 7548ea1d6981Smrg<emphasis> 7549ea1d6981Smrgchanged</emphasis> 7550ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 7551ea1d6981Smrgclient. 7552ea1d6981Smrg</para> 7553ea1d6981Smrg 7554ea1d6981Smrg 7555ea1d6981Smrg<para> 7556ea1d6981SmrgThe <emphasis> 7557ea1d6981SmrgminKeyCode</emphasis> 7558ea1d6981Smrg and <emphasis> 7559ea1d6981SmrgmaxKeyCode</emphasis> 7560ea1d6981Smrg fields report the minimum and maximum keycodes that can be returned by the new 7561ea1d6981Smrgkeyboard. The <emphasis> 7562ea1d6981SmrgoldMinKeyCode</emphasis> 7563ea1d6981Smrg and <emphasis> 7564ea1d6981SmrgoldMaxKeyCode</emphasis> 7565ea1d6981Smrg fields report the minimum and maximum values that could be returned before the 7566ea1d6981Smrgchange. This event always reports all four values, but the old and new values 7567ea1d6981Smrgare the same unless <emphasis> 7568ea1d6981SmrgNKN_Keycodes</emphasis> 7569ea1d6981Smrg is set in <emphasis> 7570ea1d6981Smrgchanged</emphasis> 7571ea1d6981Smrg. 7572ea1d6981Smrg</para> 7573ea1d6981Smrg 7574ea1d6981Smrg 7575ea1d6981Smrg<para> 7576ea1d6981SmrgOnce a client receives a new keyboard notify event which reports a new keycode 7577ea1d6981Smrgrange, the X server reports events from all keys in the new range to that 7578ea1d6981Smrgclient. Clients that do not request or receive new keyboard notify events 7579ea1d6981Smrgreceive events only from keys that fall in the last range for legal keys 7580ea1d6981Smrgreported to that client. See <link linkend='Replacing_the_Keyboard_On_the_Fly'> 7581ea1d6981SmrgReplacing the Keyboard "On-the-Fly"</link> for a more detailed explanation. 7582ea1d6981Smrg</para> 7583ea1d6981Smrg 7584ea1d6981Smrg 7585ea1d6981Smrg<para> 7586ea1d6981SmrgIf <emphasis> 7587ea1d6981SmrgNKN_Keycodes</emphasis> 7588ea1d6981Smrg is set in <emphasis> 7589ea1d6981Smrgchanged</emphasis> 7590ea1d6981Smrg, the <emphasis> 7591ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 7592ea1d6981Smrg event subsumes all other change notification events (e.g. <emphasis> 7593ea1d6981SmrgXkbMapNotify</emphasis> 7594ea1d6981Smrg, <emphasis> 7595ea1d6981SmrgXkbNamesNotify</emphasis> 7596ea1d6981Smrg) that would otherwise result from the keyboard change. Clients who receive an 7597ea1d6981Smrg<emphasis> 7598ea1d6981SmrgXkbNewKeyboardNotify</emphasis> 7599ea1d6981Smrg event should assume that all other aspects of the keyboard mapping have 7600ea1d6981Smrgchanged and regenerate the entire local copy of the keyboard description. 7601ea1d6981Smrg</para> 7602ea1d6981Smrg 7603ea1d6981Smrg 7604ea1d6981Smrg<para> 7605ea1d6981SmrgThe <emphasis> 7606ea1d6981SmrgdeviceID</emphasis> 7607ea1d6981Smrg field reports the X Input Extension device identifier of the new keyboard 7608ea1d6981Smrgdevice; <emphasis> 7609ea1d6981SmrgoldDeviceID</emphasis> 7610ea1d6981Smrg reports the device identifier before the change. This event always includes 7611ea1d6981Smrgboth values, but they are the same unless <emphasis> 7612ea1d6981SmrgNKN_DeviceID</emphasis> 7613ea1d6981Smrg is set in <emphasis> 7614ea1d6981Smrgchanged</emphasis> 7615ea1d6981Smrg. If the server does not support the X Input Extension, both fields have the 7616ea1d6981Smrgvalue <emphasis> 7617ea1d6981Smrg0</emphasis> 7618ea1d6981Smrg. 7619ea1d6981Smrg</para> 7620ea1d6981Smrg 7621ea1d6981Smrg 7622ea1d6981Smrg<para> 7623ea1d6981SmrgThe <emphasis> 7624ea1d6981SmrgrequestMajor</emphasis> 7625ea1d6981Smrg and <emphasis> 7626ea1d6981SmrgrequestMinor</emphasis> 7627ea1d6981Smrg fields report the major and minor opcode of the request that caused the 7628ea1d6981Smrgkeyboard change. If the keyboard change was not caused by some client request, 7629ea1d6981Smrgboth fields have the value <emphasis> 7630ea1d6981Smrg0</emphasis> 7631ea1d6981Smrg. 7632ea1d6981Smrg</para> 7633ea1d6981Smrg 7634ea1d6981Smrg 7635ea1d6981Smrg</sect2> 7636ea1d6981Smrg<sect2 id='Tracking_Keyboard_Mapping_Changes'> 7637ea1d6981Smrg<title>Tracking Keyboard Mapping Changes</title> 7638ea1d6981Smrg 7639ea1d6981Smrg 7640ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 7641ea1d6981Smrg<?dbfo keep-together="always" ?> 7642ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 7643ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 7644ea1d6981Smrg <thead> 7645ea1d6981Smrg <row> 7646ea1d6981Smrg <entry role='protoname'>XkbMapNotify</entry> 7647ea1d6981Smrg </row> 7648ea1d6981Smrg </thead> 7649ea1d6981Smrg <tbody> 7650ea1d6981Smrg <row> 7651ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 7652ea1d6981Smrg </row> 7653ea1d6981Smrg <row> 7654ea1d6981Smrg <entry role='protoname'> 7655ea1d6981SmrgdeviceID: CARD8</entry> 7656ea1d6981Smrg </row> 7657ea1d6981Smrg <row> 7658ea1d6981Smrg <entry role='protoname'> 7659ea1d6981SmrgptrBtnActions: CARD8</entry> 7660ea1d6981Smrg </row> 7661ea1d6981Smrg <row> 7662ea1d6981Smrg <entry role='protoname'> 7663ea1d6981Smrgchanged: KB_MAPPARTMASK</entry> 7664ea1d6981Smrg </row> 7665ea1d6981Smrg <row> 7666ea1d6981Smrg <entry role='protoname'> 7667ea1d6981SmrgminKeyCode, maxKeyCode: KEYCODE</entry> 7668ea1d6981Smrg </row> 7669ea1d6981Smrg <row> 7670ea1d6981Smrg <entry role='protoname'> 7671ea1d6981SmrgfirstType, nTypes: CARD8</entry> 7672ea1d6981Smrg </row> 7673ea1d6981Smrg <row> 7674ea1d6981Smrg <entry role='protoname'> 7675ea1d6981SmrgfirstKeySym, firstKeyAction: KEYCODE</entry> 7676ea1d6981Smrg </row> 7677ea1d6981Smrg <row> 7678ea1d6981Smrg <entry role='protoname'> 7679ea1d6981SmrgnKeySyms, nKeyActions: CARD8</entry> 7680ea1d6981Smrg </row> 7681ea1d6981Smrg <row> 7682ea1d6981Smrg <entry role='protoname'> 7683ea1d6981SmrgfirstKeyBehavior, firstKeyExplicit: KEYCODE</entry> 7684ea1d6981Smrg </row> 7685ea1d6981Smrg <row> 7686ea1d6981Smrg <entry role='protoname'> 7687ea1d6981SmrgnKeyBehaviors, nKeyExplicit: CARD8</entry> 7688ea1d6981Smrg </row> 7689ea1d6981Smrg <row> 7690ea1d6981Smrg <entry role='protoname'> 7691ea1d6981SmrgvirtualMods: KB_VMODMASK</entry> 7692ea1d6981Smrg </row> 7693ea1d6981Smrg <row> 7694ea1d6981Smrg <entry role='protoname'> 7695ea1d6981SmrgfirstModMapKey, firstVModMapKey: KEYCODE</entry> 7696ea1d6981Smrg </row> 7697ea1d6981Smrg <row> 7698ea1d6981Smrg <entry role='protoname'> 7699ea1d6981SmrgnModMapKeys, nVModMapKeys: CARD8</entry> 7700ea1d6981Smrg </row> 7701ea1d6981Smrg 7702ea1d6981Smrg </tbody> 7703ea1d6981Smrg </tgroup> 7704ea1d6981Smrg</informaltable> 7705ea1d6981Smrg 7706ea1d6981Smrg<para> 7707ea1d6981SmrgAn <emphasis> 7708ea1d6981SmrgXkbMapNotify</emphasis> 7709ea1d6981Smrg event reports that some aspect of XKB map for a keyboard has changed. Map 7710ea1d6981Smrgnotify events can be generated whenever some aspect of the keyboard map is 7711ea1d6981Smrgchanged by an XKB or core protocol request. 7712ea1d6981Smrg</para> 7713ea1d6981Smrg 7714ea1d6981Smrg 7715ea1d6981Smrg<para> 7716ea1d6981SmrgThe <emphasis> 7717ea1d6981SmrgdeviceID</emphasis> 7718ea1d6981Smrg field reports the keyboard for which some map component has changed and the 7719ea1d6981Smrg<emphasis> 7720ea1d6981Smrgchanged</emphasis> 7721ea1d6981Smrg field reports the components with new values, and can contain any of the 7722ea1d6981Smrgvalues that are legal for the <emphasis> 7723ea1d6981Smrgfull</emphasis> 7724ea1d6981Smrg and <emphasis> 7725ea1d6981Smrgpartial</emphasis> 7726ea1d6981Smrg fields of the <emphasis> 7727ea1d6981SmrgXkbGetMap</emphasis> 7728ea1d6981Smrg request. The server sends an <emphasis> 7729ea1d6981SmrgXkbMapNotify</emphasis> 7730ea1d6981Smrg event to a client only if at least one of the bits that is set in the 7731ea1d6981Smrg<emphasis> 7732ea1d6981Smrgchanged</emphasis> 7733ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 7734ea1d6981Smrgclient. 7735ea1d6981Smrg</para> 7736ea1d6981Smrg 7737ea1d6981Smrg 7738ea1d6981Smrg<para> 7739ea1d6981SmrgThe <emphasis> 7740ea1d6981SmrgminKeyCode</emphasis> 7741ea1d6981Smrg and <emphasis> 7742ea1d6981SmrgmaxKeyCode</emphasis> 7743ea1d6981Smrg fields report the range of keycodes that are legal on the keyboard for which 7744ea1d6981Smrgthe change is being reported. 7745ea1d6981Smrg</para> 7746ea1d6981Smrg 7747ea1d6981Smrg 7748ea1d6981Smrg<para> 7749ea1d6981SmrgIf <emphasis> 7750ea1d6981SmrgXkbKeyTypesMask</emphasis> 7751ea1d6981Smrg is set in <emphasis> 7752ea1d6981Smrgchanged</emphasis> 7753ea1d6981Smrg, the <emphasis> 7754ea1d6981SmrgfirstType</emphasis> 7755ea1d6981Smrg and <emphasis> 7756ea1d6981SmrgnTypes</emphasis> 7757ea1d6981Smrg fields report a range of key types that includes all changed types. Otherwise, 7758ea1d6981Smrgboth fields are <emphasis> 7759ea1d6981Smrg0</emphasis> 7760ea1d6981Smrg. 7761ea1d6981Smrg</para> 7762ea1d6981Smrg 7763ea1d6981Smrg 7764ea1d6981Smrg<para> 7765ea1d6981SmrgIf <emphasis> 7766ea1d6981SmrgXkbKeySymsMask</emphasis> 7767ea1d6981Smrg is set in <emphasis> 7768ea1d6981Smrgchanged</emphasis> 7769ea1d6981Smrg, the <emphasis> 7770ea1d6981SmrgfirstKeySym</emphasis> 7771ea1d6981Smrg and <emphasis> 7772ea1d6981SmrgnKeySyms</emphasis> 7773ea1d6981Smrg fields report a range of keycodes that includes all keys with new symbols. 7774ea1d6981SmrgOtherwise, both fields are <emphasis> 7775ea1d6981Smrg0</emphasis> 7776ea1d6981Smrg. 7777ea1d6981Smrg</para> 7778ea1d6981Smrg 7779ea1d6981Smrg 7780ea1d6981Smrg<para> 7781ea1d6981SmrgIf <emphasis> 7782ea1d6981SmrgXkbKeyActionsMask</emphasis> 7783ea1d6981Smrg is set in <emphasis> 7784ea1d6981Smrgchanged</emphasis> 7785ea1d6981Smrg, the <emphasis> 7786ea1d6981SmrgfirstKeyAction</emphasis> 7787ea1d6981Smrg and <emphasis> 7788ea1d6981SmrgnKeyActions</emphasis> 7789ea1d6981Smrg fields report a range of keycodes that includes all keys with new actions. 7790ea1d6981SmrgOtherwise, both fields are <emphasis> 7791ea1d6981Smrg0</emphasis> 7792ea1d6981Smrg. 7793ea1d6981Smrg</para> 7794ea1d6981Smrg 7795ea1d6981Smrg 7796ea1d6981Smrg<para> 7797ea1d6981SmrgIf <emphasis> 7798ea1d6981SmrgXkbKeyBehaviorsMask</emphasis> 7799ea1d6981Smrg is set in <emphasis> 7800ea1d6981Smrgchanged</emphasis> 7801ea1d6981Smrg, the <emphasis> 7802ea1d6981SmrgfirstKeyBehavior </emphasis> 7803ea1d6981Smrgand <emphasis> 7804ea1d6981SmrgnKeyBehaviors</emphasis> 7805ea1d6981Smrg fields report a range of keycodes that includes all keys with new key 7806ea1d6981Smrgbehavior. Otherwise, both fields are <emphasis> 7807ea1d6981Smrg0</emphasis> 7808ea1d6981Smrg. 7809ea1d6981Smrg</para> 7810ea1d6981Smrg 7811ea1d6981Smrg 7812ea1d6981Smrg<para> 7813ea1d6981SmrgIf <emphasis> 7814ea1d6981SmrgXkbVirtualModsMask</emphasis> 7815ea1d6981Smrg is set in <emphasis> 7816ea1d6981Smrgchanged</emphasis> 7817ea1d6981Smrg, <emphasis> 7818ea1d6981SmrgvirtualMods</emphasis> 7819ea1d6981Smrg contains all virtual modifiers to which a new set of real modifiers is bound. 7820ea1d6981SmrgOtherwise, <emphasis> 7821ea1d6981SmrgvirtualMods</emphasis> 7822ea1d6981Smrg is <emphasis> 7823ea1d6981Smrg0</emphasis> 7824ea1d6981Smrg. 7825ea1d6981Smrg</para> 7826ea1d6981Smrg 7827ea1d6981Smrg 7828ea1d6981Smrg<para> 7829ea1d6981SmrgIf <emphasis> 7830ea1d6981SmrgXkbExplicitComponentsMask</emphasis> 7831ea1d6981Smrg is set in <emphasis> 7832ea1d6981Smrgchanged</emphasis> 7833ea1d6981Smrg, the <emphasis> 7834ea1d6981SmrgfirstKeyExplicit</emphasis> 7835ea1d6981Smrg and <emphasis> 7836ea1d6981SmrgnKeyExplicit</emphasis> 7837ea1d6981Smrg fields report a range of keycodes that includes all keys with changed explicit 7838ea1d6981Smrgcomponents. Otherwise, both fields are <emphasis> 7839ea1d6981Smrg0</emphasis> 7840ea1d6981Smrg. 7841ea1d6981Smrg</para> 7842ea1d6981Smrg 7843ea1d6981Smrg 7844ea1d6981Smrg<para> 7845ea1d6981SmrgIf <emphasis> 7846ea1d6981SmrgXkbModifierMapMask</emphasis> 7847ea1d6981Smrg is set in <emphasis> 7848ea1d6981Smrgchanged</emphasis> 7849ea1d6981Smrg, the <emphasis> 7850ea1d6981SmrgfirstModMapKey</emphasis> 7851ea1d6981Smrg and <emphasis> 7852ea1d6981SmrgnModMapKeys</emphasis> 7853ea1d6981Smrg fields report a range of keycodes that includes all keys with changed modifier 7854ea1d6981Smrgbindings. Otherwise, both fields are <emphasis> 7855ea1d6981Smrg0</emphasis> 7856ea1d6981Smrg. 7857ea1d6981Smrg</para> 7858ea1d6981Smrg 7859ea1d6981Smrg 7860ea1d6981Smrg<para> 7861ea1d6981SmrgIf <emphasis> 7862ea1d6981SmrgXkbVirtualModMapMask</emphasis> 7863ea1d6981Smrg is set in <emphasis> 7864ea1d6981Smrgchanged</emphasis> 7865ea1d6981Smrg, the <emphasis> 7866ea1d6981SmrgfirstVModMapKey</emphasis> 7867ea1d6981Smrg and <emphasis> 7868ea1d6981SmrgnVModMapKeys</emphasis> 7869ea1d6981Smrg fields report a range of keycodes that includes all keys with changed virtual 7870ea1d6981Smrgmodifier mappings. Otherwise, both fields are <emphasis> 7871ea1d6981Smrg0</emphasis> 7872ea1d6981Smrg. 7873ea1d6981Smrg</para> 7874ea1d6981Smrg 7875ea1d6981Smrg 7876ea1d6981Smrg</sect2> 7877ea1d6981Smrg<sect2 id='Tracking_Keyboard_State_Changes'> 7878ea1d6981Smrg<title>Tracking Keyboard State Changes</title> 7879ea1d6981Smrg 7880ea1d6981Smrg 7881ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 7882ea1d6981Smrg<?dbfo keep-together="always" ?> 7883ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 7884ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 7885ea1d6981Smrg <thead> 7886ea1d6981Smrg <row> 7887ea1d6981Smrg <entry role='protoname'>XkbStateNotify</entry> 7888ea1d6981Smrg </row> 7889ea1d6981Smrg </thead> 7890ea1d6981Smrg <tbody> 7891ea1d6981Smrg <row> 7892ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 7893ea1d6981Smrg </row> 7894ea1d6981Smrg <row> 7895ea1d6981Smrg <entry role='protoname'> 7896ea1d6981SmrgdeviceID: CARD8</entry> 7897ea1d6981Smrg </row> 7898ea1d6981Smrg <row> 7899ea1d6981Smrg <entry role='protoname'> 7900ea1d6981Smrgmods, baseMods, latchedMods, lockedMods: KEYMASK</entry> 7901ea1d6981Smrg </row> 7902ea1d6981Smrg <row> 7903ea1d6981Smrg <entry role='protoname'> 7904ea1d6981Smrggroup, lockedGroup: CARD8</entry> 7905ea1d6981Smrg </row> 7906ea1d6981Smrg <row> 7907ea1d6981Smrg <entry role='protoname'> 7908ea1d6981SmrgbaseGroup, latchedGroup: INT16</entry> 7909ea1d6981Smrg </row> 7910ea1d6981Smrg <row> 7911ea1d6981Smrg <entry role='protoname'> 7912ea1d6981SmrgcompatState: KEYMASK</entry> 7913ea1d6981Smrg </row> 7914ea1d6981Smrg <row> 7915ea1d6981Smrg <entry role='protoname'> 7916ea1d6981SmrggrabMods, compatGrabMods: KEYMASK</entry> 7917ea1d6981Smrg </row> 7918ea1d6981Smrg <row> 7919ea1d6981Smrg <entry role='protoname'> 7920ea1d6981SmrglookupMods, compatLookupMods: KEYMASK</entry> 7921ea1d6981Smrg </row> 7922ea1d6981Smrg <row> 7923ea1d6981Smrg <entry role='protoname'> 7924ea1d6981SmrgptrBtnState: BUTMASK</entry> 7925ea1d6981Smrg </row> 7926ea1d6981Smrg <row> 7927ea1d6981Smrg <entry role='protoname'> 7928ea1d6981Smrgchanged: KB_STATEPARTMASK</entry> 7929ea1d6981Smrg </row> 7930ea1d6981Smrg <row> 7931ea1d6981Smrg <entry role='protoname'> 7932ea1d6981Smrgkeycode: KEYCODE</entry> 7933ea1d6981Smrg </row> 7934ea1d6981Smrg <row> 7935ea1d6981Smrg <entry role='protoname'> 7936ea1d6981SmrgeventType: CARD8</entry> 7937ea1d6981Smrg </row> 7938ea1d6981Smrg <row> 7939ea1d6981Smrg <entry role='protoname'> 7940ea1d6981SmrgrequestMajor, requestMinor: CARD8</entry> 7941ea1d6981Smrg </row> 7942ea1d6981Smrg 7943ea1d6981Smrg </tbody> 7944ea1d6981Smrg </tgroup> 7945ea1d6981Smrg</informaltable> 7946ea1d6981Smrg 7947ea1d6981Smrg<para> 7948ea1d6981SmrgAn <emphasis>XkbStateNotify</emphasis> 7949ea1d6981Smrgevent reports that some component of the XKB state (see 7950ea1d6981Smrg<link linkend='Keyboard_State'>Keyboard State</link>) has changed. 7951ea1d6981SmrgState notify events are usually caused by key or pointer activity, but they can 7952ea1d6981Smrgalso result from explicit state changes requested by the <emphasis> 7953ea1d6981SmrgXkbLatchLockState</emphasis> 7954ea1d6981Smrg request or by other extensions. 7955ea1d6981Smrg</para> 7956ea1d6981Smrg 7957ea1d6981Smrg 7958ea1d6981Smrg<para> 7959ea1d6981SmrgThe <emphasis> 7960ea1d6981SmrgdeviceID</emphasis> 7961ea1d6981Smrg field reports the keyboard on which some state component changed. The 7962ea1d6981Smrg<emphasis> 7963ea1d6981Smrgchanged</emphasis> 7964ea1d6981Smrg field reports the XKB state components (see 7965ea1d6981Smrg<link linkend='Keyboard_State'>Keyboard State</link>) that have changed 7966ea1d6981Smrgand contain any combination of: 7967ea1d6981Smrg</para> 7968ea1d6981Smrg 7969ea1d6981Smrg<informaltable frame='none'> 7970ea1d6981Smrg<?dbfo keep-together="always" ?> 7971ea1d6981Smrg<tgroup cols='3' align='left' colsep='0' rowsep='0'> 7972ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 7973ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 7974ea1d6981Smrg<colspec colname='c3' colwidth='2.0*'/> 7975ea1d6981Smrg<thead> 7976ea1d6981Smrg <row rowsep='1'> 7977ea1d6981Smrg <entry>Bit in changed</entry> 7978ea1d6981Smrg <entry>Event field</entry> 7979ea1d6981Smrg <entry>Changed component</entry> 7980ea1d6981Smrg </row> 7981ea1d6981Smrg</thead> 7982ea1d6981Smrg<tbody> 7983ea1d6981Smrg <row> 7984ea1d6981Smrg <entry><emphasis> 7985ea1d6981SmrgModifierState</emphasis> 7986ea1d6981Smrg</entry> 7987ea1d6981Smrg <entry><emphasis> 7988ea1d6981Smrgmods</emphasis> 7989ea1d6981Smrg</entry> 7990ea1d6981Smrg <entry>The effective modifiers</entry> 7991ea1d6981Smrg </row> 7992ea1d6981Smrg <row> 7993ea1d6981Smrg <entry><emphasis> 7994ea1d6981SmrgModifierBase</emphasis> 7995ea1d6981Smrg</entry> 7996ea1d6981Smrg <entry><emphasis> 7997ea1d6981SmrgbaseMods</emphasis> 7998ea1d6981Smrg</entry> 7999ea1d6981Smrg <entry>The base modifiers</entry> 8000ea1d6981Smrg </row> 8001ea1d6981Smrg <row> 8002ea1d6981Smrg <entry><emphasis> 8003ea1d6981SmrgModifierLatch</emphasis> 8004ea1d6981Smrg</entry> 8005ea1d6981Smrg <entry><emphasis> 8006ea1d6981SmrglatchedMods</emphasis> 8007ea1d6981Smrg</entry> 8008ea1d6981Smrg <entry>The latched modifiers</entry> 8009ea1d6981Smrg </row> 8010ea1d6981Smrg <row> 8011ea1d6981Smrg <entry><emphasis> 8012ea1d6981SmrgModifierLock</emphasis> 8013ea1d6981Smrg</entry> 8014ea1d6981Smrg <entry><emphasis> 8015ea1d6981SmrglockedMods</emphasis> 8016ea1d6981Smrg</entry> 8017ea1d6981Smrg <entry>The locked modifiers</entry> 8018ea1d6981Smrg </row> 8019ea1d6981Smrg <row> 8020ea1d6981Smrg <entry><emphasis> 8021ea1d6981SmrgGroupState</emphasis> 8022ea1d6981Smrg</entry> 8023ea1d6981Smrg <entry><emphasis> 8024ea1d6981Smrggroup</emphasis> 8025ea1d6981Smrg</entry> 8026ea1d6981Smrg <entry>The effective keyboard group</entry> 8027ea1d6981Smrg </row> 8028ea1d6981Smrg <row> 8029ea1d6981Smrg <entry><emphasis> 8030ea1d6981SmrgGroupBase</emphasis> 8031ea1d6981Smrg</entry> 8032ea1d6981Smrg <entry><emphasis> 8033ea1d6981SmrgbaseGroup</emphasis> 8034ea1d6981Smrg</entry> 8035ea1d6981Smrg <entry>The base keyboard group</entry> 8036ea1d6981Smrg </row> 8037ea1d6981Smrg <row> 8038ea1d6981Smrg <entry><emphasis> 8039ea1d6981SmrgGroupLatch</emphasis> 8040ea1d6981Smrg</entry> 8041ea1d6981Smrg <entry><emphasis> 8042ea1d6981SmrglatchedGroup</emphasis> 8043ea1d6981Smrg</entry> 8044ea1d6981Smrg <entry>The latched keyboard group</entry> 8045ea1d6981Smrg </row> 8046ea1d6981Smrg <row> 8047ea1d6981Smrg <entry><emphasis> 8048ea1d6981SmrgGroupLock</emphasis> 8049ea1d6981Smrg</entry> 8050ea1d6981Smrg <entry><emphasis> 8051ea1d6981SmrglockedGroup</emphasis> 8052ea1d6981Smrg</entry> 8053ea1d6981Smrg <entry>The locked keyboard group</entry> 8054ea1d6981Smrg </row> 8055ea1d6981Smrg <row> 8056ea1d6981Smrg <entry><emphasis> 8057ea1d6981SmrgPointerButtons</emphasis> 8058ea1d6981Smrg</entry> 8059ea1d6981Smrg <entry><emphasis> 8060ea1d6981SmrgptrBtnState</emphasis> 8061ea1d6981Smrg</entry> 8062ea1d6981Smrg <entry>The state of the core pointer buttons</entry> 8063ea1d6981Smrg </row> 8064ea1d6981Smrg <row> 8065ea1d6981Smrg <entry><emphasis> 8066ea1d6981SmrgGrabMods</emphasis> 8067ea1d6981Smrg</entry> 8068ea1d6981Smrg <entry><emphasis> 8069ea1d6981SmrggrabMods</emphasis> 8070ea1d6981Smrg</entry> 8071ea1d6981Smrg <entry>The XKB state used to compute grabs</entry> 8072ea1d6981Smrg </row> 8073ea1d6981Smrg <row> 8074ea1d6981Smrg <entry><emphasis> 8075ea1d6981SmrgLookupMods</emphasis> 8076ea1d6981Smrg</entry> 8077ea1d6981Smrg <entry><emphasis> 8078ea1d6981SmrglookupMods</emphasis> 8079ea1d6981Smrg</entry> 8080ea1d6981Smrg <entry>The XKB state used to look up symbols</entry> 8081ea1d6981Smrg </row> 8082ea1d6981Smrg <row> 8083ea1d6981Smrg <entry><emphasis> 8084ea1d6981SmrgCompatState</emphasis> 8085ea1d6981Smrg</entry> 8086ea1d6981Smrg <entry><emphasis> 8087ea1d6981SmrgcompatState</emphasis> 8088ea1d6981Smrg</entry> 8089ea1d6981Smrg <entry>Default state for non-XKB clients</entry> 8090ea1d6981Smrg </row> 8091ea1d6981Smrg <row> 8092ea1d6981Smrg <entry><emphasis> 8093ea1d6981SmrgCompatGrabMods</emphasis> 8094ea1d6981Smrg</entry> 8095ea1d6981Smrg <entry><emphasis> 8096ea1d6981SmrgcompatGrabMods</emphasis> 8097ea1d6981Smrg</entry> 8098ea1d6981Smrg <entry>The core state used to compute grabs</entry> 8099ea1d6981Smrg </row> 8100ea1d6981Smrg <row> 8101ea1d6981Smrg <entry><emphasis> 8102ea1d6981SmrgCompatLookupMods</emphasis> 8103ea1d6981Smrg</entry> 8104ea1d6981Smrg <entry><emphasis> 8105ea1d6981SmrgcompatLookupMods</emphasis> 8106ea1d6981Smrg</entry> 8107ea1d6981Smrg <entry>The core state used to look up symbols</entry> 8108ea1d6981Smrg </row> 8109ea1d6981Smrg</tbody> 8110ea1d6981Smrg</tgroup> 8111ea1d6981Smrg</informaltable> 8112ea1d6981Smrg 8113ea1d6981Smrg<para> 8114ea1d6981SmrgThe server sends an <emphasis> 8115ea1d6981SmrgXkbStateNotify</emphasis> 8116ea1d6981Smrg event to a client only if at least one of the bits that is set in the 8117ea1d6981Smrg<emphasis> 8118ea1d6981Smrgchanged</emphasis> 8119ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 8120ea1d6981Smrgclient. 8121ea1d6981Smrg</para> 8122ea1d6981Smrg 8123ea1d6981Smrg 8124ea1d6981Smrg<para> 8125ea1d6981SmrgA state notify event reports current values for all state components, even 8126ea1d6981Smrgthose with unchanged values. 8127ea1d6981Smrg</para> 8128ea1d6981Smrg 8129ea1d6981Smrg 8130ea1d6981Smrg<para> 8131ea1d6981SmrgThe <emphasis> 8132ea1d6981Smrgkeycode</emphasis> 8133ea1d6981Smrg field reports the key or button which caused the change in state while the 8134ea1d6981Smrg<emphasis> 8135ea1d6981SmrgeventType</emphasis> 8136ea1d6981Smrg field reports the exact type of event (e.g. <emphasis> 8137ea1d6981SmrgKeyPress</emphasis> 8138ea1d6981Smrg). If the change in state was not caused by key or button activity, both fields 8139ea1d6981Smrghave the value <emphasis> 8140ea1d6981Smrg0</emphasis> 8141ea1d6981Smrg. 8142ea1d6981Smrg</para> 8143ea1d6981Smrg 8144ea1d6981Smrg 8145ea1d6981Smrg<para> 8146ea1d6981SmrgThe <emphasis> 8147ea1d6981SmrgrequestMajor</emphasis> 8148ea1d6981Smrg and <emphasis> 8149ea1d6981SmrgrequestMinor</emphasis> 8150ea1d6981Smrg fields report the major and minor opcodes of the request that caused the 8151ea1d6981Smrgchange in state and have the value <emphasis> 8152ea1d6981Smrg0</emphasis> 8153ea1d6981Smrg if it was resulted from key or button activity. 8154ea1d6981Smrg</para> 8155ea1d6981Smrg 8156ea1d6981Smrg 8157ea1d6981Smrg</sect2> 8158ea1d6981Smrg<sect2 id='Tracking_Keyboard_Control_Changes'> 8159ea1d6981Smrg<title>Tracking Keyboard Control Changes</title> 8160ea1d6981Smrg 8161ea1d6981Smrg 8162ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 8163ea1d6981Smrg<?dbfo keep-together="always" ?> 8164ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 8165ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 8166ea1d6981Smrg <thead> 8167ea1d6981Smrg <row> 8168ea1d6981Smrg <entry role='protoname'>XkbControlsNotify</entry> 8169ea1d6981Smrg </row> 8170ea1d6981Smrg </thead> 8171ea1d6981Smrg <tbody> 8172ea1d6981Smrg <row> 8173ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 8174ea1d6981Smrg </row> 8175ea1d6981Smrg <row> 8176ea1d6981Smrg <entry role='protoname'> 8177ea1d6981SmrgdeviceID: CARD8</entry> 8178ea1d6981Smrg </row> 8179ea1d6981Smrg <row> 8180ea1d6981Smrg <entry role='protoname'> 8181ea1d6981SmrgnumGroups: CARD8</entry> 8182ea1d6981Smrg </row> 8183ea1d6981Smrg <row> 8184ea1d6981Smrg <entry role='protoname'> 8185ea1d6981SmrgchangedControls: KB_CONTROLMASK</entry> 8186ea1d6981Smrg </row> 8187ea1d6981Smrg <row> 8188ea1d6981Smrg <entry role='protoname'> 8189ea1d6981SmrgenabledControls,enabledControlChanges: KB_BOOLCTRLMASK</entry> 8190ea1d6981Smrg </row> 8191ea1d6981Smrg <row> 8192ea1d6981Smrg <entry role='protoname'> 8193ea1d6981Smrgkeycode: KEYCODE</entry> 8194ea1d6981Smrg </row> 8195ea1d6981Smrg <row> 8196ea1d6981Smrg <entry role='protoname'> 8197ea1d6981SmrgeventType: CARD8</entry> 8198ea1d6981Smrg </row> 8199ea1d6981Smrg <row> 8200ea1d6981Smrg <entry role='protoname'> 8201ea1d6981SmrgrequestMajor: CARD8</entry> 8202ea1d6981Smrg </row> 8203ea1d6981Smrg <row> 8204ea1d6981Smrg <entry role='protoname'> 8205ea1d6981SmrgrequestMinor: CARD8</entry> 8206ea1d6981Smrg </row> 8207ea1d6981Smrg 8208ea1d6981Smrg </tbody> 8209ea1d6981Smrg </tgroup> 8210ea1d6981Smrg</informaltable> 8211ea1d6981Smrg 8212ea1d6981Smrg<para> 8213ea1d6981SmrgAn <emphasis> 8214ea1d6981SmrgXkbControlsNotify</emphasis> 8215ea1d6981Smrg event reports a change in one or more of the global keyboard controls (see 8216ea1d6981Smrg<link linkend='Global_Keyboard_Controls'>Global Keyboard Controls</link>) 8217ea1d6981Smrgor in the internal modifiers or ignore locks masks (see 8218ea1d6981Smrg<link linkend='Server_Internal_Modifiers_and_Ignore_Locks_Behavior'> 8219ea1d6981SmrgServer Internal Modifiers and Ignore 8220ea1d6981SmrgLocks Behavior</link>). Controls notify events are usually caused by and 8221ea1d6981Smrg<emphasis> 8222ea1d6981SmrgXkbSetControls</emphasis> 8223ea1d6981Smrg request, but they can also be caused by keyboard activity or certain core 8224ea1d6981Smrgprotocol and input extension requests. 8225ea1d6981Smrg</para> 8226ea1d6981Smrg 8227ea1d6981Smrg 8228ea1d6981Smrg<para> 8229ea1d6981SmrgThe <emphasis> 8230ea1d6981SmrgdeviceID</emphasis> 8231ea1d6981Smrg field reports the keyboard for which some control has changed, and the 8232ea1d6981Smrg<emphasis> 8233ea1d6981Smrgchanged</emphasis> 8234ea1d6981Smrg field reports the controls that have new values. 8235ea1d6981Smrg</para> 8236ea1d6981Smrg 8237ea1d6981Smrg 8238ea1d6981Smrg<para> 8239ea1d6981SmrgThe <emphasis> 8240ea1d6981Smrgchanged</emphasis> 8241ea1d6981Smrg field can contain any of the values that are permitted for the <emphasis> 8242ea1d6981SmrgchangeControls</emphasis> 8243ea1d6981Smrg field of the <emphasis> 8244ea1d6981SmrgXkbSetControls</emphasis> 8245ea1d6981Smrg request. The server sends an <emphasis> 8246ea1d6981SmrgXkbControlsNotify</emphasis> 8247ea1d6981Smrg event to a client only if at least one of the bits that is set in the 8248ea1d6981Smrg<emphasis> 8249ea1d6981Smrgchanged</emphasis> 8250ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 8251ea1d6981Smrgclient. 8252ea1d6981Smrg</para> 8253ea1d6981Smrg 8254ea1d6981Smrg 8255ea1d6981Smrg<para> 8256ea1d6981SmrgThe <emphasis> 8257ea1d6981SmrgnumGroups</emphasis> 8258ea1d6981Smrg field reports the total number of groups defined for the keyboard, whether or 8259ea1d6981Smrgnot the number of groups has changed. 8260ea1d6981Smrg</para> 8261ea1d6981Smrg 8262ea1d6981Smrg 8263ea1d6981Smrg<para> 8264ea1d6981SmrgThe <emphasis> 8265ea1d6981SmrgenabledControls</emphasis> 8266ea1d6981Smrg field reports the current status of all of the boolean controls, whether or 8267ea1d6981Smrgnot any boolean controls changed state. If <emphasis> 8268ea1d6981SmrgEnabledControls</emphasis> 8269ea1d6981Smrg is set in <emphasis> 8270ea1d6981Smrgchanged</emphasis> 8271ea1d6981Smrg, the <emphasis> 8272ea1d6981SmrgenabledControlChanges</emphasis> 8273ea1d6981Smrg field reports the boolean controls that were enabled or disabled; if a control 8274ea1d6981Smrgis specified in <emphasis> 8275ea1d6981SmrgenabledControlChanges</emphasis> 8276ea1d6981Smrg, the value that is reported for that control in <emphasis> 8277ea1d6981SmrgenabledControls</emphasis> 8278ea1d6981Smrg represents a change in state. 8279ea1d6981Smrg</para> 8280ea1d6981Smrg 8281ea1d6981Smrg 8282ea1d6981Smrg<para> 8283ea1d6981SmrgThe <emphasis> 8284ea1d6981Smrgkeycode</emphasis> 8285ea1d6981Smrg field reports the key or button which caused the change in state while the 8286ea1d6981Smrg<emphasis> 8287ea1d6981SmrgeventType</emphasis> 8288ea1d6981Smrg field reports the exact type of event (e.g. <emphasis> 8289ea1d6981SmrgKeyPress</emphasis> 8290ea1d6981Smrg). If the change in state was not caused by key or button activity, both fields 8291ea1d6981Smrghave the value <emphasis> 8292ea1d6981Smrg0</emphasis> 8293ea1d6981Smrg. 8294ea1d6981Smrg</para> 8295ea1d6981Smrg 8296ea1d6981Smrg 8297ea1d6981Smrg<para> 8298ea1d6981SmrgThe <emphasis> 8299ea1d6981SmrgrequestMajor</emphasis> 8300ea1d6981Smrg and <emphasis> 8301ea1d6981SmrgrequestMinor</emphasis> 8302ea1d6981Smrg fields report the major and minor opcodes of the request that caused the 8303ea1d6981Smrgchange in state and have the value <emphasis> 8304ea1d6981Smrg0</emphasis> 8305ea1d6981Smrg if it was resulted from key or button activity. 8306ea1d6981Smrg</para> 8307ea1d6981Smrg 8308ea1d6981Smrg 8309ea1d6981Smrg</sect2> 8310ea1d6981Smrg<sect2 id='Tracking_Keyboard_Indicator_State_Changes'> 8311ea1d6981Smrg<title>Tracking Keyboard Indicator State Changes</title> 8312ea1d6981Smrg 8313ea1d6981Smrg 8314ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 8315ea1d6981Smrg<?dbfo keep-together="always" ?> 8316ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 8317ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 8318ea1d6981Smrg <thead> 8319ea1d6981Smrg <row> 8320ea1d6981Smrg <entry role='protoname'>XkbIndicatorStateNotify</entry> 8321ea1d6981Smrg </row> 8322ea1d6981Smrg </thead> 8323ea1d6981Smrg <tbody> 8324ea1d6981Smrg <row> 8325ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 8326ea1d6981Smrg </row> 8327ea1d6981Smrg <row> 8328ea1d6981Smrg <entry role='protoname'> 8329ea1d6981SmrgdeviceID: CARD8</entry> 8330ea1d6981Smrg </row> 8331ea1d6981Smrg <row> 8332ea1d6981Smrg <entry role='protoname'> 8333ea1d6981SmrgstateChanged, state: KB_INDICATORMASK</entry> 8334ea1d6981Smrg </row> 8335ea1d6981Smrg 8336ea1d6981Smrg </tbody> 8337ea1d6981Smrg </tgroup> 8338ea1d6981Smrg</informaltable> 8339ea1d6981Smrg 8340ea1d6981Smrg<para> 8341ea1d6981SmrgAn <emphasis> 8342ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 8343ea1d6981Smrg event indicates that one or more of the indicators on a keyboard have changed 8344ea1d6981Smrgstate. Indicator state notify events can be caused by: 8345ea1d6981Smrg</para> 8346ea1d6981Smrg 8347ea1d6981Smrg<itemizedlist> 8348ea1d6981Smrg<listitem> 8349ea1d6981Smrg <para>Automatic update to reflect changes in keyboard state (keyboard 8350ea1d6981Smrgactivity, <emphasis> 8351ea1d6981SmrgXkbLatchLockState</emphasis> 8352ea1d6981Smrg requests). 8353ea1d6981Smrg </para> 8354ea1d6981Smrg</listitem> 8355ea1d6981Smrg<listitem> 8356ea1d6981Smrg <para>Automatic update to reflect changes in keyboard controls (<emphasis> 8357ea1d6981SmrgXkbSetControls</emphasis> 8358ea1d6981Smrg, keyboard activity, certain core protocol and input extension requests). 8359ea1d6981Smrg </para> 8360ea1d6981Smrg</listitem> 8361ea1d6981Smrg<listitem> 8362ea1d6981Smrg <para>Explicit attempts to change indicator state (core protocol and input 8363ea1d6981Smrgextension requests, <emphasis> 8364ea1d6981SmrgXkbSetNamedIndicator</emphasis> 8365ea1d6981Smrg requests). 8366ea1d6981Smrg </para> 8367ea1d6981Smrg</listitem> 8368ea1d6981Smrg<listitem> 8369ea1d6981Smrg <para>Changes to indicator maps (<emphasis> 8370ea1d6981SmrgXkbSetIndicatorMap</emphasis> 8371ea1d6981Smrg and <emphasis> 8372ea1d6981SmrgXkbSetNamedIndicator</emphasis> 8373ea1d6981Smrg requests). 8374ea1d6981Smrg </para> 8375ea1d6981Smrg</listitem> 8376ea1d6981Smrg</itemizedlist> 8377ea1d6981Smrg 8378ea1d6981Smrg<para> 8379ea1d6981SmrgThe <emphasis> 8380ea1d6981SmrgdeviceID</emphasis> 8381ea1d6981Smrg field reports the keyboard for which some indicator has changed, and the 8382ea1d6981Smrg<emphasis> 8383ea1d6981Smrgstate</emphasis> 8384ea1d6981Smrg field reports the new state for all indicators on the specified keyboard. The 8385ea1d6981Smrg<emphasis> 8386ea1d6981SmrgstateChanged</emphasis> 8387ea1d6981Smrg field specifies which of the values in <emphasis> 8388ea1d6981Smrgstate</emphasis> 8389ea1d6981Smrg represent a new state for the corresponding indicator. The server sends an 8390ea1d6981Smrg<emphasis> 8391ea1d6981SmrgXkbIndicatorStateNotify</emphasis> 8392ea1d6981Smrg event to a client only if at least one of the bits that is set in the 8393ea1d6981Smrg<emphasis> 8394ea1d6981SmrgstateChanged</emphasis> 8395ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 8396ea1d6981Smrgclient. 8397ea1d6981Smrg</para> 8398ea1d6981Smrg 8399ea1d6981Smrg 8400ea1d6981Smrg</sect2> 8401ea1d6981Smrg<sect2 id='Tracking_Keyboard_Indicator_Map_Changes'> 8402ea1d6981Smrg<title>Tracking Keyboard Indicator Map Changes</title> 8403ea1d6981Smrg 8404ea1d6981Smrg 8405ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 8406ea1d6981Smrg<?dbfo keep-together="always" ?> 8407ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 8408ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 8409ea1d6981Smrg <thead> 8410ea1d6981Smrg <row> 8411ea1d6981Smrg <entry role='protoname'>XkbIndicatorMapNotify</entry> 8412ea1d6981Smrg </row> 8413ea1d6981Smrg </thead> 8414ea1d6981Smrg <tbody> 8415ea1d6981Smrg <row> 8416ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 8417ea1d6981Smrg </row> 8418ea1d6981Smrg <row> 8419ea1d6981Smrg <entry role='protoname'> 8420ea1d6981SmrgdeviceID: CARD8</entry> 8421ea1d6981Smrg </row> 8422ea1d6981Smrg <row> 8423ea1d6981Smrg <entry role='protoname'> 8424ea1d6981Smrgstate: KB_INDICATORMASK</entry> 8425ea1d6981Smrg </row> 8426ea1d6981Smrg <row> 8427ea1d6981Smrg <entry role='protoname'> 8428ea1d6981SmrgmapChanged: KB_INDICATORMASK</entry> 8429ea1d6981Smrg </row> 8430ea1d6981Smrg 8431ea1d6981Smrg </tbody> 8432ea1d6981Smrg </tgroup> 8433ea1d6981Smrg</informaltable> 8434ea1d6981Smrg 8435ea1d6981Smrg<para> 8436ea1d6981SmrgAn <emphasis> 8437ea1d6981SmrgXkbIndicatorMapNotify</emphasis> 8438ea1d6981Smrg event indicates that the maps for one or more keyboard indicators have been 8439ea1d6981Smrgchanged. Indicator map notify events can be caused by <emphasis> 8440ea1d6981SmrgXkbSetIndicatorMap</emphasis> 8441ea1d6981Smrg and <emphasis> 8442ea1d6981SmrgXkbSetNamedIndicator</emphasis> 8443ea1d6981Smrg requests. 8444ea1d6981Smrg</para> 8445ea1d6981Smrg 8446ea1d6981Smrg 8447ea1d6981Smrg<para> 8448ea1d6981SmrgThe <emphasis> 8449ea1d6981SmrgdeviceID</emphasis> 8450ea1d6981Smrg field reports the keyboard for which some indicator map has changed, and the 8451ea1d6981Smrg<emphasis> 8452ea1d6981SmrgmapChanged</emphasis> 8453ea1d6981Smrg field reports the indicators with changed maps. The server sends an <emphasis> 8454ea1d6981SmrgXkbIndicatorMapNotify</emphasis> 8455ea1d6981Smrg event to a client only if at least one of the bits that is set in the 8456ea1d6981Smrg<emphasis> 8457ea1d6981SmrgmapChanged</emphasis> 8458ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 8459ea1d6981Smrgclient. 8460ea1d6981Smrg</para> 8461ea1d6981Smrg 8462ea1d6981Smrg 8463ea1d6981Smrg<para> 8464ea1d6981SmrgThe <emphasis> 8465ea1d6981Smrgstate</emphasis> 8466ea1d6981Smrg field reports the current state of all indicators on the specified keyboard. 8467ea1d6981Smrg</para> 8468ea1d6981Smrg 8469ea1d6981Smrg 8470ea1d6981Smrg</sect2> 8471ea1d6981Smrg<sect2 id='Tracking_Keyboard_Name_Changes'> 8472ea1d6981Smrg<title>Tracking Keyboard Name Changes</title> 8473ea1d6981Smrg 8474ea1d6981Smrg 8475ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 8476ea1d6981Smrg<?dbfo keep-together="always" ?> 8477ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 8478ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 8479ea1d6981Smrg <thead> 8480ea1d6981Smrg <row> 8481ea1d6981Smrg <entry role='protoname'>XkbNamesNotify</entry> 8482ea1d6981Smrg </row> 8483ea1d6981Smrg </thead> 8484ea1d6981Smrg <tbody> 8485ea1d6981Smrg <row> 8486ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 8487ea1d6981Smrg </row> 8488ea1d6981Smrg <row> 8489ea1d6981Smrg <entry role='protoname'> 8490ea1d6981SmrgdeviceID: CARD8</entry> 8491ea1d6981Smrg </row> 8492ea1d6981Smrg <row> 8493ea1d6981Smrg <entry role='protoname'> 8494ea1d6981Smrgchanged: KB_NAMEDETAILMASK</entry> 8495ea1d6981Smrg </row> 8496ea1d6981Smrg <row> 8497ea1d6981Smrg <entry role='protoname'> 8498ea1d6981SmrgfirstType, nTypes: CARD8</entry> 8499ea1d6981Smrg </row> 8500ea1d6981Smrg <row> 8501ea1d6981Smrg <entry role='protoname'> 8502ea1d6981SmrgfirstLevelName, nLevelNames: CARD8</entry> 8503ea1d6981Smrg </row> 8504ea1d6981Smrg <row> 8505ea1d6981Smrg <entry role='protoname'> 8506ea1d6981SmrgfirstKey: KEYCODE</entry> 8507ea1d6981Smrg </row> 8508ea1d6981Smrg <row> 8509ea1d6981Smrg <entry role='protoname'> 8510ea1d6981SmrgnKeys, nKeyAliases, nRadioGroups: CARD8</entry> 8511ea1d6981Smrg </row> 8512ea1d6981Smrg <row> 8513ea1d6981Smrg <entry role='protoname'> 8514ea1d6981SmrgchangedGroupNames: KB_GROUPMASK</entry> 8515ea1d6981Smrg </row> 8516ea1d6981Smrg <row> 8517ea1d6981Smrg <entry role='protoname'> 8518ea1d6981SmrgchangedVirtualMods: KB_VMODMASK</entry> 8519ea1d6981Smrg </row> 8520ea1d6981Smrg <row> 8521ea1d6981Smrg <entry role='protoname'> 8522ea1d6981SmrgchangedIndicators: KB_INDICATORMASK</entry> 8523ea1d6981Smrg </row> 8524ea1d6981Smrg 8525ea1d6981Smrg </tbody> 8526ea1d6981Smrg </tgroup> 8527ea1d6981Smrg</informaltable> 8528ea1d6981Smrg 8529ea1d6981Smrg<para> 8530ea1d6981SmrgAn <emphasis> 8531ea1d6981SmrgXkbNamesNotify</emphasis> 8532ea1d6981Smrg event reports a change to one or more of the symbolic names associated with a 8533ea1d6981Smrgkeyboard. Symbolic names can change when: 8534ea1d6981Smrg</para> 8535ea1d6981Smrg 8536ea1d6981Smrg<itemizedlist> 8537ea1d6981Smrg<listitem> 8538ea1d6981Smrg <para> Some client explicitly changes them using <emphasis> 8539ea1d6981SmrgXkbSetNames</emphasis> 8540ea1d6981Smrg. 8541ea1d6981Smrg </para> 8542ea1d6981Smrg</listitem> 8543ea1d6981Smrg<listitem> 8544ea1d6981Smrg <para>The list of key types or radio groups is resized 8545ea1d6981Smrg </para> 8546ea1d6981Smrg</listitem> 8547ea1d6981Smrg<listitem> 8548ea1d6981Smrg <para>The group width of some key type is changed 8549ea1d6981Smrg </para> 8550ea1d6981Smrg</listitem> 8551ea1d6981Smrg</itemizedlist> 8552ea1d6981Smrg 8553ea1d6981Smrg<para> 8554ea1d6981SmrgThe <emphasis> 8555ea1d6981SmrgdeviceID</emphasis> 8556ea1d6981Smrg field reports the keyboard on which names were changed. The <emphasis> 8557ea1d6981Smrgchanged</emphasis> 8558ea1d6981Smrg mask lists the components for which some names have changed and can have any 8559ea1d6981Smrgcombination of the values permitted for the <emphasis> 8560ea1d6981Smrgwhich</emphasis> 8561ea1d6981Smrg field of the <emphasis> 8562ea1d6981SmrgXkbGetNames</emphasis> 8563ea1d6981Smrg request. The server sends an <emphasis> 8564ea1d6981SmrgXkbNamesNotify</emphasis> 8565ea1d6981Smrg event to a client only if at least one of the bits that is set in the 8566ea1d6981Smrg<emphasis> 8567ea1d6981Smrgchanged</emphasis> 8568ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 8569ea1d6981Smrgclient. 8570ea1d6981Smrg</para> 8571ea1d6981Smrg 8572ea1d6981Smrg 8573ea1d6981Smrg<para> 8574ea1d6981SmrgIf <emphasis> 8575ea1d6981SmrgKeyTypeNames</emphasis> 8576ea1d6981Smrg is set in <emphasis> 8577ea1d6981Smrgchanged</emphasis> 8578ea1d6981Smrg, the <emphasis> 8579ea1d6981SmrgfirstType</emphasis> 8580ea1d6981Smrg and <emphasis> 8581ea1d6981SmrgnTypes</emphasis> 8582ea1d6981Smrg fields report a range of types that includes all types with changed names. 8583ea1d6981SmrgOtherwise, both fields are <emphasis> 8584ea1d6981Smrg0</emphasis> 8585ea1d6981Smrg. 8586ea1d6981Smrg</para> 8587ea1d6981Smrg 8588ea1d6981Smrg 8589ea1d6981Smrg<para> 8590ea1d6981SmrgIf <emphasis> 8591ea1d6981SmrgKTLevelNames</emphasis> 8592ea1d6981Smrg is set in <emphasis> 8593ea1d6981Smrgchanged</emphasis> 8594ea1d6981Smrg, the <emphasis> 8595ea1d6981SmrgfirstLevelName</emphasis> 8596ea1d6981Smrg and <emphasis> 8597ea1d6981SmrgnLevelNames</emphasis> 8598ea1d6981Smrg fields report a range of types that includes all types with changed level 8599ea1d6981Smrgnames. Otherwise, both fields are <emphasis> 8600ea1d6981Smrg0</emphasis> 8601ea1d6981Smrg. 8602ea1d6981Smrg</para> 8603ea1d6981Smrg 8604ea1d6981Smrg 8605ea1d6981Smrg<para> 8606ea1d6981SmrgIf <emphasis> 8607ea1d6981SmrgIndicatorNames</emphasis> 8608ea1d6981Smrg is set in <emphasis> 8609ea1d6981Smrgchanged</emphasis> 8610ea1d6981Smrg, the <emphasis> 8611ea1d6981SmrgchangedIndicators</emphasis> 8612ea1d6981Smrg field reports the indicators with changed names. Otherwise, <emphasis> 8613ea1d6981SmrgchangedIndicators</emphasis> 8614ea1d6981Smrg is <emphasis> 8615ea1d6981Smrg0</emphasis> 8616ea1d6981Smrg. 8617ea1d6981Smrg</para> 8618ea1d6981Smrg 8619ea1d6981Smrg 8620ea1d6981Smrg<para> 8621ea1d6981SmrgIf <emphasis> 8622ea1d6981SmrgVirtualModNames</emphasis> 8623ea1d6981Smrg is set in <emphasis> 8624ea1d6981Smrgchanged</emphasis> 8625ea1d6981Smrg, the <emphasis> 8626ea1d6981SmrgchangedVirtualMods</emphasis> 8627ea1d6981Smrg field reports the virtual modifiers with changed names. Otherwise, <emphasis> 8628ea1d6981SmrgchangedVirtualMods</emphasis> 8629ea1d6981Smrg is <emphasis> 8630ea1d6981Smrg0</emphasis> 8631ea1d6981Smrg. 8632ea1d6981Smrg</para> 8633ea1d6981Smrg 8634ea1d6981Smrg 8635ea1d6981Smrg<para> 8636ea1d6981SmrgIf <emphasis> 8637ea1d6981SmrgGroupNames</emphasis> 8638ea1d6981Smrg is set in <emphasis> 8639ea1d6981Smrgchanged</emphasis> 8640ea1d6981Smrg, the <emphasis> 8641ea1d6981SmrgchangedGroupNames</emphasis> 8642ea1d6981Smrg field reports the groups with changed names. Otherwise, <emphasis> 8643ea1d6981SmrgchangedGroupNames</emphasis> 8644ea1d6981Smrg is <emphasis> 8645ea1d6981Smrg0</emphasis> 8646ea1d6981Smrg. 8647ea1d6981Smrg</para> 8648ea1d6981Smrg 8649ea1d6981Smrg 8650ea1d6981Smrg<para> 8651ea1d6981SmrgIf <emphasis> 8652ea1d6981SmrgKeyNames</emphasis> 8653ea1d6981Smrg is set in <emphasis> 8654ea1d6981Smrgchanged</emphasis> 8655ea1d6981Smrg, the <emphasis> 8656ea1d6981SmrgfirstKey</emphasis> 8657ea1d6981Smrg and <emphasis> 8658ea1d6981SmrgnKeys</emphasis> 8659ea1d6981Smrg fields report a range of keycodes that includes all keys with changed names. 8660ea1d6981SmrgOtherwise, both fields are <emphasis> 8661ea1d6981Smrg0</emphasis> 8662ea1d6981Smrg. 8663ea1d6981Smrg</para> 8664ea1d6981Smrg 8665ea1d6981Smrg 8666ea1d6981Smrg<para> 8667ea1d6981SmrgThe <emphasis> 8668ea1d6981SmrgnKeyAliases</emphasis> 8669ea1d6981Smrg field reports the total number of key aliases associated with the keyboard, 8670ea1d6981Smrgregardless of whether <emphasis> 8671ea1d6981SmrgKeyAliases</emphasis> 8672ea1d6981Smrg is set in <emphasis> 8673ea1d6981Smrgchanged</emphasis> 8674ea1d6981Smrg. 8675ea1d6981Smrg</para> 8676ea1d6981Smrg 8677ea1d6981Smrg 8678ea1d6981Smrg<para> 8679ea1d6981SmrgThe <emphasis> 8680ea1d6981SmrgnRadioGroups</emphasis> 8681ea1d6981Smrg field reports the total number of radio group names associated with the 8682ea1d6981Smrgkeyboard, regardless of whether <emphasis> 8683ea1d6981SmrgRGNames</emphasis> 8684ea1d6981Smrg is set in <emphasis> 8685ea1d6981Smrgchanged</emphasis> 8686ea1d6981Smrg. 8687ea1d6981Smrg</para> 8688ea1d6981Smrg 8689ea1d6981Smrg 8690ea1d6981Smrg</sect2> 8691ea1d6981Smrg<sect2 id='Tracking_Compatibility_Map_Changes'> 8692ea1d6981Smrg<title>Tracking Compatibility Map Changes</title> 8693ea1d6981Smrg 8694ea1d6981Smrg 8695ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 8696ea1d6981Smrg<?dbfo keep-together="always" ?> 8697ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 8698ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 8699ea1d6981Smrg <thead> 8700ea1d6981Smrg <row> 8701ea1d6981Smrg <entry role='protoname'>XkbCompatMapNotify</entry> 8702ea1d6981Smrg </row> 8703ea1d6981Smrg </thead> 8704ea1d6981Smrg <tbody> 8705ea1d6981Smrg <row> 8706ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 8707ea1d6981Smrg </row> 8708ea1d6981Smrg <row> 8709ea1d6981Smrg <entry role='protoname'> 8710ea1d6981SmrgdeviceID: CARD8</entry> 8711ea1d6981Smrg </row> 8712ea1d6981Smrg <row> 8713ea1d6981Smrg <entry role='protoname'> 8714ea1d6981SmrgchangedGroups: KB_GROUPMASK</entry> 8715ea1d6981Smrg </row> 8716ea1d6981Smrg <row> 8717ea1d6981Smrg <entry role='protoname'> 8718ea1d6981SmrgfirstSI, nSI: CARD16</entry> 8719ea1d6981Smrg </row> 8720ea1d6981Smrg <row> 8721ea1d6981Smrg <entry role='protoname'> 8722ea1d6981SmrgnTotalSI: CARD16</entry> 8723ea1d6981Smrg </row> 8724ea1d6981Smrg 8725ea1d6981Smrg </tbody> 8726ea1d6981Smrg </tgroup> 8727ea1d6981Smrg</informaltable> 8728ea1d6981Smrg 8729ea1d6981Smrg<para> 8730ea1d6981SmrgAn <emphasis> 8731ea1d6981SmrgXkbCompatMapNotify</emphasis> 8732ea1d6981Smrg event indicates that some component of the compatibility map for a keyboard 8733ea1d6981Smrghas been changed. Compatibility map notify events can be caused by <emphasis> 8734ea1d6981SmrgXkbSetCompatMap</emphasis> 8735ea1d6981Smrg and <emphasis> 8736ea1d6981SmrgXkbGetMapByName</emphasis> 8737ea1d6981Smrg requests. 8738ea1d6981Smrg</para> 8739ea1d6981Smrg 8740ea1d6981Smrg 8741ea1d6981Smrg<para> 8742ea1d6981SmrgThe <emphasis> 8743ea1d6981SmrgdeviceID</emphasis> 8744ea1d6981Smrg field reports the keyboard for which the compatibility map has changed; if the 8745ea1d6981Smrgserver does not support the X input extension, <emphasis> 8746ea1d6981SmrgdeviceID</emphasis> 8747ea1d6981Smrg is <emphasis> 8748ea1d6981Smrg0</emphasis> 8749ea1d6981Smrg. 8750ea1d6981Smrg</para> 8751ea1d6981Smrg 8752ea1d6981Smrg 8753ea1d6981Smrg<para> 8754ea1d6981SmrgThe <emphasis> 8755ea1d6981SmrgchangedGroups</emphasis> 8756ea1d6981Smrg field reports the keyboard groups, if any, with a changed entry in the group 8757ea1d6981Smrgcompatibility map. The <emphasis> 8758ea1d6981SmrgfirstSI</emphasis> 8759ea1d6981Smrg and <emphasis> 8760ea1d6981SmrgnSI</emphasis> 8761ea1d6981Smrg fields specify a range of symbol interpretations in the symbol compatibility 8762ea1d6981Smrgmap that includes all changed symbol interpretations; if the symbol 8763ea1d6981Smrgcompatibility map is unchanged, both fields are <emphasis> 8764ea1d6981Smrg0</emphasis> 8765ea1d6981Smrg. The <emphasis> 8766ea1d6981SmrgnTotalSI</emphasis> 8767ea1d6981Smrg field always reports the total number of symbol interpretations present in the 8768ea1d6981Smrgsymbol compatibility map, regardless of whether any symbol interpretations have 8769ea1d6981Smrgbeen changed. 8770ea1d6981Smrg</para> 8771ea1d6981Smrg 8772ea1d6981Smrg 8773ea1d6981Smrg<para> 8774ea1d6981SmrgThe server sends an <emphasis> 8775ea1d6981SmrgXkbCompatMapNotify</emphasis> 8776ea1d6981Smrg event to a client only if at least one of the following conditions is met: 8777ea1d6981Smrg</para> 8778ea1d6981Smrg 8779ea1d6981Smrg<itemizedlist> 8780ea1d6981Smrg<listitem> 8781ea1d6981Smrg <para>The <emphasis> 8782ea1d6981SmrgnSI</emphasis> 8783ea1d6981Smrg field of the event is non-zero, and the <emphasis> 8784ea1d6981SmrgXkbSymInterpMask</emphasis> 8785ea1d6981Smrg bit is set in the appropriate event details mask for the client. 8786ea1d6981Smrg </para> 8787ea1d6981Smrg</listitem> 8788ea1d6981Smrg<listitem> 8789ea1d6981Smrg <para>The <emphasis> 8790ea1d6981SmrgchangedGroups</emphasis> 8791ea1d6981Smrg field of the event contains at least one group, and the <emphasis> 8792ea1d6981SmrgXkbGroupCompatMask</emphasis> 8793ea1d6981Smrg bit is set in the appropriate event details mask for the client. 8794ea1d6981Smrg </para> 8795ea1d6981Smrg</listitem> 8796ea1d6981Smrg</itemizedlist> 8797ea1d6981Smrg 8798ea1d6981Smrg</sect2> 8799ea1d6981Smrg<sect2 id='Tracking_Application_Bell_Requests'> 8800ea1d6981Smrg<title>Tracking Application Bell Requests</title> 8801ea1d6981Smrg 8802ea1d6981Smrg 8803ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 8804ea1d6981Smrg<?dbfo keep-together="always" ?> 8805ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 8806ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 8807ea1d6981Smrg <thead> 8808ea1d6981Smrg <row> 8809ea1d6981Smrg <entry role='protoname'>XkbBellNotify</entry> 8810ea1d6981Smrg </row> 8811ea1d6981Smrg </thead> 8812ea1d6981Smrg <tbody> 8813ea1d6981Smrg <row> 8814ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 8815ea1d6981Smrg </row> 8816ea1d6981Smrg <row> 8817ea1d6981Smrg <entry role='protoname'> 8818ea1d6981SmrgdeviceID: CARD8</entry> 8819ea1d6981Smrg </row> 8820ea1d6981Smrg <row> 8821ea1d6981Smrg <entry role='protoname'> 8822ea1d6981SmrgbellClass: { KbdFeedbackClass, BellFeedbackClass }</entry> 8823ea1d6981Smrg </row> 8824ea1d6981Smrg <row> 8825ea1d6981Smrg <entry role='protoname'> 8826ea1d6981SmrgbellID: CARD8</entry> 8827ea1d6981Smrg </row> 8828ea1d6981Smrg <row> 8829ea1d6981Smrg <entry role='protoname'> 8830ea1d6981Smrgpercent: CARD8</entry> 8831ea1d6981Smrg </row> 8832ea1d6981Smrg <row> 8833ea1d6981Smrg <entry role='protoname'> 8834ea1d6981Smrgpitch: CARD16</entry> 8835ea1d6981Smrg </row> 8836ea1d6981Smrg <row> 8837ea1d6981Smrg <entry role='protoname'> 8838ea1d6981Smrgduration: CARD16</entry> 8839ea1d6981Smrg </row> 8840ea1d6981Smrg <row> 8841ea1d6981Smrg <entry role='protoname'> 8842ea1d6981SmrgeventOnly: BOOL</entry> 8843ea1d6981Smrg </row> 8844ea1d6981Smrg <row> 8845ea1d6981Smrg <entry role='protoname'> 8846ea1d6981Smrgname: ATOM</entry> 8847ea1d6981Smrg </row> 8848ea1d6981Smrg <row> 8849ea1d6981Smrg <entry role='protoname'> 8850ea1d6981Smrgwindow: WINDOW</entry> 8851ea1d6981Smrg </row> 8852ea1d6981Smrg 8853ea1d6981Smrg </tbody> 8854ea1d6981Smrg </tgroup> 8855ea1d6981Smrg</informaltable> 8856ea1d6981Smrg 8857ea1d6981Smrg<para> 8858ea1d6981SmrgAn <emphasis> 8859ea1d6981SmrgXkbBellNotify</emphasis> 8860ea1d6981Smrg event indicates that some client has requested a keyboard bell. Bell notify 8861ea1d6981Smrgevents are usually caused by <emphasis> 8862ea1d6981SmrgBell</emphasis> 8863ea1d6981Smrg, <emphasis> 8864ea1d6981SmrgDeviceBell</emphasis> 8865ea1d6981Smrg, or <emphasis> 8866ea1d6981SmrgXkbBell</emphasis> 8867ea1d6981Smrg requests, but they can also be generated by the server (e.g. if the <emphasis> 8868ea1d6981SmrgAccessXFeedback</emphasis> 8869ea1d6981Smrg control is active). 8870ea1d6981Smrg</para> 8871ea1d6981Smrg 8872ea1d6981Smrg 8873ea1d6981Smrg<para> 8874ea1d6981SmrgThe server sends an <emphasis> 8875ea1d6981SmrgXkbBellNotify</emphasis> 8876ea1d6981Smrg event to a client if the appropriate event details field for the client has 8877ea1d6981Smrgthe value <emphasis> 8878ea1d6981SmrgTrue</emphasis> 8879ea1d6981Smrg. 8880ea1d6981Smrg</para> 8881ea1d6981Smrg 8882ea1d6981Smrg 8883ea1d6981Smrg<para> 8884ea1d6981SmrgThe <emphasis> 8885ea1d6981SmrgdeviceID</emphasis> 8886ea1d6981Smrg field specifies the device for which a bell was requested, while the <emphasis> 8887ea1d6981SmrgbellClass</emphasis> 8888ea1d6981Smrg and <emphasis> 8889ea1d6981SmrgbellID</emphasis> 8890ea1d6981Smrg fields specify the input extension class and identifier of the feedback for 8891ea1d6981Smrgwhich the bell was requested. If the reporting server does not support the 8892ea1d6981Smrginput extension, all three fields have the value 0. 8893ea1d6981Smrg</para> 8894ea1d6981Smrg 8895ea1d6981Smrg 8896ea1d6981Smrg<para> 8897ea1d6981SmrgThe <emphasis> 8898ea1d6981Smrgpercent</emphasis> 8899ea1d6981Smrg, <emphasis> 8900ea1d6981Smrgpitch</emphasis> 8901ea1d6981Smrg and <emphasis> 8902ea1d6981Smrgduration</emphasis> 8903ea1d6981Smrg fields report the volume, tone and duration requested for the bell as 8904ea1d6981Smrgspecified by the <emphasis> 8905ea1d6981SmrgXkbBell</emphasis> 8906ea1d6981Smrg request. Bell notify events caused by core protocol or input extension 8907ea1d6981Smrgrequests use the pitch and duration specified in the corresponding bell or 8908ea1d6981Smrgkeyboard feedback control. 8909ea1d6981Smrg</para> 8910ea1d6981Smrg 8911ea1d6981Smrg 8912ea1d6981Smrg<para> 8913ea1d6981SmrgIf the bell was caused by an <emphasis> 8914ea1d6981SmrgXkbBell</emphasis> 8915ea1d6981Smrg request or by the X server, <emphasis> 8916ea1d6981Smrgname</emphasis> 8917ea1d6981Smrg reports an optional symbolic name for the bell and the <emphasis> 8918ea1d6981Smrgwindow</emphasis> 8919ea1d6981Smrg field optionally reports the window for which the bell was generated. 8920ea1d6981SmrgOtherwise, both fields have the value <emphasis> 8921ea1d6981SmrgNone</emphasis> 8922ea1d6981Smrg. 8923ea1d6981Smrg</para> 8924ea1d6981Smrg 8925ea1d6981Smrg 8926ea1d6981Smrg<para> 8927ea1d6981SmrgIf the <emphasis> 8928ea1d6981SmrgeventOnly</emphasis> 8929ea1d6981Smrg field is <emphasis> 8930ea1d6981SmrgTrue</emphasis> 8931ea1d6981Smrg, the server did not generate a sound in response to the request, otherwise the 8932ea1d6981Smrgserver issues the beep before sending the event. The eventOnly field can be 8933ea1d6981Smrg<emphasis> 8934ea1d6981SmrgTrue</emphasis> 8935ea1d6981Smrg if the <emphasis> 8936ea1d6981SmrgAudibleBell</emphasis> 8937ea1d6981Smrg control is disabled or if a client explicitly requests <emphasis> 8938ea1d6981SmrgeventOnly</emphasis> 8939ea1d6981Smrg when it issues an <emphasis> 8940ea1d6981SmrgXkbBell</emphasis> 8941ea1d6981Smrg request. 8942ea1d6981Smrg</para> 8943ea1d6981Smrg 8944ea1d6981Smrg 8945ea1d6981Smrg</sect2> 8946ea1d6981Smrg<sect2 id='Tracking_Messages_Generated_by_Key_Actions'> 8947ea1d6981Smrg<title>Tracking Messages Generated by Key Actions</title> 8948ea1d6981Smrg 8949ea1d6981Smrg 8950ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 8951ea1d6981Smrg<?dbfo keep-together="always" ?> 8952ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 8953ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 8954ea1d6981Smrg <thead> 8955ea1d6981Smrg <row> 8956ea1d6981Smrg <entry role='protoname'>XkbActionMessage</entry> 8957ea1d6981Smrg </row> 8958ea1d6981Smrg </thead> 8959ea1d6981Smrg <tbody> 8960ea1d6981Smrg <row> 8961ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 8962ea1d6981Smrg </row> 8963ea1d6981Smrg <row> 8964ea1d6981Smrg <entry role='protoname'> 8965ea1d6981SmrgdeviceID: CARD8</entry> 8966ea1d6981Smrg </row> 8967ea1d6981Smrg <row> 8968ea1d6981Smrg <entry role='protoname'> 8969ea1d6981Smrgkeycode: KEYCODE</entry> 8970ea1d6981Smrg </row> 8971ea1d6981Smrg <row> 8972ea1d6981Smrg <entry role='protoname'> 8973ea1d6981Smrgpress: BOOL</entry> 8974ea1d6981Smrg </row> 8975ea1d6981Smrg <row> 8976ea1d6981Smrg <entry role='protoname'> 8977ea1d6981Smrgmods: KEYMASK</entry> 8978ea1d6981Smrg </row> 8979ea1d6981Smrg <row> 8980ea1d6981Smrg <entry role='protoname'> 8981ea1d6981Smrggroup: KB_GROUP</entry> 8982ea1d6981Smrg </row> 8983ea1d6981Smrg <row> 8984ea1d6981Smrg <entry role='protoname'> 8985ea1d6981SmrgkeyEventFollows: BOOL</entry> 8986ea1d6981Smrg </row> 8987ea1d6981Smrg <row> 8988ea1d6981Smrg <entry role='protoname'> 8989ea1d6981Smrgmessage: LISTofCARD8</entry> 8990ea1d6981Smrg </row> 8991ea1d6981Smrg 8992ea1d6981Smrg </tbody> 8993ea1d6981Smrg </tgroup> 8994ea1d6981Smrg</informaltable> 8995ea1d6981Smrg 8996ea1d6981Smrg<para> 8997ea1d6981SmrgAn <emphasis> 8998ea1d6981SmrgXkbActionMessage</emphasis> 8999ea1d6981Smrg event is generated when the user operates a key to which an <emphasis> 9000ea1d6981SmrgSA_ActionMessage</emphasis> 9001ea1d6981Smrg message is bound under the appropriate state and group. The server sends an 9002ea1d6981Smrg<emphasis> 9003ea1d6981SmrgXkbActionMessage</emphasis> 9004ea1d6981Smrg event to a client if the appropriate event details field for the client has 9005ea1d6981Smrgthe value <emphasis> 9006ea1d6981SmrgTrue</emphasis> 9007ea1d6981Smrg. 9008ea1d6981Smrg</para> 9009ea1d6981Smrg 9010ea1d6981Smrg 9011ea1d6981Smrg<para> 9012ea1d6981SmrgThe <emphasis> 9013ea1d6981SmrgdeviceID</emphasis> 9014ea1d6981Smrg field specifies the keyboard device that contains the key which activated the 9015ea1d6981Smrgevent. The <emphasis> 9016ea1d6981Smrgkeycode</emphasis> 9017ea1d6981Smrg field specifies the key whose operation caused the message and press is 9018ea1d6981Smrg<emphasis> 9019ea1d6981SmrgTrue</emphasis> 9020ea1d6981Smrg if the message was caused by the user pressing the key. The <emphasis> 9021ea1d6981Smrgmods</emphasis> 9022ea1d6981Smrg and <emphasis> 9023ea1d6981Smrggroup</emphasis> 9024ea1d6981Smrg fields report the effective keyboard modifiers and group in effect at the time 9025ea1d6981Smrgthe key was pressed or released. 9026ea1d6981Smrg</para> 9027ea1d6981Smrg 9028ea1d6981Smrg 9029ea1d6981Smrg<para> 9030ea1d6981SmrgIf <emphasis> 9031ea1d6981SmrgkeyEventFollows</emphasis> 9032ea1d6981Smrg is <emphasis> 9033ea1d6981SmrgTrue</emphasis> 9034ea1d6981Smrg, the server will also send a key press or release event, as appropriate, for 9035ea1d6981Smrgthe key that generated the message. If it is <emphasis> 9036ea1d6981SmrgFalse</emphasis> 9037ea1d6981Smrg, the key causes only a message. Note that the key event is delivered normally 9038ea1d6981Smrgwith respect to passive grabs, keyboard focus, and cursor position, so that 9039ea1d6981Smrg<emphasis> 9040ea1d6981SmrgkeyEventFollows</emphasis> 9041ea1d6981Smrg does not guarantee that any particular client which receives the <emphasis> 9042ea1d6981SmrgXkbActionMessage</emphasis> 9043ea1d6981Smrg notify event will also receive a key press or release event. 9044ea1d6981Smrg</para> 9045ea1d6981Smrg 9046ea1d6981Smrg 9047ea1d6981Smrg<para> 9048ea1d6981SmrgThe <emphasis> 9049ea1d6981Smrgmessage</emphasis> 9050ea1d6981Smrg field is <emphasis> 9051ea1d6981SmrgNULL</emphasis> 9052ea1d6981Smrg-terminated string of up to <emphasis> 9053ea1d6981SmrgActionMessageLength</emphasis> 9054ea1d6981Smrg (<emphasis> 9055ea1d6981Smrg6</emphasis> 9056ea1d6981Smrg) bytes, which reports the contents of the <emphasis> 9057ea1d6981Smrgmessage</emphasis> 9058ea1d6981Smrg field in the action that caused the message notify event. 9059ea1d6981Smrg</para> 9060ea1d6981Smrg 9061ea1d6981Smrg 9062ea1d6981Smrg</sect2> 9063ea1d6981Smrg<sect2 id='Tracking_Changes_to_AccessX_State_and_Keys'> 9064ea1d6981Smrg<title>Tracking Changes to AccessX State and Keys</title> 9065ea1d6981Smrg 9066ea1d6981Smrg 9067ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 9068ea1d6981Smrg<?dbfo keep-together="always" ?> 9069ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 9070ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 9071ea1d6981Smrg <thead> 9072ea1d6981Smrg <row> 9073ea1d6981Smrg <entry role='protoname'>XkbAccessXNotify</entry> 9074ea1d6981Smrg </row> 9075ea1d6981Smrg </thead> 9076ea1d6981Smrg <tbody> 9077ea1d6981Smrg <row> 9078ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 9079ea1d6981Smrg </row> 9080ea1d6981Smrg <row> 9081ea1d6981Smrg <entry role='protoname'> 9082ea1d6981SmrgdeviceID: CARD8</entry> 9083ea1d6981Smrg </row> 9084ea1d6981Smrg <row> 9085ea1d6981Smrg <entry role='protoname'> 9086ea1d6981Smrgdetail: KB_AXNDETAILMASK</entry> 9087ea1d6981Smrg </row> 9088ea1d6981Smrg <row> 9089ea1d6981Smrg <entry role='protoname'> 9090ea1d6981Smrgkeycode: KEYCODE</entry> 9091ea1d6981Smrg </row> 9092ea1d6981Smrg <row> 9093ea1d6981Smrg <entry role='protoname'> 9094ea1d6981SmrgslowKeysDelay: CARD16</entry> 9095ea1d6981Smrg </row> 9096ea1d6981Smrg <row> 9097ea1d6981Smrg <entry role='protoname'> 9098ea1d6981SmrgdebounceDelay: CARD16</entry> 9099ea1d6981Smrg </row> 9100ea1d6981Smrg 9101ea1d6981Smrg </tbody> 9102ea1d6981Smrg </tgroup> 9103ea1d6981Smrg</informaltable> 9104ea1d6981Smrg 9105ea1d6981Smrg<para> 9106ea1d6981SmrgAn <emphasis> 9107ea1d6981SmrgXkbAccessXNotify</emphasis> 9108ea1d6981Smrg event reports on some kinds of keyboard activity when any of the <emphasis> 9109ea1d6981SmrgSlowKeys</emphasis> 9110ea1d6981Smrg, <emphasis> 9111ea1d6981SmrgBounceKeys</emphasis> 9112ea1d6981Smrg or <emphasis> 9113ea1d6981SmrgAccessXKeys</emphasis> 9114ea1d6981Smrg controls are active. Compatibility map notify events can only be caused by 9115ea1d6981Smrgkeyboard activity. 9116ea1d6981Smrg</para> 9117ea1d6981Smrg 9118ea1d6981Smrg 9119ea1d6981Smrg<para> 9120ea1d6981SmrgThe <emphasis> 9121ea1d6981SmrgdeviceID</emphasis> 9122ea1d6981Smrg and <emphasis> 9123ea1d6981Smrgkeycode</emphasis> 9124ea1d6981Smrg fields specify the keyboard and key for which the event occurred. The 9125ea1d6981Smrg<emphasis> 9126ea1d6981Smrgdetail</emphasis> 9127ea1d6981Smrg field describes the event that occurred and has one of the following values: 9128ea1d6981Smrg</para> 9129ea1d6981Smrg 9130ea1d6981Smrg<informaltable frame='topbot'> 9131ea1d6981Smrg<?dbfo keep-together="always" ?> 9132ea1d6981Smrg<tgroup cols='3' align='left' colsep='0' rowsep='0'> 9133ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 9134ea1d6981Smrg<colspec colname='c2' colwidth='1.0*'/> 9135ea1d6981Smrg<colspec colname='c3' colwidth='2.0*'/> 9136ea1d6981Smrg<thead> 9137ea1d6981Smrg <row rowsep='1'> 9138ea1d6981Smrg <entry>Detail</entry> 9139ea1d6981Smrg <entry>Control</entry> 9140ea1d6981Smrg <entry>Meaning</entry> 9141ea1d6981Smrg </row> 9142ea1d6981Smrg</thead> 9143ea1d6981Smrg<tbody> 9144ea1d6981Smrg <row> 9145ea1d6981Smrg <entry><emphasis> 9146ea1d6981SmrgAXN_SKPress</emphasis> 9147ea1d6981Smrg</entry> 9148ea1d6981Smrg <entry><emphasis> 9149ea1d6981SmrgSlowKeys</emphasis> 9150ea1d6981Smrg</entry> 9151ea1d6981Smrg <entry>Key pressed</entry> 9152ea1d6981Smrg </row> 9153ea1d6981Smrg <row> 9154ea1d6981Smrg <entry><emphasis> 9155ea1d6981SmrgAXN_SKAccept</emphasis> 9156ea1d6981Smrg</entry> 9157ea1d6981Smrg <entry><emphasis> 9158ea1d6981SmrgSlowKeys</emphasis> 9159ea1d6981Smrg</entry> 9160ea1d6981Smrg <entry><emphasis> 9161ea1d6981SmrgK</emphasis> 9162ea1d6981Smrgey held until it was accepted.</entry> 9163ea1d6981Smrg </row> 9164ea1d6981Smrg <row> 9165ea1d6981Smrg <entry><emphasis> 9166ea1d6981SmrgAXN_SKReject</emphasis> 9167ea1d6981Smrg</entry> 9168ea1d6981Smrg <entry><emphasis> 9169ea1d6981SmrgSlowKeys</emphasis> 9170ea1d6981Smrg</entry> 9171ea1d6981Smrg <entry>Key released before it was accepted.</entry> 9172ea1d6981Smrg </row> 9173ea1d6981Smrg <row> 9174ea1d6981Smrg <entry><emphasis> 9175ea1d6981SmrgAXN_SKRelease</emphasis> 9176ea1d6981Smrg</entry> 9177ea1d6981Smrg <entry><emphasis> 9178ea1d6981SmrgSlowKeys</emphasis> 9179ea1d6981Smrg</entry> 9180ea1d6981Smrg <entry>Key released after it was accepted.</entry> 9181ea1d6981Smrg </row> 9182ea1d6981Smrg <row> 9183ea1d6981Smrg <entry><emphasis> 9184ea1d6981SmrgAXN_BKAccept</emphasis> 9185ea1d6981Smrg</entry> 9186ea1d6981Smrg <entry><emphasis> 9187ea1d6981SmrgBounceKeys</emphasis> 9188ea1d6981Smrg</entry> 9189ea1d6981Smrg <entry>Key pressed while it was active.</entry> 9190ea1d6981Smrg </row> 9191ea1d6981Smrg <row> 9192ea1d6981Smrg <entry><emphasis> 9193ea1d6981SmrgAXN_BKReject</emphasis> 9194ea1d6981Smrg</entry> 9195ea1d6981Smrg <entry><emphasis> 9196ea1d6981SmrgBounceKeys</emphasis> 9197ea1d6981Smrg</entry> 9198ea1d6981Smrg <entry>Key pressed while it was still disabled.</entry> 9199ea1d6981Smrg </row> 9200ea1d6981Smrg <row> 9201ea1d6981Smrg <entry><emphasis> 9202ea1d6981SmrgAXN_AXKWarning</emphasis> 9203ea1d6981Smrg</entry> 9204ea1d6981Smrg <entry><emphasis> 9205ea1d6981SmrgAccessXKeys</emphasis> 9206ea1d6981Smrg</entry> 9207ea1d6981Smrg <entry>Shift key held down for four seconds</entry> 9208ea1d6981Smrg </row> 9209ea1d6981Smrg</tbody> 9210ea1d6981Smrg</tgroup> 9211ea1d6981Smrg</informaltable> 9212ea1d6981Smrg 9213ea1d6981Smrg<para> 9214ea1d6981SmrgEach subclass of the AccessX notify event is generated only when the control 9215ea1d6981Smrgspecified in the table above is enabled. The server sends an <emphasis> 9216ea1d6981SmrgXkbAccessXNotify</emphasis> 9217ea1d6981Smrg event to a client only if the bit which corresponds to the value of the 9218ea1d6981Smrg<emphasis> 9219ea1d6981Smrgdetail</emphasis> 9220ea1d6981Smrg field for the event is set in the appropriate event details mask for the 9221ea1d6981Smrgclient. 9222ea1d6981Smrg</para> 9223ea1d6981Smrg 9224ea1d6981Smrg 9225ea1d6981Smrg<para> 9226ea1d6981SmrgRegardless of the value of <emphasis> 9227ea1d6981Smrgdetail</emphasis> 9228ea1d6981Smrg, the <emphasis> 9229ea1d6981SmrgslowKeysDelay</emphasis> 9230ea1d6981Smrg and <emphasis> 9231ea1d6981SmrgdebounceDelay</emphasis> 9232ea1d6981Smrg fields always reports the current slow keys acceptance delay (see 9233ea1d6981Smrg<link linkend='The_SlowKeys_Control'>The SlowKeys Control</link>) and 9234ea1d6981Smrgdebounce delay (see <link linkend='The_BounceKeys_Control'>The BounceKeys 9235ea1d6981SmrgControl</link>) for the specified keyboard. 9236ea1d6981Smrg</para> 9237ea1d6981Smrg 9238ea1d6981Smrg 9239ea1d6981Smrg</sect2> 9240ea1d6981Smrg<sect2 id='Tracking_Changes_To_Extension_Devices'> 9241ea1d6981Smrg<title>Tracking Changes To Extension Devices</title> 9242ea1d6981Smrg 9243ea1d6981Smrg 9244ea1d6981Smrg<informaltable frame='none' tabstyle='proto'> 9245ea1d6981Smrg<?dbfo keep-together="always" ?> 9246ea1d6981Smrg<tgroup cols='1' align='left' colsep='0' rowsep='0'> 9247ea1d6981Smrg<colspec colname='c1' colwidth='1.0*'/> 9248ea1d6981Smrg <thead> 9249ea1d6981Smrg <row> 9250ea1d6981Smrg <entry role='protoname'>XkbExtensionDeviceNotify</entry> 9251ea1d6981Smrg </row> 9252ea1d6981Smrg </thead> 9253ea1d6981Smrg <tbody> 9254ea1d6981Smrg <row> 9255ea1d6981Smrg <entry role='protoargs'>time: TIMESTAMP</entry> 9256ea1d6981Smrg </row> 9257ea1d6981Smrg <row> 9258ea1d6981Smrg <entry role='protoname'> 9259ea1d6981SmrgdeviceID: CARD16</entry> 9260ea1d6981Smrg </row> 9261ea1d6981Smrg <row> 9262ea1d6981Smrg <entry role='protoname'> 9263ea1d6981SmrgledClass: { KbdFeedbackClass, LedFeedbackClass }</entry> 9264ea1d6981Smrg </row> 9265ea1d6981Smrg <row> 9266ea1d6981Smrg <entry role='protoname'> 9267ea1d6981SmrgledID: CARD16</entry> 9268ea1d6981Smrg </row> 9269ea1d6981Smrg <row> 9270ea1d6981Smrg <entry role='protoname'> 9271ea1d6981Smrgreason: KB_XIDETAILMASK</entry> 9272ea1d6981Smrg </row> 9273ea1d6981Smrg <row> 9274ea1d6981Smrg <entry role='protoname'> 9275ea1d6981Smrgsupported: KB_XIFEATUREMASK</entry> 9276ea1d6981Smrg </row> 9277ea1d6981Smrg <row> 9278ea1d6981Smrg <entry role='protoname'> 9279ea1d6981Smrgunsupported: KB_XIFEATUREMASK</entry> 9280ea1d6981Smrg </row> 9281ea1d6981Smrg <row> 9282ea1d6981Smrg <entry role='protoname'> 9283ea1d6981SmrgledsDefined: KB_INDICATORMASK</entry> 9284ea1d6981Smrg </row> 9285ea1d6981Smrg <row> 9286ea1d6981Smrg <entry role='protoname'> 9287ea1d6981SmrgledState: KB_INDICATORMASK</entry> 9288ea1d6981Smrg </row> 9289ea1d6981Smrg <row> 9290ea1d6981Smrg <entry role='protoname'> 9291ea1d6981SmrgfirstButton, nButtons: CARD8</entry> 9292ea1d6981Smrg </row> 9293ea1d6981Smrg 9294ea1d6981Smrg </tbody> 9295ea1d6981Smrg </tgroup> 9296ea1d6981Smrg</informaltable> 9297ea1d6981Smrg 9298ea1d6981Smrg<para> 9299ea1d6981SmrgAn <emphasis> 9300ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 9301ea1d6981Smrg event reports: 9302ea1d6981Smrg</para> 9303ea1d6981Smrg 9304ea1d6981Smrg<itemizedlist> 9305ea1d6981Smrg<listitem> 9306ea1d6981Smrg <para>A change to some part of the XKB information for an extension device. 9307ea1d6981Smrg </para> 9308ea1d6981Smrg</listitem> 9309ea1d6981Smrg<listitem> 9310ea1d6981Smrg <para>An attempt to use an XKB extension device feature that is not supported 9311ea1d6981Smrgfor the specified device by the current implementation. 9312ea1d6981Smrg </para> 9313ea1d6981Smrg</listitem> 9314ea1d6981Smrg</itemizedlist> 9315ea1d6981Smrg 9316ea1d6981Smrg<para> 9317ea1d6981SmrgThe <emphasis> 9318ea1d6981SmrgdeviceID</emphasis> 9319ea1d6981Smrg field specifies the X Input Extension device identifier of some device on 9320ea1d6981Smrgwhich an XKB feature was requested, or <emphasis> 9321ea1d6981SmrgXkbUseCorePtr</emphasis> 9322ea1d6981Smrg if the request affected the core pointer device. The <emphasis> 9323ea1d6981Smrgreason</emphasis> 9324ea1d6981Smrg field explains why the event was generated in response to the request, and can 9325ea1d6981Smrgcontain any combination of <emphasis> 9326ea1d6981SmrgXkbXI_UnsupportedFeature</emphasis> 9327ea1d6981Smrg and the values permitted for the change field of the <emphasis> 9328ea1d6981SmrgXkbSetDeviceInfo</emphasis> 9329ea1d6981Smrg request. 9330ea1d6981Smrg</para> 9331ea1d6981Smrg 9332ea1d6981Smrg 9333ea1d6981Smrg<para> 9334ea1d6981SmrgIf <emphasis> 9335ea1d6981SmrgXkbXI_ButtonActions</emphasis> 9336ea1d6981Smrg is set in <emphasis> 9337ea1d6981Smrgreason</emphasis> 9338ea1d6981Smrg, this event reports a successful change to the XKB actions bound to one or 9339ea1d6981Smrgmore buttons on the core pointer or an extension device. The <emphasis> 9340ea1d6981SmrgfirstButton</emphasis> 9341ea1d6981Smrg and <emphasis> 9342ea1d6981SmrgnButtons</emphasis> 9343ea1d6981Smrg fields report a range of device buttons that include all of the buttons for 9344ea1d6981Smrgwhich actions were changed. 9345ea1d6981Smrg</para> 9346ea1d6981Smrg 9347ea1d6981Smrg 9348ea1d6981Smrg<para> 9349ea1d6981SmrgIf any combination of <emphasis> 9350ea1d6981SmrgXkbXI_IndicatorNames</emphasis> 9351ea1d6981Smrg, <emphasis> 9352ea1d6981SmrgXkbXI_IndicatorMaps</emphasis> 9353ea1d6981Smrg, or <emphasis> 9354ea1d6981SmrgXkbXI_IndicatorState</emphasis> 9355ea1d6981Smrg is set in either <emphasis> 9356ea1d6981Smrgreason</emphasis> 9357ea1d6981Smrg or <emphasis> 9358ea1d6981Smrgunsupported</emphasis> 9359ea1d6981Smrg, the <emphasis> 9360ea1d6981SmrgledClass</emphasis> 9361ea1d6981Smrg and <emphasis> 9362ea1d6981SmrgledID</emphasis> 9363ea1d6981Smrg fields specify the X Input Extension feedback class and identifier of the 9364ea1d6981Smrgfeedback for which the change is reported. If this event reports any changes to 9365ea1d6981Smrgan indicator feedback, the <emphasis> 9366ea1d6981SmrgledsDefined</emphasis> 9367ea1d6981Smrg field reports all indicators on that feedback for which either a name or a 9368ea1d6981Smrgindicator map are defined, and <emphasis> 9369ea1d6981SmrgledState</emphasis> 9370ea1d6981Smrg reports the current state of all of the indicators on the specified feedback. 9371ea1d6981Smrg</para> 9372ea1d6981Smrg 9373ea1d6981Smrg 9374ea1d6981Smrg<para> 9375ea1d6981SmrgIf <emphasis> 9376ea1d6981SmrgXkbXI_IndicatorNames</emphasis> 9377ea1d6981Smrg is set in <emphasis> 9378ea1d6981Smrgreason</emphasis> 9379ea1d6981Smrg, this event reports a successful change to the symbolic names bound to one or 9380ea1d6981Smrgmore extension device indicators by XKB. If <emphasis> 9381ea1d6981SmrgXkbXI_IndicatorMaps</emphasis> 9382ea1d6981Smrg is set in <emphasis> 9383ea1d6981Smrgreason</emphasis> 9384ea1d6981Smrg, this event reports a successful change to the indicator maps bound to one or 9385ea1d6981Smrgmore extension device indicators by XKB. If <emphasis> 9386ea1d6981SmrgXkbXI_IndicatorState</emphasis> 9387ea1d6981Smrg is set in reason, this event reports that one or more indicators in the 9388ea1d6981Smrgspecified device and feedback have changed state. 9389ea1d6981Smrg</para> 9390ea1d6981Smrg 9391ea1d6981Smrg 9392ea1d6981Smrg<para> 9393ea1d6981SmrgIf <emphasis> 9394ea1d6981SmrgXkbXI_UnsupportedFeature</emphasis> 9395ea1d6981Smrg is set in reason, this event reports an unsuccessful attempt to use some XKB 9396ea1d6981Smrgextension device feature that is not supported by the XKB implementation in the 9397ea1d6981Smrgserver for the specified device. The <emphasis> 9398ea1d6981Smrgunsupported</emphasis> 9399ea1d6981Smrg mask reports the requested features that are not available on the specified 9400ea1d6981Smrgdevice. See <link linkend='Interactions_Between_XKB_and_the_X_Input_Extension'>Interactions Between 9401ea1d6981SmrgXKB and the X Input Extension</link> for more information about possible XKB 9402ea1d6981Smrginteractions with the X Input Extension. 9403ea1d6981Smrg</para> 9404ea1d6981Smrg 9405ea1d6981Smrg 9406ea1d6981Smrg<para> 9407ea1d6981SmrgThe server sends an <emphasis> 9408ea1d6981SmrgXkbExtensionDeviceNotify</emphasis> 9409ea1d6981Smrg event to a client only if at least one of the bits that is set in the 9410ea1d6981Smrg<emphasis> 9411ea1d6981Smrgreason</emphasis> 9412ea1d6981Smrg field of the event is also set in the appropriate event details mask for the 9413ea1d6981Smrgclient. 9414ea1d6981Smrg</para> 9415ea1d6981Smrg 9416ea1d6981Smrg 9417ea1d6981Smrg<para> 9418ea1d6981SmrgEvents that report a successful change to some extension device feature are 9419ea1d6981Smrgreported to all clients that have expressed interest in the event; events that 9420ea1d6981Smrgreport an attempt to use an unsupported feature are reported only to the client 9421ea1d6981Smrgwhich issued the request. Events which report a partial success are reported to 9422ea1d6981Smrgall interested clients, but only the client that issued the request is informed 9423ea1d6981Smrgof the attempt to use unsupported features. 9424ea1d6981Smrg</para> 9425ea1d6981Smrg</sect2> 9426ea1d6981Smrg</sect1> 9427ea1d6981Smrg</chapter> 9428