Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xiselectevents(3) [centos man page]

XISELECTEVENTS(3)														 XISELECTEVENTS(3)

NAME
XISelectEvents, XIGetSelectedEvents - select for or get selected XI2 events on the window. SYNOPSIS
#include <X11/extensions/XInput2.h> Status XISelectEvents( Display *display, Window win, XIEventMask *masks, int num_masks); display Specifies the connection to the X server. masks Device event mask. num_masks Number of masks in masks. win Specifies the window. XIEventMask *XIGetSelectedEvents( Display *display, Window win, int *num_masks_return); display Specifies the connection to the X server. num_masks_return Number of masks in the return value. win Specifies the window. DESCRIPTION
XI2 events must be selected using XISelectEvents. XISelectEvents sets the event mask for this client on win. Further events are only reported to this client if the event type matches the selected event mask. The masks overrides the previously selected event mask for the given device. If deviceid is a valid device, the event mask is selected only for this device. If deviceid is XIAllDevices or XIAllMasterDevices, the event mask is selected for all devices or all master devices, respectively. The effective event mask is the bit-wise OR of the XIAllDevices, XIAllMasterDevices and the respective device's event mask. typedef struct { int deviceid; int mask_len; unsigned char* mask; } XIEventMask; The mask_len specifies the length of mask in bytes. mask is a binary mask in the form of (1 << event type). deviceid must be either a device or XIAllDevices or XIAllMasterDevices. A client may submit several masks with the same deviceid in one request but only the last mask will be effective. XISelectEvents can generate a BadValue, a BadDevice, and a BadWindow error. XIGetSelectedEvents returns the events selected by this client on the given window. If no events were selected on this window, XIGetSelectedEvents returns NULL and num_masks_return is set to 0. If an internal error occurs, XIGetSelectedEvents returns NULL and num_masks_return is set to -1. Otherwise, XIGetSelectedEvent returns the selected event masks for all devices including the masks for XIAllDevices and XIAllMasterDevices The caller must free the returned data using XFree(). DIAGNOSTICS
BadValue A value is outside of the permitted range. BadWindow A value for a Window argument does not name a defined window. BadDevice An invalid device was specified. The device does not exist. 03/09/2013 XISELECTEVENTS(3)

Check Out this Related Man Page

XHPSelectExtensionEvent(3X)											       XHPSelectExtensionEvent(3X)

NAME
XHPSelectExtensionEvent - Select an extension event. SYNOPSIS
int XHPSelectExtensionEvent (display, window, deviceid, mask) Display *display; Window window; XID deviceid; Mask mask; ARGUMENTS
display Specifies the connection to the X server. window Specifies the window from which input is desired. deviceid Specifies the device from which input is desired. mask Specifies the mask of input events that are desired. DESCRIPTION
These requests are part of an HP-proprietary extension to X. Its functionality has been superseded by the standard X input device extension XSelectExtensionEvent request. You should use XSelectExtensionEvent instead of XHPSelectExtensionEvent if possible. This request is provided to support the use of input devices other than the X keyboard and X pointer device. It allows input from other input devices to be selected independently from that coming from the X pointer and keyboard. XHPSelectExtensionEvent requests the server to send an extended event that matches the specified event mask and comes from the specified device and window. In order to use this request, the client program must first determine the appropriate deviceid by using the XHPListInputDevice request, and the appropriate event mask by using the XHPGetExtEventMask request. Multiple event masks returned by XHPGetExtEventMask may be OR'd together and specified in a single request to XHPSelectExtensionEvent. This request cannot be used to select any of the core X events, or to receive input from the X Keyboard or X pointer device. The core XSelectInput request should be used for that purpose. DIAGNOSTICS
BadDevice An invalid device ID was specified. BadWindow An invalid window ID was specified. RETURN VALUE
none FILES
none ORIGIN
Hewlett-Packard Company SEE ALSO
XHPListInputDevices(3x) XHPGetExtEventMask(3x) XSelectInput(3x) X Version 11 Release 5 XHPSelectExtensionEvent(3X)
Man Page