Commit graph

212 commits

Author SHA1 Message Date
Gaetan Nadon
ee09bc24ce Makefile.am: INSTALL file is missing or incorrect #24206
The standard GNU file on building/installing  tarball is copied
using the XORG_INSTALL macro contained in XORG_DEFAULT_OPTIONS
Add INSTALL target
2009-11-15 18:31:28 -05:00
Gaetan Nadon
2ee03af19d configure.ac: deploy the new XORG_DEFAULT_OPTIONS #24242
This macro aggregate a number of existing macros that sets commmon
X.Org components configuration options. It shields the configuration file from
future changes.
2009-11-15 18:11:36 -05:00
Gaetan Nadon
bf66af595c configure.ac: AM_MAINTAINER_MODE missing #24238
This turns off maintainer mode build rules in tarballs.
Works in conjunction with autogen.sh --enable-maintainer-mode
2009-11-15 13:55:25 -05:00
Gaetan Nadon
9ad88d954d .gitignore: use common defaults with custom section # 24239
Using common defaults will reduce errors and maintenance.
Only the very small or inexistent custom section need periodic maintenance
when the structure of the component changes. Do not edit defaults.
2009-11-15 13:22:55 -05:00
Peter Hutterer
34a9ab1151 inputproto 2.0
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-02 11:38:12 +10:00
Peter Hutterer
0470d29c1e Add XIproto.txt
This is the XI protocol specification document that used to be in xorg-docs.
It's now moved here, and if it ever sees updates, the updates will only
apply to here.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-02 11:31:24 +10:00
Peter Hutterer
bda99e7e5a Require macros 1.3 for XORG_DEFAULT_OPTIONS
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-02 11:31:23 +10:00
Peter Hutterer
472309905a inputproto 1.9.99.902 (RC 2)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-25 10:04:25 +10:00
Peter Hutterer
f3f79c0642 Device cursors are deleted once the window or the device disappear.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-25 10:04:25 +10:00
Peter Hutterer
ae4588ff0c XIWarpPointer needs to take FP1616 for positions.
This was already in the spec but the protocol itself hadn't cought up with
it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-21 14:24:35 +10:00
Peter Hutterer
8eccc169c0 Replace four leftover INT16 with int16_t. 2009-08-21 13:56:11 +10:00
Peter Hutterer
68cdaf8d26 XIQueryPointer only works on master pointers and floating slaves.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-21 13:56:07 +10:00
Peter Hutterer
d9aa0917b4 XI2proto: XIChangeCursor request requires a master pointer.
State that the server will return BadDevice in this case.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-18 15:16:00 +10:00
Peter Hutterer
4f9d8d49ec XI2proto.txt: typo fix
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-18 15:15:59 +10:00
Peter Hutterer
6719ae1ed0 Remove eventtype field from xXIRawEvent.
With c455db2, raw events were split up into using multiple evtypes instead
of a sub event type. The eventtype field itself however has not been removed
and was unused by both the server and the library.

Field converted into a padding field, wire layout stays the same.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-07 10:43:25 +10:00
Peter Hutterer
1a7eb6de82 inputproto 1.9.99.901 (RC 1)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 15:52:32 +10:00
Peter Hutterer
d8a1c1b1ab Revert "XI2proto.txt: grabbing a slave does not detach it anymore."
Detaching a slave device during an explicit grab makes sense from a UI
perspective. It allows a client to get exclusive access to a device without
that device's events also feeding into the respective master device.

Thanks to Thomas Jaeger for his contribution.

This reverts commit d0b1e55b87.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-05 15:52:27 +10:00
Peter Hutterer
b31776bb5b XI2proto.txt: document ClientPointer in more detail.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-31 08:53:40 +10:00
Peter Hutterer
221aed39ac XI2proto.txt: don't put field names in quotes.
This was done inconsistently anyway so get rid of it alltogether.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-28 11:15:45 +10:00
Peter Hutterer
5e76f4ca69 XI2proto.txt: typo fixes and minor clarifications.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-28 11:13:48 +10:00
Peter Hutterer
26f244fadc XI2proto.txt: sourceid on DeviceChanged is the device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-28 11:13:47 +10:00
Peter Hutterer
b877309713 XI2proto.txt: passive grabs can take XIAll{Master}Devices.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-28 11:13:47 +10:00
Peter Hutterer
d0b1e55b87 XI2proto.txt: grabbing a slave does not detach it anymore.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-28 10:53:34 +10:00
Peter Hutterer
9f5d450fda XIproto.txt: clarify that the ClientPointer is set, even if implicitly.
It is indistinguishable for the client whether the the server chooses a
ClientPointer or whether the CP was set through an XISetClientPointer
request. The only thing that matters is that a device was actually assigned
and will be used in the future.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-28 10:40:15 +10:00
Peter Hutterer
7b988fcae5 XI2proto.txt: padding bytes must be zero.
Padding bytes zeroed out ensures that future versions of the XI2 protcol may
use these padding bytes with a defined state. The server should ignore
padding bytes depending on the client's version anyway but better safe than
sorry.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-28 10:11:12 +10:00
Peter Hutterer
4b414dcdbb XI2proto.h: Remove special doxygen tags.
The protocol header does not include enough documentation to make the use of
doxygen really worthwile. Special doxygen tags beyond the very simple use of
/** and /**< contribute too much to the noise and make it hard to actually
read the code itself.

While no extra tags are added now, a run of doxygen over XI2proto and XI.h
still produces an acceptable output.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-27 15:53:29 +10:00
Peter Hutterer
0542581edc XI2proto.txt: Add some XI1 vs. XI2 interoperability descriptions.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-27 14:29:18 +10:00
Peter Hutterer
7cf46d64e0 XI2proto.txt: update list of XI2 event types.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-27 14:21:40 +10:00
Peter Hutterer
0e7af09fce inputproto 1.9.99.15
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-22 13:58:08 +10:00
Peter Hutterer
006afb766a XI2: remove Keysym grabs, use Keycode grabs instead.
Keysym grabs are tricky to get right for applications that are more
complicated than demo applications. otoh, we know keycode grabs are working.
So let's go with keycode grabs for now and add keysym grabs later when we've
sorted out the details.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-20 16:27:57 +10:00
Peter Hutterer
aaefb1e122 inputproto 1.9.99.14
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-14 16:15:45 +10:00
Peter Hutterer
1357361d6b Add the enter/leave detail defines, same as the core protocol ones.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-14 16:15:45 +10:00
Peter Hutterer
2a3dc6c471 Formatting fix, s/tabs/spaces/ 2009-07-14 16:15:45 +10:00
Daniel Stone
51244a1a4f Device{,Raw}Event: Add flags field.
Add a flags member to DeviceEvent and DeviceKeyEvent; the only currently
defined flag is KeyRepeat, indicating a repeat event (a la XKB detectable
autorepeat), which is only valid for key events.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-14 11:52:40 +10:00
Peter Hutterer
c455db2c25 XI2: Split up raw events into multiple event types.
Instead of a single XI_RawEvent type with subtypes to represent the actual
event, split up the event into XI_RawButtonPress, XI_RawButtonRelease, etc.
This way clients can select for specific raw events only instead of all of
them at once.

Note that raw events may be selected on master devices too, the server will
route them through master devices.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13 16:04:41 +10:00
Peter Hutterer
f345258bf4 Fix XIMaskLen macro.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13 14:37:22 +10:00
Peter Hutterer
6280b53cdb inputproto 1.9.99.13 2009-07-12 16:19:19 +10:00
Peter Hutterer
2367e52404 Add effective group and modifiers to XIGroupInfo/XIModifierInfo.
Effective modifiers are easy to calculate but let's send them down the wire
nonetheless. Effective group is slightly more complicated since group
wrapping must be taken into account - sending it down the wire simplifies
clients.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-23 21:02:33 +10:00
Peter Hutterer
3f0067b45e XIDeviceChangedEvents may occur on master devices too.
Prime example is a change in the number of buttons due to the availability
of a new slave device.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-18 00:30:12 +10:00
Peter Hutterer
b40f48b15e inputproto 1.9.99.12
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-17 09:09:56 +10:00
Peter Hutterer
a6edd59c44 Use the term 'labels' to refer to button and axes labels.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-17 08:53:39 +10:00
Peter Hutterer
b0f7e24d21 Include valuator value in XIValuatorClasses
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-16 13:15:24 +10:00
Peter Hutterer
b2fb9f81a2 Include button state in XIButtonClasses.
Without including the state in a button class, it is impossible to know the
state of a device until this device has pressed or released another button
(and thus sends an event).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-14 08:25:01 +10:00
Peter Hutterer
db98b81735 Add a source field to the class information.
In some cases it is required to know the source device of a particular
device class. In the future we might also do lazy copying of classes,
meaning that for a given device, each class may come from a different
source. Hence the source id should be included for each class.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12 16:27:38 +10:00
Peter Hutterer
48cf9a5606 Add note that bumping XI_LASTEVENT requires changes to the server.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12 15:51:08 +10:00
Peter Hutterer
bac0e02889 Ensure XIAnyModifier is an unsigned int.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-12 15:51:05 +10:00
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