From 9b9f9373f32ebe9a15f286d16b6ba880b44a9c22 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 25 May 2009 12:45:52 +1000 Subject: Add XIGetSelectedEvents. --- man/Makefile.am | 3 ++- man/XISelectEvents.txt | 25 ++++++++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) (limited to 'man') diff --git a/man/Makefile.am b/man/Makefile.am index 383c30f..304f993 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -78,7 +78,8 @@ XI2_refpages = \ XIUngrabKeysym.man \ XIUngrabDevice.man \ XIGetClientPointer.man \ - XIGetFocus.man + XIGetFocus.man \ + XIGetSelectedEvents.man libman_ref = \ XGetDeviceDontPropagateList.man \ diff --git a/man/XISelectEvents.txt b/man/XISelectEvents.txt index a822fb3..07b3c8e 100644 --- a/man/XISelectEvents.txt +++ b/man/XISelectEvents.txt @@ -4,7 +4,7 @@ XISELECTEVENTS(libmansuffix) NAME ---- - XISelectEvents - select for XI2 events on the window. + XISelectEvents, XIGetSelectedEvents - select for or get selected XI2 events on the window. SYNOPSIS -------- @@ -28,6 +28,19 @@ SYNOPSIS 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 ----------- @@ -60,6 +73,16 @@ DESCRIPTION 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 ----------- -- cgit v1.2.3