platform/upstream/inputproto.git
12 years agoUse the same valuator axes for pointer and touch events
Chase Douglas [Fri, 5 Aug 2011 21:41:59 +0000 (14:41 -0700)]
Use the same valuator axes for pointer and touch events

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoRemove touch "Observe" grabs
Chase Douglas [Fri, 5 Aug 2011 21:49:32 +0000 (14:49 -0700)]
Remove touch "Observe" grabs

The semantics of these grabs doesn't work for all use cases. Raw touch
events will likely work better.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoFix up pointer event emulation section
Chase Douglas [Fri, 5 Aug 2011 21:20:05 +0000 (14:20 -0700)]
Fix up pointer event emulation section

* Wording cleanups for tense and to make some sentences flow better.
* Upon further review, it does seem to make more sense to deliver
  emulated pointer events through the same slave device rather than the
  master device. Thus, slave devices (including floating devices) may
  emit emulated pointer events.
* Peter is correct, it doesn't make sense to set the PointerEmulated
  flag on touch events.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoPeter is right, floating devices can emit touch events
Chase Douglas [Fri, 5 Aug 2011 20:59:05 +0000 (13:59 -0700)]
Peter is right, floating devices can emit touch events

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoPrettyify touch device types
Chase Douglas [Tue, 2 Aug 2011 22:53:35 +0000 (15:53 -0700)]
Prettyify touch device types

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoUpdate device type terminology
Chase Douglas [Tue, 2 Aug 2011 22:29:54 +0000 (15:29 -0700)]
Update device type terminology

Remove IndepedentTouch and SemiMultitouch devices. These may be handled
in an implementation specific manner through the props array of ATOMs in
the touch class information.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoYes, send TouchEnd to owner, TouchPendingEnd to other listeners
Chase Douglas [Tue, 2 Aug 2011 22:23:21 +0000 (15:23 -0700)]
Yes, send TouchEnd to owner, TouchPendingEnd to other listeners

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoSeparate "XI2.x" into "XI 2.x" for readability
Chase Douglas [Tue, 2 Aug 2011 22:22:15 +0000 (15:22 -0700)]
Separate "XI2.x" into "XI 2.x" for readability

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
12 years agoMerge remote-tracking branch 'origin/master' into multitouch
Chase Douglas [Tue, 2 Aug 2011 21:09:11 +0000 (14:09 -0700)]
Merge remote-tracking branch 'origin/master' into multitouch

Conflicts:
XI2.h

12 years agoPut a warning in about not adding any further libXi defines
Peter Hutterer [Tue, 2 Aug 2011 00:20:53 +0000 (10:20 +1000)]
Put a warning in about not adding any further libXi defines

The matching commit in libXi is
    e8531dd6a981c6cf19a1d256c29e886e34e8f51a
    libXi-1.4.2-21-ge8531ddp

    Add XI2 library-internal array offsets to XIint.h

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agospecs: add a linebreak for asciidoc parsing
Peter Hutterer [Thu, 17 Mar 2011 06:29:08 +0000 (16:29 +1000)]
specs: add a linebreak for asciidoc parsing

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoProvide convenience defines for owner_events.
Peter Hutterer [Fri, 3 Jun 2011 05:56:21 +0000 (15:56 +1000)]
Provide convenience defines for owner_events.

No functional effect, just to improve readability of code.

It's not obvious what "True" or "False" stands for in a function with 11
arguments. Compare
    XIGrabButton(dpy, deviceid, button, grab_window, cursor,
                 GrabModeAsync, GrabModeSync, True,
                 event_mask, num_modifiers, &modifiers);

vs.

XIGrabButton(dpy, deviceid, button, grab_window, cursor,
             GrabModeAsync, GrabModeSync, XIOwnerEvents,
             event_mask, num_modifiers, &modifiers);

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
13 years agoAdd XI2-specific defines for grab and property requests
Peter Hutterer [Fri, 3 Jun 2011 05:13:12 +0000 (15:13 +1000)]
Add XI2-specific defines for grab and property requests

XI 2.0 headers forced clients to mix XI2 specific constants with defines for
core input. Most notable here are the grab code which required GrabModeAsync
or GrabModeSync from core, but _not_ AnyModifier (XIAnymodifier !=
AnyModifier). This is a hard-to-debug cause for bugs.

Add defines for grab modes, grab return codes and property modes as well as
a define for the AnyPropertyType. These defines are identical to the ones
defined in core but stop the use of input-related defines from either core
or XI 1.x.

Clients must use the core defines None and CurrentTime where applicable.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
13 years agoClean up and reword multitouch ownership/emulation
Daniel Stone [Tue, 3 May 2011 17:44:53 +0000 (18:44 +0100)]
Clean up and reword multitouch ownership/emulation

Remove 'withheld' indirect section as well.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoMostly typographical
Daniel Stone [Tue, 3 May 2011 16:21:34 +0000 (17:21 +0100)]
Mostly typographical

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoFurther cleanups and clarifications
Daniel Stone [Thu, 28 Apr 2011 11:02:43 +0000 (12:02 +0100)]
Further cleanups and clarifications

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoReword touch introduction, labels for all
Daniel Stone [Tue, 26 Apr 2011 19:30:13 +0000 (20:30 +0100)]
Reword touch introduction, labels for all

Reword the introduction to the multitouch section to try to be a bit
clearer, and go on a mad section-labelling spree.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agotypo fix
Daniel Stone [Tue, 26 Apr 2011 18:51:41 +0000 (19:51 +0100)]
typo fix

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoAdd FIXME sidebars, remove single-grab stipulation
Daniel Stone [Fri, 22 Apr 2011 15:14:54 +0000 (16:14 +0100)]
Add FIXME sidebars, remove single-grab stipulation

Add very visible FIXME sections to more clearly mark what's broken; also
remove the stipulation that only one grab may be active at a time.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoAdd inline references, fix usecase bulleting
Daniel Stone [Fri, 22 Apr 2011 14:42:09 +0000 (15:42 +0100)]
Add inline references, fix usecase bulleting

Replace 'see section x.y.z' with better inline links; fix nested
bulleting of XI 2.1 usecases.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoDoc note: No seriously, this is WIP
Daniel Stone [Fri, 22 Apr 2011 14:31:52 +0000 (15:31 +0100)]
Doc note: No seriously, this is WIP

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoFormatting fixups and minor rewording
Daniel Stone [Fri, 22 Apr 2011 13:27:06 +0000 (14:27 +0100)]
Formatting fixups and minor rewording

No semantic changes.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years agoRequire configure flag to build this proto version.
Daniel Stone [Mon, 11 Apr 2011 00:09:57 +0000 (10:09 +1000)]
Require configure flag to build this proto version.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoPut a #warning and #error in to avoid unsuspecting XI 2.1 users.
Peter Hutterer [Fri, 8 Apr 2011 03:27:47 +0000 (13:27 +1000)]
Put a #warning and #error in to avoid unsuspecting XI 2.1 users.

The #warning directive is intentionally outside the define to disable the
error. Early adopters of the protocol can't see this warning often enough.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoXI2.h: Fix off-by-one error in the XIMaskLen definition.
Alexandre Julliard [Tue, 12 Apr 2011 20:39:25 +0000 (22:39 +0200)]
XI2.h: Fix off-by-one error in the XIMaskLen definition.

The previous definition would give the wrong result for events that are
a multiple of 8.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agospecs: enable asciidoc parsing for XIproto.txt
Peter Hutterer [Wed, 23 Mar 2011 03:27:02 +0000 (13:27 +1000)]
specs: enable asciidoc parsing for XIproto.txt

The vast majority of this patch are indentation changes, removing preceding
spaces from text.
Header lines  and some linebreaks to enable list parsing were added.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
13 years agospecs: move erroneous Errors: line to where it belongs
Peter Hutterer [Wed, 23 Mar 2011 03:32:42 +0000 (13:32 +1000)]
specs: move erroneous Errors: line to where it belongs

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Julien Cristau <jcristau@debian.org>
13 years agospecs: rewrite pointer emulation section
Peter Hutterer [Fri, 18 Mar 2011 06:17:09 +0000 (16:17 +1000)]
specs: rewrite pointer emulation section

plus a fixme

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agospecs: rewrite pointer emulation for indirect devices
Peter Hutterer [Fri, 18 Mar 2011 05:29:25 +0000 (15:29 +1000)]
specs: rewrite pointer emulation for indirect devices

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agospecs: Rewrite Touch events delivery section
Peter Hutterer [Fri, 18 Mar 2011 05:10:34 +0000 (15:10 +1000)]
specs: Rewrite Touch events delivery section

And add a fixme

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agospecs: Add a fixme for using raw events instead of GrabModeObserve
Peter Hutterer [Fri, 18 Mar 2011 04:48:15 +0000 (14:48 +1000)]
specs: Add a fixme for using raw events instead of GrabModeObserve

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agospecs: clean/rewrite touch grab and ownership bits
Peter Hutterer [Fri, 18 Mar 2011 04:16:55 +0000 (14:16 +1000)]
specs: clean/rewrite touch grab and ownership bits

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agospec: Move ClientPointer up again.
Peter Hutterer [Fri, 18 Mar 2011 03:58:29 +0000 (13:58 +1000)]
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>
13 years agospecs: move warning about out-of-band processing up a bit.
Peter Hutterer [Fri, 18 Mar 2011 03:52:09 +0000 (13:52 +1000)]
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>
13 years agospecs: move touch sequence handling (owner-only) up a bit.
Peter Hutterer [Fri, 18 Mar 2011 02:12:47 +0000 (12:12 +1000)]
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>
13 years agospecs: move from "init move destroy" to "begin update end"
Peter Hutterer [Fri, 18 Mar 2011 02:02:21 +0000 (12:02 +1000)]
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>
13 years agospecs: add a linebreak for asciidoc parsing
Peter Hutterer [Thu, 17 Mar 2011 06:29:08 +0000 (16:29 +1000)]
specs: add a linebreak for asciidoc parsing

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoMerge branch 'master' into chase-multitouch
Peter Hutterer [Thu, 17 Mar 2011 04:51:52 +0000 (14:51 +1000)]
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>
13 years agoXIproto.txt: fix whitespace issues
Gaetan Nadon [Wed, 16 Mar 2011 01:37:39 +0000 (21:37 -0400)]
XIproto.txt: fix whitespace issues

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoXI2proto.txt: fix whitespace issues
Gaetan Nadon [Wed, 16 Mar 2011 01:29:43 +0000 (21:29 -0400)]
XI2proto.txt: fix whitespace issues

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agospecs: convert XI2proto.txt to html using asciidoc
Gaetan Nadon [Tue, 15 Mar 2011 19:43:48 +0000 (15:43 -0400)]
specs: convert XI2proto.txt to html using asciidoc

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
13 years agoAdd minimal asciidoc syntax
Peter Hutterer [Tue, 15 Mar 2011 23:57:10 +0000 (09:57 +1000)]
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>
13 years agoMany more updates to the XI 2.1 protocol
Chase Douglas [Thu, 10 Mar 2011 16:53:57 +0000 (11:53 -0500)]
Many more updates to the XI 2.1 protocol

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
13 years agoUpdates for pointer emulation and more touch device modes
Chase Douglas [Sun, 20 Feb 2011 21:35:09 +0000 (16:35 -0500)]
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>
13 years agoAdd touch classes and events, bump to 2.1
Daniel Stone [Mon, 7 Feb 2011 10:19:06 +0000 (10:19 +0000)]
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>
13 years agoFix typos in XIproto.txt
Fernando Carrijo [Fri, 28 Jan 2011 00:40:11 +0000 (22:40 -0200)]
Fix typos in XIproto.txt

Signed-off-by: Fernando Carrijo <fcarrijo@freedesktop.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoInclude stdint.h
Chase Douglas [Fri, 17 Dec 2010 17:11:09 +0000 (17:11 +0000)]
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>
13 years agoinputproto 2.0.1 inputproto-2.0.1
Peter Hutterer [Thu, 11 Nov 2010 04:10:26 +0000 (14:10 +1000)]
inputproto 2.0.1

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoTypo fix: GrabTypeFocusIn -> GrabtypeFocusIn
Peter Hutterer [Mon, 2 Aug 2010 05:53:52 +0000 (15:53 +1000)]
Typo fix: GrabTypeFocusIn -> GrabtypeFocusIn

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoSpell out event types for XIDeviceEvent.
Peter Hutterer [Thu, 5 Aug 2010 23:52:33 +0000 (09:52 +1000)]
Spell out event types for XIDeviceEvent.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
13 years agoDefine the error cases for XSetDeviceMode better.
Peter Hutterer [Mon, 11 Jan 2010 07:02:55 +0000 (17:02 +1000)]
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>
13 years agoXI2proto.txt: fix up some request names.
Peter Hutterer [Mon, 23 Nov 2009 00:21:17 +0000 (10:21 +1000)]
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>
14 years agoconfig: update AC_PREREQ statement to 2.60
Gaetan Nadon [Sun, 28 Mar 2010 23:25:52 +0000 (19:25 -0400)]
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>
14 years agoconfig: remove the pkgconfig pc.in file from EXTRA_DIST
Gaetan Nadon [Sun, 28 Mar 2010 23:00:31 +0000 (19:00 -0400)]
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>
14 years agoconfig: install and distribute XI2proto.txt XIproto.txt
Gaetan Nadon [Sun, 28 Mar 2010 21:46:57 +0000 (17:46 -0400)]
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>
14 years agoAdd Red Had Copyright in the COPYING file.
Gaetan Nadon [Tue, 22 Dec 2009 00:00:00 +0000 (19:00 -0500)]
Add Red Had Copyright in the COPYING file.

Refer to XI2.h and XI2proto.h

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
14 years agoMakefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
Gaetan Nadon [Mon, 23 Nov 2009 00:24:48 +0000 (19:24 -0500)]
Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES

Now that the INSTALL file is generated.
Allows running make maintainer-clean.

14 years agoREADME: file created or updated #24206
Gaetan Nadon [Mon, 16 Nov 2009 16:13:30 +0000 (11:13 -0500)]
README: file created or updated #24206

Contains a set of URLs to freedesktop.org.

14 years agoMakefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432
Gaetan Nadon [Mon, 16 Nov 2009 00:45:26 +0000 (19:45 -0500)]
Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432

ChangeLog filename is known to Automake and requires no further
coding in the makefile.

14 years agoMakefile.am: INSTALL file is missing or incorrect #24206
Gaetan Nadon [Sun, 15 Nov 2009 23:31:28 +0000 (18:31 -0500)]
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

14 years agoconfigure.ac: deploy the new XORG_DEFAULT_OPTIONS #24242
Gaetan Nadon [Sun, 15 Nov 2009 23:11:36 +0000 (18:11 -0500)]
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.

14 years agoconfigure.ac: AM_MAINTAINER_MODE missing #24238
Gaetan Nadon [Sun, 15 Nov 2009 18:55:25 +0000 (13:55 -0500)]
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

14 years ago.gitignore: use common defaults with custom section # 24239
Gaetan Nadon [Sat, 14 Nov 2009 23:26:47 +0000 (18:26 -0500)]
.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.

14 years agoinputproto 2.0 inputproto-2.0
Peter Hutterer [Fri, 2 Oct 2009 01:38:12 +0000 (11:38 +1000)]
inputproto 2.0

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoAdd XIproto.txt
Peter Hutterer [Thu, 1 Oct 2009 06:47:11 +0000 (16:47 +1000)]
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>
14 years agoRequire macros 1.3 for XORG_DEFAULT_OPTIONS
Peter Hutterer [Fri, 2 Oct 2009 01:31:13 +0000 (11:31 +1000)]
Require macros 1.3 for XORG_DEFAULT_OPTIONS

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoinputproto 1.9.99.902 (RC 2) inputproto-1.9.99.902
Peter Hutterer [Fri, 21 Aug 2009 04:25:51 +0000 (14:25 +1000)]
inputproto 1.9.99.902 (RC 2)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoDevice cursors are deleted once the window or the device disappear.
Peter Hutterer [Tue, 25 Aug 2009 00:04:01 +0000 (10:04 +1000)]
Device cursors are deleted once the window or the device disappear.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoXIWarpPointer needs to take FP1616 for positions.
Peter Hutterer [Fri, 21 Aug 2009 04:24:23 +0000 (14:24 +1000)]
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>
14 years agoReplace four leftover INT16 with int16_t.
Peter Hutterer [Fri, 21 Aug 2009 03:56:11 +0000 (13:56 +1000)]
Replace four leftover INT16 with int16_t.

14 years agoXIQueryPointer only works on master pointers and floating slaves.
Peter Hutterer [Fri, 21 Aug 2009 03:55:52 +0000 (13:55 +1000)]
XIQueryPointer only works on master pointers and floating slaves.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoXI2proto: XIChangeCursor request requires a master pointer.
Peter Hutterer [Tue, 18 Aug 2009 05:05:09 +0000 (15:05 +1000)]
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>
14 years agoXI2proto.txt: typo fix
Peter Hutterer [Tue, 18 Aug 2009 05:04:47 +0000 (15:04 +1000)]
XI2proto.txt: typo fix

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoRemove eventtype field from xXIRawEvent.
Peter Hutterer [Fri, 7 Aug 2009 00:39:46 +0000 (10:39 +1000)]
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>
14 years agoinputproto 1.9.99.901 (RC 1) inputproto-1.9.99.901
Peter Hutterer [Tue, 4 Aug 2009 00:43:52 +0000 (10:43 +1000)]
inputproto 1.9.99.901 (RC 1)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoRevert "XI2proto.txt: grabbing a slave does not detach it anymore."
Peter Hutterer [Wed, 5 Aug 2009 04:52:45 +0000 (14:52 +1000)]
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 d0b1e55b876a29a7c820ec12d7b9cb5e081e1944.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
14 years agoXI2proto.txt: document ClientPointer in more detail.
Peter Hutterer [Thu, 30 Jul 2009 22:52:43 +0000 (08:52 +1000)]
XI2proto.txt: document ClientPointer in more detail.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoXI2proto.txt: don't put field names in quotes.
Peter Hutterer [Tue, 28 Jul 2009 01:15:12 +0000 (11:15 +1000)]
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>
15 years agoXI2proto.txt: typo fixes and minor clarifications.
Peter Hutterer [Tue, 28 Jul 2009 00:12:06 +0000 (10:12 +1000)]
XI2proto.txt: typo fixes and minor clarifications.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoXI2proto.txt: sourceid on DeviceChanged is the device.
Peter Hutterer [Tue, 28 Jul 2009 01:12:50 +0000 (11:12 +1000)]
XI2proto.txt: sourceid on DeviceChanged is the device.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoXI2proto.txt: passive grabs can take XIAll{Master}Devices.
Peter Hutterer [Tue, 28 Jul 2009 01:12:26 +0000 (11:12 +1000)]
XI2proto.txt: passive grabs can take XIAll{Master}Devices.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoXI2proto.txt: grabbing a slave does not detach it anymore.
Peter Hutterer [Tue, 28 Jul 2009 00:53:08 +0000 (10:53 +1000)]
XI2proto.txt: grabbing a slave does not detach it anymore.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoXIproto.txt: clarify that the ClientPointer is set, even if implicitly.
Peter Hutterer [Tue, 28 Jul 2009 00:38:21 +0000 (10:38 +1000)]
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>
15 years agoXI2proto.txt: padding bytes must be zero.
Peter Hutterer [Tue, 28 Jul 2009 00:10:10 +0000 (10:10 +1000)]
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>
15 years agoXI2proto.h: Remove special doxygen tags.
Peter Hutterer [Mon, 27 Jul 2009 05:51:17 +0000 (15:51 +1000)]
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>
15 years agoXI2proto.txt: Add some XI1 vs. XI2 interoperability descriptions.
Peter Hutterer [Mon, 27 Jul 2009 04:29:00 +0000 (14:29 +1000)]
XI2proto.txt: Add some XI1 vs. XI2 interoperability descriptions.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoXI2proto.txt: update list of XI2 event types.
Peter Hutterer [Mon, 27 Jul 2009 04:20:38 +0000 (14:20 +1000)]
XI2proto.txt: update list of XI2 event types.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoinputproto 1.9.99.15 inputproto-1.9.99.15
Peter Hutterer [Wed, 22 Jul 2009 02:11:13 +0000 (12:11 +1000)]
inputproto 1.9.99.15

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoXI2: remove Keysym grabs, use Keycode grabs instead.
Peter Hutterer [Mon, 20 Jul 2009 06:25:08 +0000 (16:25 +1000)]
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>
15 years agoinputproto 1.9.99.14 inputproto-1.9.99.14
Peter Hutterer [Mon, 13 Jul 2009 06:05:07 +0000 (16:05 +1000)]
inputproto 1.9.99.14

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoAdd the enter/leave detail defines, same as the core protocol ones.
Peter Hutterer [Tue, 14 Jul 2009 06:15:19 +0000 (16:15 +1000)]
Add the enter/leave detail defines, same as the core protocol ones.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoFormatting fix, s/tabs/spaces/
Peter Hutterer [Tue, 14 Jul 2009 06:15:06 +0000 (16:15 +1000)]
Formatting fix, s/tabs/spaces/

15 years agoDevice{,Raw}Event: Add flags field.
Daniel Stone [Mon, 13 Jul 2009 06:49:33 +0000 (16:49 +1000)]
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>
15 years agoXI2: Split up raw events into multiple event types.
Peter Hutterer [Mon, 13 Jul 2009 05:30:50 +0000 (15:30 +1000)]
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>
15 years agoFix XIMaskLen macro.
Peter Hutterer [Mon, 13 Jul 2009 04:37:13 +0000 (14:37 +1000)]
Fix XIMaskLen macro.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoinputproto 1.9.99.13 inputproto-1.9.99.13
Peter Hutterer [Sun, 12 Jul 2009 06:19:19 +0000 (16:19 +1000)]
inputproto 1.9.99.13

15 years agoAdd effective group and modifiers to XIGroupInfo/XIModifierInfo.
Peter Hutterer [Tue, 23 Jun 2009 11:01:27 +0000 (21:01 +1000)]
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>
15 years agoXIDeviceChangedEvents may occur on master devices too.
Peter Hutterer [Wed, 17 Jun 2009 14:29:44 +0000 (00:29 +1000)]
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>
15 years agoinputproto 1.9.99.12 inputproto-1.9.99.12
Peter Hutterer [Tue, 16 Jun 2009 23:09:56 +0000 (09:09 +1000)]
inputproto 1.9.99.12

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
15 years agoUse the term 'labels' to refer to button and axes labels.
Peter Hutterer [Tue, 16 Jun 2009 22:53:26 +0000 (08:53 +1000)]
Use the term 'labels' to refer to button and axes labels.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>