[v2] Improve the ButtonInfo description.

Submitted by Roman Kapl on June 8, 2018, 9:26 a.m.

Details

Message ID 20180608092615.3019-1-code@rkapl.cz
State New
Series "Improve the ButtonInfo description."
Headers show

Commit Message

Roman Kapl June 8, 2018, 9:26 a.m.
It failed to mention it is followed by a bit-mask and then the atoms.

Signed-off-by: Roman Kapl <code@rkapl.cz>
---
The previous patch was done incorrectly against xorgproto, I guess that's the
old repo.

 XI2proto.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/XI2proto.h b/XI2proto.h
index 4cdaa0d..28a9062 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -149,8 +149,9 @@  typedef struct {
 
 /**
  * Denotes button capability on a device.
- * Struct is followed by num_buttons * Atom that names the buttons in the
- * device-native setup (i.e. ignoring button mappings).
+ * Struct is followed by a button bit-mask (padded to four byte chunks) and
+ * then num_buttons * Atom that names the buttons in the device-native setup
+ * (i.e.  ignoring button mappings).
  */
 typedef struct {
     uint16_t    type;           /**< Always ButtonClass */