Commit graph

242 commits

Author SHA1 Message Date
Peter Hutterer
9c2817fd76 specs: Rewrite Touch events delivery section
And add a fixme

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18 16:20:12 +10:00
Peter Hutterer
c883261f2b specs: Add a fixme for using raw events instead of GrabModeObserve
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18 16:20:12 +10:00
Peter Hutterer
3571092495 specs: clean/rewrite touch grab and ownership bits
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18 16:20:12 +10:00
Peter Hutterer
f24c9ae749 spec: Move ClientPointer up again.
Prep work to have a separate first-class headline for touch processing

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18 16:20:12 +10:00
Peter Hutterer
0e4a782339 specs: move warning about out-of-band processing up a bit.
The out-of-band processing is really only important for pointer emulation.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18 16:20:12 +10:00
Peter Hutterer
1d720b30c9 specs: move touch sequence handling (owner-only) up a bit.
This is to restructure to get the simple cases clarified up first before
explaining more complex changes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18 16:20:09 +10:00
Peter Hutterer
a4583dcd3e specs: move from "init move destroy" to "begin update end"
And rewrite that paragraph a bit.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18 12:03:26 +10:00
Peter Hutterer
fe19202c22 specs: add a linebreak for asciidoc parsing
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-17 16:29:08 +10:00
Peter Hutterer
f9fa8f9a7d Merge branch 'master' into chase-multitouch
Conflicts:
	specs/XI2proto.txt

Fixed up (added) asciidoc for touch proto.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-17 16:29:03 +10:00
Gaetan Nadon
47901cd142 XIproto.txt: fix whitespace issues
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-16 13:02:40 -04:00
Gaetan Nadon
5f43b8b19e XI2proto.txt: fix whitespace issues
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-16 13:02:37 -04:00
Gaetan Nadon
0ac450f47c specs: convert XI2proto.txt to html using asciidoc
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-03-16 13:02:32 -04:00
Peter Hutterer
f21f00bd9b Add minimal asciidoc syntax
Though this protocol description is mainly to be viewed as textfile, a few
minor changes make it parsable for asciidoc to spit out reasonably
nicely-formatted html code.

Changes include:
- underline section headers with the matching lines
- add linebreaks before lists to parse them as lists
- change indentation level for normal text to be left-marging aligned and
  for <pre> text to be indented
- comment out section dividers

It's possible to run asciidoc XI2proto.txt and get some nice html output
now.

Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2011-03-16 12:59:19 -04:00
Chase Douglas
a02566ca7f Many more updates to the XI 2.1 protocol
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
2011-03-10 15:43:47 -05:00
Chase Douglas
db7c0eccc7 Updates for pointer emulation and more touch device modes
Also includes resolutions for dependent devices and implicit grabs and
how to handle slave touch device attachment and touch selections.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
2011-02-22 09:47:02 -05:00
Daniel Stone
99f15a2346 Add touch classes and events, bump to 2.1
Introduce multitouch support through a new TouchClass, as well as new
TouchBegin, TouchEnd, TouchOwnership, TouchUpdate, and TouchUpdateUnowned
events.  Bump to version 2.1.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Co-authored-by: Chase Douglas <chase.douglas@canonical.com>
Co-authored-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-02-15 14:24:08 +00:00
Fernando Carrijo
13baef91f0 Fix typos in XIproto.txt
Signed-off-by: Fernando Carrijo <fcarrijo@freedesktop.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-01-31 13:09:50 +10:00
Chase Douglas
5c2d5fd99d Include stdint.h
I'm now getting build failures due to missing stdint.h. It seems we
should include it explicitly in XI2proto.h anyways.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-12-22 11:26:57 +10:00
Peter Hutterer
56ffb56471 inputproto 2.0.1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-11-11 14:10:26 +10:00
Peter Hutterer
52e92f280c Typo fix: GrabTypeFocusIn -> GrabtypeFocusIn
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-08-06 10:11:43 +10:00
Peter Hutterer
3dc8e70f76 Spell out event types for XIDeviceEvent.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-08-06 10:11:43 +10:00
Peter Hutterer
993ca70d7e Define the error cases for XSetDeviceMode better.
Take the error codes as described in the man page for XSetDeviceMode. This
is more likely to be what clients expect, especially since the protocol spec
doesn't actually define when BadMode is to be reported.

This behaviour is the same as specified in the XSetDeviceMode man page.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
2010-08-06 10:11:43 +10:00
Peter Hutterer
617c4a2db4 XI2proto.txt: fix up some request names.
Leftovers from previous versions of the spec before the requests were
renamed.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-08-06 10:11:43 +10:00
Gaetan Nadon
b2e8bd74f0 config: update AC_PREREQ statement to 2.60
Unrelated to the previous patches, the new value simply reflects
the reality that the minimum level for autoconf to configure
all x.org modules is 2.60 dated June 2006.

ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-28 19:25:52 -04:00
Gaetan Nadon
5e22edcb54 config: remove the pkgconfig pc.in file from EXTRA_DIST
Automake always includes it in the tarball.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-28 19:00:31 -04:00
Gaetan Nadon
33bab5091b config: install and distribute XI2proto.txt XIproto.txt
It will now be installed in $docdir in addition
to being distributed in the tarball.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-03-28 17:46:57 -04:00
Gaetan Nadon
0746aed42e Add Red Had Copyright in the COPYING file.
Refer to XI2.h and XI2proto.h

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-12-22 16:45:54 -05:00
Gaetan Nadon
e0ec5c81ee Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Now that the INSTALL file is generated.
Allows running make maintainer-clean.
2009-11-22 19:24:48 -05:00
Gaetan Nadon
30c2e87594 README: file created or updated #24206
Contains a set of URLs to freedesktop.org.
2009-11-16 11:13:30 -05:00
Gaetan Nadon
7ddcd9b428 Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
ChangeLog filename is known to Automake and requires no further
coding in the makefile.
2009-11-15 19:45:26 -05:00
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