summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* evdev 2.0.8xf86-input-evdev-2.0.8evdev-2.0-branchPeter Hutterer2008-11-181-1/+1
| | | | Expect this to be the last 2.0.x release.
* Fix TestBit() on 64bitJulien Cristau2008-10-221-1/+1
| | | | | | Reported by Albert Damen <albrt@gmx.net> X.Org Bug#18150 <http://bugs.freedesktop.org/show_bug.cgi?id=18150> (cherry picked from commit f57e8face94c9e6986b35ca2ec231e284b9f58cf)
* evdev 2.0.7xf86-input-evdev-2.0.7Peter Hutterer2008-10-171-1/+1
|
* Don't post keycodes > 255.Peter Hutterer2008-10-171-0/+4
| | | | | | | | If we only have keys > 255 we don't set up a key class rec, so don't post them. It makes the server unhappy. Signed-off-by: Julien Cristau <jcristau@debian.org> (cherry picked from commit 7243116f55609a2a5f73bb88cf6ad6386c9bbc0b)
* Fix "Device reopened after N attempts" message.Peter Hutterer2008-10-171-3/+2
| | | | (cherry picked from commit 0089d931ac5fb290c82908da652b28c8b515d449)
* Set pInfo->fd to -1 on DEVICE_CLOSEJulien Cristau2008-10-131-1/+3
| | | | | | | | | This allows the reopen logic to kick in later. DEVICE_CLOSE gets called on regen, so without this we'd keep a stale file descriptor in pInfo->fd in subsequent sessions. Debian bug#496101 (http://bugs.debian.org/496101) (cherry picked from commit b0b6399023bcdbb3337027f85c8da42d8b18c983)
* evdev 2.0.6xf86-input-evdev-2.0.6Peter Hutterer2008-10-021-1/+1
|
* Close fd on DEVICE_OFF. (LP #276887)Peter Hutterer2008-10-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Leaving the fd open means we still get keyboard events after VT switching away. Coming back, some of these events are replayed on the application that has the current focus. Reproduceable: 1. open terminal, focus. 2. VT switch away 3. type something, preferably a password 4. VT switch back, trigger a mouse event 5. Observe the X server guessing your password. Closing the fd on DEVICE_OFF fixes this. Reopen is handled by the reopen code introduced with commit 9930477cbeb4acfd070ae70894d13ffabfc347b8 Author: Peter Hutterer <peter.hutterer@redhat.com> Date: Tue Aug 26 14:33:40 2008 +0930 Attempt to re-open devices on read errors. Launchpad Bug 276887 <https://bugs.edge.launchpad.net/ubuntu/+source/xorg-server/+bug/276887> (cherry picked from commit ccd48d2f50231e2837e0984833641ac79f327ba4)
* evdev 2.0.5xf86-input-evdev-2.0.5Peter Hutterer2008-09-191-1/+1
|
* Attempt to re-open devices on read errors.Peter Hutterer2008-09-043-21/+268
| | | | | | | | | | | | | | | | | | Coming back from resume may leave us with a file descriptor that can be opened but fails on the first read (ENODEV). In this case, try to open the device until it becomes available or until the predefined count expires. To be safe, we cache the information from the device and compare against it when we re-open. This way we ensure that if the topology changes under us, we don't open a completely different device. If a device has changed, we disable it. Adds option "ReopenAttempts" <int> Conflicts: man/evdev.man src/evdev.c src/evdev.h
* evdev 2.0.4xf86-input-evdev-2.0.4Peter Hutterer2008-08-141-1/+1
|
* Print a warning if a keycode exceeds the range accepted by the server.Adam Jackson2008-08-071-1/+11
| | | | | | | | Keycodes over 255 are silently ignored in the server. The least we can do is put a warning in the logs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit c1f7f8c3d22ecae7839f82ea8b584069f54f1f5e)
* Actually close the fd on DEVICE_CLOSE (bug#16948)Julien Cristau2008-08-041-0/+1
| | | | | | | Fixes file descriptor leak. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit d9097df01b01afaf946fa04fca8ae8ab7108ff21)
* Print the device name when we get a read errorJulien Cristau2008-08-041-1/+1
| | | | (cherry picked from commit 5c074af5a9abba138023e3bc6954d1062f7c36dd)
* evdev 2.0.3xf86-input-evdev-2.0.3Peter Hutterer2008-08-011-1/+1
|
* xf86-input-evdev: Fix EVIOCGBIT ioctl usage on big endian platforms.Michel Dänzer2008-07-301-4/+6
| | | | | | | | | | | With this fix, on my PowerBook HAL hotplugging correctly detects my USB mouse, and no longer thinks keyboards have random numbers of mouse buttons. :) The LONG_BITS and NBITS macro definitions are stolen from xf86-input-synaptics. Signed-off-by: Michel Dänzer <michel@tungstengraphics.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> [cherry-picked from master and fixed the trivial conflict -- jcristau]
* Fill up the version infoJulien Cristau2008-07-201-2/+3
| | | | | | Report correct versions instead of "compiled for 0.0.0, module version = 1.0.0" (cherry picked from commit 2b7edaa4ab88e192d7285d39b4834d1e535b94d0)
* evdev 2.0.2xf86-input-evdev-2.0.2Peter Hutterer2008-07-141-1/+1
|
* Don't enable the device if the grab failed with ENODEV.Peter Hutterer2008-07-141-5/+8
| | | | | | | | After suspend/resume, sometimes the device doesn't come back up on the same node. Since we do not call PreInit for the device (which would detect this situation), we continue to try to read a nonexisting file, spamming the log file with "Read Error". (cherry picked from commit bf0d81011e19a8bb5bbd80c6b496c8ae257b4f2c)
* Add .gitignore file.Peter Hutterer2008-07-101-0/+26
| | | | (cherry picked from commit ef4bb69c1a64e784fef1c758ee439372ba329b0a)
* Remove static ChangeLog, autogenerate as part of make dist.Peter Hutterer2008-07-102-47/+12
| | | | | Hook taken from xserver's Makefile.am (cherry picked from commit ec23c6b2f550f2679226da907c1d022295d453f1)
* Mice with a lot of buttons (e.g. Logitech MX1000) generate button events ↵Ander Conselvan de Oliveira2008-07-101-1/+8
| | | | | | | greater than BTN_TASK. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au> (cherry picked from commit 0830676a0ce3618eae9cf4c072998c16e164c687)
* evdev 2.0.1xf86-input-evdev-2.0.1Peter Hutterer2008-06-221-1/+1
|
* No need to finalize MB emulation after EvdevProbe anymore.Peter Hutterer2008-06-221-1/+0
| | | | | Follow-up to 76800bfa75807e49398380b902f6c0f547cd4c0e. (cherry picked from commit 5a0ea39b79b27b7c3117661a21e7ab5eba3c9b24)
* Close file descriptor if EvdevProbe fails.Simon Munton2008-06-221-0/+1
| | | | | Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au> (cherry picked from commit 373e13ae353d1e0022f8821adc528ebc5411d47d)
* Enable middle button emulation at DEVICE_ON instead of DEVICE_INIT.Keith Packard2008-06-221-1/+2
| | | | | | | | | This ensures that the middle button emulation is re-enabled after VT switch, otherwise the block handler that deals with the timeouts would not get re-registered. Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 76800bfa75807e49398380b902f6c0f547cd4c0e)
* evdev 2.0.0xf86-input-evdev-2.0.0Peter Hutterer2008-06-171-1/+1
|
* Shut up compiler warning "implicit declaration of function 'xf86Msg'"Peter Hutterer2008-06-171-0/+2
|
* Finalize MB emulation if EvdevProbe fails.Peter Hutterer2008-06-121-2/+2
| | | | | This avoids segfaults when HAL is restarted behind our backs. Also, only init MB emulation when the device actually has a button.
* evdev 1.99.4xf86-input-evdev-1.99.4Peter Hutterer2008-06-111-1/+1
| | | | 1.99.3 had a nasty bug, so here's a quick update.
* If Emulate3Buttons is specified in the config, don't auto-deactivate it.Peter Hutterer2008-06-111-3/+18
| | | | | | Default setting is still "on" until middle button is pressed. If the options is however explicitly stated in the config file, it takes the value from the config file, no matter if a middle button is present.
* Remove wakeup handlers when device is closed.Peter Hutterer2008-06-113-0/+11
| | | | Less SIGABRTs are less exciting, but sometimes boredom is what we want.
* evdev 1.99.3xf86-input-evdev-1.99.3Adam Jackson2008-06-101-1/+1
|
* Disable middle mouse button emulation when a real middle MB event is detected.Peter Hutterer2008-06-102-8/+3
| | | | | | Devices may report middle mouse buttons even if they don't have one (PS/2 devices just don't know any better), so we can't be sure until we see the event.
* Enable middle-mouse button emulation.Peter Hutterer2008-06-105-28/+418
| | | | Ported from xf86-input-mouse, with a few cleanups.
* Plug a memory leak, we allocated pEvdev twice, dropping the first memory area.Peter Hutterer2008-06-101-4/+0
|
* evdev: Port b4a5a204 "Fix pointer crossing screen bug." to current master branchSven Wegener2008-06-081-2/+2
| | | | | | | | | The commit b4a5a204 fixed an issue, where we can't move the pointer to other screens and this happens in current master branch again. This commit ports the old commit to the current master branch. Signed-off-by: Sven Wegener <swegener@gentoo.org> Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
* Check for XINPUT ABI < 3 (corrected version)Peter Hutterer2008-06-081-2/+8
| | | | Thanks to Sven Wegener for pointing out the incorrect previous version.
* Revert "Check for XINPUT ABI, parameters of InitValuatorClassRec have changed."Peter Hutterer2008-06-081-8/+2
| | | | | | | GetMotionEvents() doesn't exist, led to compile errors with servers pre-MPX merge. Thanks to Sven Wegener for pointing this out. This reverts commit 42422d8f69e6806e1adfd93017cac064a75041c7.
* Check for XINPUT ABI, parameters of InitValuatorClassRec have changed.Peter Hutterer2008-05-261-2/+8
|
* Fail if the device cannot be grabbed during the probe.Peter Hutterer2008-05-231-3/+8
| | | | | | | | | If the grab fails, this is most likely a sign that the device has been grabbed already (probably by a device specified in xorg.conf). So let's not add the device to the server's input device list, since it won't generate events anyway. Exception: keyboards and kernel 2.4 are not affected.
* evdev 1.99.2xf86-input-evdev-1.99.2Adam Jackson2008-05-211-1/+1
|
* Fix a trivial bug in testing for absolute axes.Dan A. Dickey2008-05-201-1/+1
| | | | Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
* Shut up two compiler warnings.Peter Hutterer2008-05-191-1/+1
|
* Remove unused EvdevOpts and EvdevOptions.Peter Hutterer2008-05-191-19/+0
| | | | | | | In the mouse driver, these options are only used if XFree86LOADER is undefined. configure.ac in the xserver forces said define to 1 if we're building the xfree86 DDX, so I don't see the point of having them around. Especially since they weren't used in evdev anyway.
* man: Option "Path" is supported in the code, add it to man page.Peter Hutterer2008-05-181-1/+9
|
* Don't allow relative and absolute axes on the same device.Peter Hutterer2008-05-021-2/+11
| | | | | | | | | | | | | This is a bit of a mess. The MS Optical Desktop 2000 registers both relative and absolute axes on the same device (the mouse). The absolute axes have a valid min/max range for x/y and thus overwrite the x/y relative axes in the server (no, this is not a server bug). And I wouldn't be surprised if other devices have similar issues. Since the device only sends relative events after that, the mouse is essentially restricted to the min..max range of 0..255. The server simply doesn't do unrestricted relative axis and restricted absolute axis on the same device (not for the same axis numbers anyway).
* Add XK_Meta_L and XK_Meta_R to list of modifiersSascha Hlusiak2008-04-011-0/+2
| | | | Stopps meta/super key from autorepeating
* Keyboard: Don't allow arbitrary keymap settingsDaniel Stone2008-03-281-3/+0
| | | | Pretty much dead code anyway.
* Map REL_DIAL to REL_HWHEEL.Adam Jackson2008-03-141-0/+1
| | | | | Some Microsoft mice have this wrong. And it seems like a sensible thing to do anyway.