Peter Hutterer
1d59de593c
XISelectEventsReq should use win (not window), like all requests.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12 15:50:46 +10:00
Peter Hutterer
f711dfae68
XI2proto: document XSetClientPointer behaviour on None window, etc.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12 15:50:21 +10:00
Peter Hutterer
17a6ad0942
inputproto 1.9.99.11
2009-06-08 15:40:21 +10:00
Peter Hutterer
03309cfbc1
xXIHierarchyEvent should list num_info, not num_devices.
...
The structures following the request are referred to as "info", having a
name of "num_devices" is misleading as the number of info structs does not
always reflect the number of devices (e.g. if a device got removed).
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-08 15:39:53 +10:00
Peter Hutterer
751f2d6c0f
Rename XICreateMaster to XIAddMaster for consistency.
...
We use add/remove for slave devices, add/remove for the hierarchy changed
flags, so let's use add/remove to create a new device as well.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-08 15:39:52 +10:00
Peter Hutterer
44f2419e56
Update comment referring to an old naming scheme.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-08 15:39:45 +10:00
Peter Hutterer
6e20d1fc25
Document BadValue error for XIHierarchyEvents selection on devices.
...
These events may only be selected on the XIAllDevices fake device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-08 15:39:42 +10:00
Peter Hutterer
56da196866
XIQueryVersion may return a BadValue for major_version less than 2.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-04 13:35:56 +10:00
Peter Hutterer
0d75208a55
Move the XI2 index into versions[] over to XI2.h
2009-06-01 09:13:22 +10:00
Peter Hutterer
8aff0836af
Specify modifier interactions with attached slave devices on passive grabs.
2009-05-29 13:25:32 +10:00
Peter Hutterer
e102c504ec
inputproto 1.9.99.10
2009-05-28 14:47:49 +10:00
Peter Hutterer
6b61bef5da
Mirror the core enter/focus modes and add the passive grab mode.
...
If an enter/focus grabs activates (or deactivates), send an extra set of
enter/focus in (or leave/focus out) events to the grabbing client with mode
XIPassiveGrabNotify.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-28 14:47:49 +10:00
Peter Hutterer
1b2dc24bf5
Add Enter/FocusIn passive grabs.
...
Same behaviour as button/keysym grabs but triggered on enter/leave and
focus in/out events.
2009-05-27 13:35:57 +10:00
Peter Hutterer
d0c6633f7b
XI2proto.txt: remove one more keycode mentioning, fix typo
2009-05-27 13:16:36 +10:00
Peter Hutterer
31f492bf94
Add XIGetSelectedEvents request and reply.
...
Counterpart to XISelectEvents, used to retrieve event masks from the server.
2009-05-25 15:22:15 +10:00
Benjamin Close
f065f6c12a
XI2proto.h: fix two comments referring to the old naming scheme.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-19 11:27:03 +10:00
Peter Hutterer
3aca2d6ba5
inputproto 1.9.99.9
2009-05-16 11:49:35 +10:00
Peter Hutterer
8c28723677
Document naming conventions for XI2proto.h.
2009-05-16 11:49:35 +10:00
Peter Hutterer
b32e5830c0
XI2proto: define Window, Cursor, Atom and Time as uint32_t.
...
Since we're using stdint in the rest of the file, might as well ignore
CARD32 here.
2009-05-16 11:49:34 +10:00
Peter Hutterer
f4f09d40e0
XI2.h: remove XI2Mask, add XISetMask and friends.
...
XISetMask, XIClearMask, XIMaskIsSet serve to set, clear or check a bit in
the provided array.
XIMaskLen is a macro to get the minimum length of a mask for a given event
type.
They are expected to be common ways to deal with event masks, i.e. clients
will do:
unsigned char mask[XIMaskLen(XI_ButtonRelease)] = {0};
XISetMask(mask, XI_ButtonPress)
XISetMask(mask, XI_ButtonRelease)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-16 11:49:34 +10:00
Peter Hutterer
0ae6581bc6
Add XIAnyButton and XIAnyKeysym.
2009-05-16 11:49:34 +10:00
Peter Hutterer
4cc6992b08
XIQueryPointer needs to include sensible button/modifier state.
...
This includes shuffling the xXIModifierInfo and xXIGroupInfo structs to the
common structs section.
2009-05-14 12:13:45 +10:00
Peter Hutterer
d041f30777
Add an introduction to XI2proto.txt
2009-05-14 10:29:49 +10:00
Peter Hutterer
e1138da902
XI2proto.txt: remove more mentioning of keycode grabs
2009-05-12 19:24:31 +10:00
Peter Hutterer
7aba20ed4c
Remove superfluous "Device" from protocol requests and events.
...
Anything with prefix XI is per-device anyway.
2009-05-12 19:21:12 +10:00
Peter Hutterer
12635cbd4a
Add per-device flags to XIDeviceHierarchyEvents
2009-05-12 16:14:01 +10:00
Peter Hutterer
886d2aceb7
Define Cursor as CARD32.
...
Reported-by: Benjamin Close <benjamin.close@clearchain.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-12 13:46:20 +10:00
Peter Hutterer
32277164bc
XI2proto.h: doxygen-ify
2009-05-11 14:51:12 +10:00
Peter Hutterer
e9dfa40155
XI2proto.h: s/uint32_t/Time/ where appropriate
2009-05-11 13:46:53 +10:00
Peter Hutterer
a47a2b5084
Prefix all XI2 constants with "XI" -> inputproto 1.99.9.8
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-05-07 16:50:50 +10:00
Peter Hutterer
2edc35c032
Add XI2 property requests.
...
Basically the same as XI 1.5, save the 16 bit deviceids.
2009-05-07 16:50:50 +10:00
Peter Hutterer
504b480c94
XI2: add passive grabs.
...
Most notably XI2 provides keysym grabs instead of keycode grabs.
2009-05-07 16:50:47 +10:00
Peter Hutterer
5d60550fde
XI2 spec: Add some more Grab/Ungrab/AllowEvents documentation.
2009-04-25 10:44:05 +10:00
Benjamin Close
6d28cb22ad
Define the Cursor datasize correctly
...
On 64 bit machines, without Cursor defined Xlib would allocate 64 bits
rather than 32 to any structs using Cursor. This led to data not
correctly being available on the wire hence the Xserver would do strange
things. We hence define Cursor to what it should be and make sure
we undefine it after we've finished to users of XIproto.h aren't affected
Fix-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-22 12:45:13 +10:00
Paul "TBBle" Hampson
589dc6ffa5
Fix typo in XI2proto.txt
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-22 12:45:03 +10:00
Peter Hutterer
3380ae0ac0
Add XIAllowEvents.
...
Basically the same as the core protocol AllowEvents.
2009-04-20 13:37:21 +10:00
Peter Hutterer
3c273d7145
Change FP1616 into a single int32_t.
2009-04-19 22:29:00 +10:00
Peter Hutterer
8914a9a2a9
Add GrabDevice and UngrabDevice XI2 requests.
2009-04-19 22:28:57 +10:00
Peter Hutterer
1956df7e45
Revert "Add major/minor version as supported by client to GetExtensionVersionReq."
...
This reverts commit f6e41306f7 .
Sending the supported version hidden in another request is potentially
dangerous, so let's not do it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:56:50 +10:00
Peter Hutterer
55ee1f97d4
XI2proto.txt: fix typo
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:35:09 +10:00
Peter Hutterer
d5105dc851
We don't need to define KeyCode and Mask.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:18:01 +10:00
Peter Hutterer
75daa0db2c
Undef Window, Time, etc. after usage again to avoid pollution.
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-04-10 14:17:19 +10:00
Peter Hutterer
6c9785ea25
Remove IsFloating - we don't need this in XI 1.x anymore.
2009-03-20 15:32:07 +10:00
Peter Hutterer
069880638b
Move XI_2_Major/Minor to XI2.h
2009-03-20 15:32:07 +10:00
Peter Hutterer
2570457174
Move AttachToMaster, Floating to XI2.h
2009-03-20 15:32:07 +10:00
Peter Hutterer
1d933800ac
Move CH_* constants to xi2
2009-03-20 15:32:07 +10:00
Peter Hutterer
5aa07308a1
Remove XI2 requests from XIproto.h
...
All requests been moved to XI2proto.h. Only ExtendedGrabDevice is gone for
good.
2009-03-20 15:32:07 +10:00
Peter Hutterer
05f997e689
Bump to 1.9.99.7
2009-03-20 15:32:07 +10:00
Peter Hutterer
7a73c3c64b
Add XISetDeviceFocus and XIGetDeviceFocus requests
2009-03-20 15:32:07 +10:00
Peter Hutterer
0ca1de737a
Add focus events
2009-03-12 11:44:20 +10:00