Manual Pages for Linux CentOS command on man XkbChangeIndicators
MyWebUniversity

Manual Pages for Linux CentOS command on man XkbChangeIndicators

XkbChangeIndicators(3) XKB FUNCTIONS XkbChangeIndicators(3)

NAME

XkbChangeIndicators - Changes indicator maps or state without passing the entire keyboard description SYNOPSIS Bool XkbChangeIndicators (Display *dpy, XkbDescPtr xkb, XkbIndicator‐ ChangesPtr changes, unsigned int state); ARGUMENTS

- dpy connection to the X server

- xkb keyboard description from which names are to be taken.

- changes indicators to be updated on the server

- state

new state of indicators listed in changes->statechanges DESCRIPTION The XkbIndicatorChangesRec identifies small modifications to the indi‐ cator map. Use it with the function XkbChangeIndicators to reduce the amount of traffic sent to the server (see STRUCTURES). The statechanges field is a mask that specifies the indicators that have changed state, and mapchanges is a mask that specifies the indi‐ cators whose maps have changed. XkbChangeIndicators copies any maps specified by changes from the key‐ board description, xkb, to the server specified by dpy. If any bits are set in the statechanges field of changes, XkbChangeIndicators also sets the state of those indicators to the values specified in the state mask. A 1 bit in state turns the corresponding indicator on, a 0 bit turns it off. In addition, it can also generate XkbIndicatorStateNotify and XkbIndi‐ catorMapNotify events. Whenever an indicator changes state, the server sends XkbIndica‐ torStateNotify events to all interested clients. Similarly, whenever an indicator's map changes, the server sends XkbIndicatorMapNotify events to all interested clients. To receive XkbIndicatorStateNotify events, use XkbSelectEvents with both the bitstochange and valuesforbits parameters containing XkbIndicatorStateNotifyMask. To receive XkbIndicatorMapNotify events, use XkbSelectEvents with XkbIndicatorMapNotifyMask. To receive events for only specific indicators, use XkbSelectEventDe‐ tails. Set the eventtype parameter to XkbIndicatorStateNotify or XkbIndicatorMapNotify, and set both the bitstochange and val‐ uesforbits detail parameters to a mask where each bit specifies one indicator, turning on those bits that specify the indicators for which you want to receive events. xkbtype is either XkbIndicatorStateNotify or XkbIndicatorMapNotify, depending on whether the event is a kbIndicatorStateNotify event or kbIndicatorMapNotify event. The changed parameter is a mask that is the bitwise inclusive OR of the indicators that have changed. If the event is of type XkbIndicatorMap‐ Notify, changed reports the maps that changed. If the event is of type XkbIndicatorStateNotify, changed reports the indicators that have changed state. state is a mask that specifies the current state of all indicators, whether they have changed or not, for both XkbIndica‐ torStateNotify and IndicatorMapNotify events. STRUCTURES typedef struct XkbIndicatorChanges { unsigned int statechanges; unsigned int mapchanges; }XkbIndicatorChangesRec,*XkbIndicatorChangesPtr; Both types of indicator events use the same structure: typedef struct XkbIndicatorNotify { int type; /∗ Xkb extension base event code */ unsigned long serial; /∗ X server serial number for event */ Bool sendevent; /∗ True => synthetically generated */ Display * display; /∗ server connection where event generated */ Time time; /∗ server time when event generated */ int xkbtype; /∗ specifies state or map notify */ int device; /∗ Xkb device ID, will not be XkbUseCoreKbd*/ unsigned int changed; /∗ mask of indicators with new state or map */ unsigned int state; /∗ current state of all indicators */ } XkbIndicatorNotifyEvent; DIAGNOSTICS BadAtom A name is neither a valid Atom or None BadImplementation Invalid reply from server SEE ALSO XkbIndicatorMapNotify(3), XkbIndicatorStateNotify(3) X Version 11 libX11 1.6.5 XkbChangeIndicators(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™