summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-13Add experimental multitouch support from Xi 2.1HEADxi2.1Daniel Stone2-13/+103
This patch adds experimental support for listening to touch streams (TouchBegin, TouchMotion and TouchEnd) with test-xi2, as well as showing TouchClass information with list. Currently, test-xi2 also takes a grab for touch events on the main window, and will replay touch events down to the subwindow if they occurred in the child. This is for testing only. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2010-10-12Print an error if mode is neither ABSOLUTE nor RELATIVE.Peter Hutterer1-1/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Julien Cristau <jcristau@debian.org>
2010-07-02xinput: Split XI2 valuators and print index of eventsChase Douglas1-3/+2
XI2 events support bitmask selected valuators. When printing masked events, we need to also print the index of the valuator value. This change prints each valuator on its own line, prefixed by its index Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-09list: only check the last bit in the device mode.Peter Hutterer1-0/+4
This works around a bug in X servers 1.7.x, 1.8.0 and 1.8.1 where the device mode could sometimes be binary OR'd with the OutOfProximity flag. The result was a value of 0b10 for relative and 0b11 for Absolute, both of which were interpreted as relative by this code. Affected is only the XIQueryDevice call, not the XListInputDevices call. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-06-04xinput 1.5.2Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-05-18Atoms from XIGetProperty are 32bits (#27657)Kees Cook1-3/+3
A 32bit value must be dereferenced to correctly zero-extend an Atom from XIGetProperty. On 64bit systems, Atom is 64bits, so the final Atom in a list will read garbage in the upper half of the Atom. X.Org Bug 27657 <http://bugs.freedesktop.org/show_bug.cgi?id=27657> Signed-off-by: Kees Cook <kees.cook@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-05-14Support pointer: and keyboard: prefices for XI2 device namesWill Thompson1-5/+35
I have a keyboard which is also a mouse, and shows up as two devices with the same name. This patch allows me to reliably refer to the pointer device. Signed-off-by: Will Thompson <will.thompson@collabora.co.uk> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-05-14Warn and fail if a device name is ambiguous.Will Thompson1-3/+12
The XI1 path bails out if the user specifies a device by name and there is more than one device, but the XI2 path previously just silently chose the first one. This patch makes it fail outright. Signed-off-by: Will Thompson <will.thompson@collabora.co.uk> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-04-29test-xi2: Print out the sourceid for enter/leave events.Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-04-07man: use automake silent rulesYaakov Selkowitz1-1/+1
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: RĂ©mi Cardona <remi@gentoo.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-04-07man: Use AC_PROG_SED to find sedYaakov Selkowitz2-3/+2
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Acked-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-03-15xinput 1.5.1Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-03-08test-xi2: print event type name as well.Peter Hutterer1-1/+30
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
2010-02-05man: document XI2 optionsPeter Hutterer1-0/+37
Document the options to modifiy the device hierarchy and change the ClientPointer. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-01-11man: remove reference to XListInputDevicesPeter Hutterer1-1/+1
xinput --list uses XListInputDevices on XI1 servers and XIQueryDevice on XI2 servers. Also, who cares about that when reading the man page anyway... Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Julien Cristau <jcristau@debian.org>
2010-01-02Clarify role of set-ptr-feedbackSimon Thum1-2/+7
Signed-off-by: Simon Thum <simon.thum@gmx.de> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-11-29Add Peter and Red Hat's copyright notices and licenses to COPYINGJulien Cristau1-0/+47
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-1/+1
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon2-231/+5
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-27Deploy the new XORG_DEFAULT_OPTIONS #24242Gaetan Nadon1-2/+3
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-10-26Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432Gaetan Nadon1-2/+0
ChangeLog filename is known to Automake and requires no further coding in the makefile.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon2-16/+73
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-10-21This is not a GNU project, so declare it foreign.Jeremy Huddleston1-1/+1
On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote: > On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote: > > I noticed an INSTALL file in xlsclients and libXvMC today, and it > > was quite annoying to work around since 'autoreconf -fvi' replaces > > it and git wants to commit it. Should these files even be in git? > > Can I nuke them for the betterment of humanity and since they get > > created by autoreconf anyways? > > See https://bugs.freedesktop.org/show_bug.cgi?id=24206 As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation of the INSTALL file. It is also part of the 24206 solution. Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-10-13xinput 1.5.0Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-09Clean up --version, don't require a DISPLAY and display the server version too.Peter Hutterer4-52/+40
version.c was removed, seemed a bit excessive for the 20 lines of code. --version is integrated separate from the other commands now, checked before opening the display. xinput now prints its own version in all cases, even if the display is unavailable. If the display is available, it prints the server version too. Example output: $> xinput --version xinput version 1.4.99.3 XI version on server: 2.0 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-10-09man: clean up the man page.Peter Hutterer1-47/+53
Several changes to the man page to tidy it up a bit: - RCS tag removed - synopsis shortened, OPTIONS section added instead - "xinput" dropped before the option descriptions, options in manpage prefixed with '--'. - device_name replaced with just device, since it may be a deviceid. - Removed references to XI man page calls that some options use, it really doesn't matter to users what the underlying Xlib call is. - mark set-int-prop and set-float-prop as deprecated in the man page. - add --test_xi2 flag - Added a few more authors. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-09Rework 'xinput list' codeThomas Jaeger3-50/+55
* Drop the questionable --loop option * Add a --long option (opposite of --short) * Make --short the default if no device argument is given * XI2: Make it possible to query a single device Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com> squashed in a man page update for --short and --long. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-24Bump to 1.4.99.3Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-21Use __xorgversion__ instead of RCS $Date in man page header/footerAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-09-17Use do_set_prop for set_{atom,float,int}_propJulien Cristau1-204/+45
Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-17set-prop: add --type={atom,float,int} and --format={8,16,32} optionsJulien Cristau3-7/+47
Allows creating new properties or modifying the type and format of existing ones. Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-17Add a format and type argument to the set_prop functionsJulien Cristau1-26/+51
This will allow the addition of command-line options to set format and type, and the reuse of this code for the set-{atom,float,int}-prop paths. Signed-off-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-09-16Require xorg-macros 1.3 for XORG_DEFAULT_OPTIONS.Peter Hutterer1-8/+4
2009-08-21test_xi2: Print the key repeat flag if it is set.Peter Hutterer1-0/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-08-03Bump to 1.4.99.2Peter Hutterer1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-23test-xi2: Update to keycode grabs instead of keysym grabs.Peter Hutterer2-3/+3
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-16Print XINotifyPassiveGrab detail in enter events too.Peter Hutterer1-0/+2
2009-07-14test_xi: Print deviceid for enter events tooPeter Hutterer1-0/+1
2009-07-14Use XI2 defines for enter/leave modes and detail.Peter Hutterer1-12/+12
Doesn't matter much since they are the same as the core ones anyway, but nicer for consistency. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13Adjust to new, split-up raw event types.Peter Hutterer2-4/+13
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13test_xi2: Plug memory leak with XGetAtomName.Peter Hutterer1-2/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-07-13test_xi2: Update to use cookie events - require libXi 1.2.99.2Peter Hutterer2-38/+38
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-30Plug memory leak from XGetAtomName.Peter Hutterer1-2/+10
2009-06-24Obtain the XInput opcode and check that GenericEvents are actually XI eventsBenjamin Close3-2/+11
Signed-off-by: Benjamin Close <Benjamin.Close@clearchain.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-24test_xi2: don't map the window before selecting for events.Peter Hutterer1-5/+2
Mapping the window before selecting for XI2 events leaves some events out (e.g. enter events if the pointer is already in the area where the window is being mapped). Reported-by: Thomas Jaeger Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-24test_xi2: use %#x alternative printf format.Peter Hutterer1-4/+4
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-24remove-master: document possible return modes in --helpThomas Jaeger1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-23Fix --help output for create-master and remove-master.Peter Hutterer1-2/+2
Missing <> added. All parameters in the --help output have surrounding <> if the parameter is something the user has to substitute. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2009-06-22Bump to 1.4.99.1Peter Hutterer1-1/+1
We've had a 1.4 branch for a while now, this bump is way overdue.
2009-06-22reattach: Default to return to VCP/VCK when returnMode is AttachToMasterThomas Jaeger1-2/+36
Signed-off-by: Thomas Jaeger <ThJaeger@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>