Home Man
Today's Posts

Linux & Unix Commands - Search Man Pages

X11R7.4 - man page for xkbnoteindicatorchanges (x11r4 section 3)

XkbNoteIndicatorChanges(3)		  XKB FUNCTIONS 	       XkbNoteIndicatorChanges(3)

       XkbNoteIndicatorChanges - Notes the changes in a changes structure

       void XkbNoteIndicatorChanges ( old, new, wanted )
	     XkbIndicatorChangesPtr old;
	     XkbIndicatorNotifyEvent *new;
	     unsigned int wanted;

       - old  XkbIndicatorChanges structure to be updated

       - new  event from which changes are to be copied

       - wanted
	      which changes are to be noted

       Whenever  an  indicator	changes state, the server sends XkbIndicatorStateNotify 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
       bits_to_change and values_for_bits parameters containing  XkbIndicatorStateNotifyMask.  To
       receive XkbIndicatorMapNotify events, use XkbSelectEvents with XkbIndicatorMapNotifyMask.

       To  receive  events  for  only  specific  indicators,  use XkbSelectEventDetails.  Set the
       event_type parameter to XkbIndicatorStateNotify or XkbIndicatorMapNotify, and set both the
       bits_to_change  and  values_for_bits  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.

       The  changed  parameter	is a mask that is the bitwise inclusive OR of the indicators that
       have changed. If the event is of type XkbIndicatorMapNotify, 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  indica-
       tors, whether they have changed or not, for both XkbIndicatorStateNotify and IndicatorMap-
       Notify events.

       When your client application receives either a XkbIndicatorStateNotify event or XkbIndica-
       torMapNotify  event,  you  can  note  the  changes  in a changes structure by calling Xkb-

       The wanted parameter is the bitwise inclusive OR  of  XkbIndicatorMapMask  and  XkbIndica-
       torStateMask.  XkbNoteIndicatorChanges copies any changes reported in new and specified in
       wanted into the changes record specified by old.

       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		send_event; /* True => synthetically generated */
	 Display *	display;    /* server connection where event generated */
	 Time		time;	    /* server time when event generated */
	 int		xkb_type;   /* 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;

       xkb_type is either XkbIndicatorStateNotify or XkbIndicatorMapNotify, depending on  whether
       the event is a kbIndicatorStateNotify event or kbIndicatorMapNotify event.

       XkbIndicatorMapMask(3),	  XkbIndicatorStateMask(3),    XkbSelectEventDetails(3),   XkbSe-

X Version 11				   libX11 1.2.1 	       XkbNoteIndicatorChanges(3)

All times are GMT -4. The time now is 03:29 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password