summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-10-03Add support for axis inversion.Søren Hauberg
2008-10-03Install xorg-evdev.pc for clients who need evdev-properties.hPeter Hutterer
2008-10-02Close fd on DEVICE_OFF. (LP #276887)Peter Hutterer
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>
2008-10-02Remove useless initialization of rc.Peter Hutterer
2008-10-02Change DragLock atom name - prepend with Evdev.Peter Hutterer
2008-09-30Move misplaced #endifPeter Hutterer
2008-09-30Register property handlers directly, instead of abstracting them.Peter Hutterer
This removes a left-over from the early device property code where we could only have a single handler. Now it's easier to just register the handlers for each subsystem (emulate wheel, draglock and MB emulation).
2008-09-30Cleanup: "valid_vals" should be "vals" now.Peter Hutterer
2008-09-30Add evdev-properties.h file with #defines for all property names.Peter Hutterer
2008-09-26Use new property API (no ConfigureDP, less args to ChangeDP)Peter Hutterer
Return appropriate status codes from property handlers. Make properties non-deletable.
2008-09-26draglock: Shut up compiler warning.Peter Hutterer
2008-09-26Don't require randrproto.Peter Hutterer
2008-09-04Attempt to re-open devices on read errors.Peter Hutterer
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>
2008-09-04Use HAVE_PROPERTIES define instead of GET_ABI_MAJOR for property compilation.Peter Hutterer
2008-09-04Shut up "unused variable" compiler warnings.Peter Hutterer
Hide properties behind ifdefs, fake use of "val".
2008-08-25Wheel emulation: initial values must be char.Peter Hutterer
parsing int* to char* in XIChangeDeviceProperty means we lose values.
2008-08-22Init all emulateWheel values, even if EmulateWheel is disabled.Peter Hutterer
Even if we don't want EmulateWheel, we can at least init everything to usable values. This way we only need to toggle "enabled", rather than initialising the whole lot before usage.
2008-08-22Add wheel timeout property supportDan Nicholson
Copied from the wheel inertia property support. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-08-22Add timeout support for mouse wheel emulationDan Nicholson
Support the EmulateWheelTimeout option as the mouse driver does. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-08-18Add property support for drag lock.Peter Hutterer
2008-08-18Adding in DragLockButtons functionality.Chris Salch
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-08-16Force rules, not model, to be evdevDaniel Stone
xkeyboard-config recently changed to a separate ruleset for the evdev driver, so match that by only forcing the ruleset, not the model, to be evdev.
2008-08-15Revert "Don't grab devices unless specified through the config options."Peter Hutterer
Not such a good idea, CTRL+C terminates the server and other issues. Reverting for now until a better solution is found, at least this way the driver is usable. See also: http://lists.freedesktop.org/archives/xorg/2008-August/038032.html This reverts commit e8534d47c8524ac081c2e3e6ebaabe4c6b274a18.
2008-08-14Don't grab devices unless specified through the config options.Peter Hutterer
Grabbing event devices stops in-kernel event forwarding, most notably rfkill and the "Macintosh mouse button emulation" device. Let's not do that. Option "GrabDevice" forces grabbing the device.
2008-08-08Filter wheel events before middle mouse button emulation.Chris Salch
The Emulate3Button needs to be the last filter function, otherwise the timeout code causes it to hijack button presses for the first 3 buttons. Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
2008-08-08Simplify the property handler registration.Peter Hutterer
Instead of having separate handlers for each property, just handle all of them in one handler for emuMB, and one handler for emuWheel.
2008-08-08Add EVDEV_MAXBUTTONS instead of checking against 32.Peter Hutterer
Numbers are so lame, defines are all the rage now I've heard.
2008-08-08Expose wheel emulation through device properties.Peter Hutterer
Don't enable wheel emulation with 0 inertia - bad things happen.
2008-08-07Adding mouse wheel emulation code.Chris Salch
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-08-07Print a warning if a keycode exceeds the range accepted by the server.Adam Jackson
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>
2008-08-06Adding a function to map button events to button numbers.Chris Salch
Remove code duplication, let the mapping function hand us the actual button event to be passed up to the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-08-04Actually close the fd on DEVICE_CLOSE (bug#16948)Julien Cristau
Fixes file descriptor leak. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2008-07-30Print the device name when we get a read errorJulien Cristau
2008-07-30xf86-input-evdev: Fix EVIOCGBIT ioctl usage on big endian platforms.Michel Dänzer
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>
2008-07-22Add support for ButtonMapping option.Peter Hutterer
2008-07-21Guard property changes against ABI_XINPUT < 3.Peter Hutterer
2008-07-20Fill up the version infoJulien Cristau
Report correct versions instead of "compiled for 0.0.0, module version = 1.0.0"
2008-07-14Don't enable the device if the grab failed with ENODEV.Peter Hutterer
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".
2008-07-10Add .gitignore file.Peter Hutterer
2008-07-10Add support for device properties, currently MB emulation and timeout.Peter Hutterer
2008-07-10Clean out configure.acPeter Hutterer
We're not building with or without XInput. Same with xkb.
2008-07-03Remove static ChangeLog, autogenerate as part of make dist.Peter Hutterer
Hook taken from xserver's Makefile.am
2008-07-03Update COPYING with the correct copyright info.Peter Hutterer
Fix up licence of emuMB.c, was using Red Hat instead of "The authors", but this code wasn't contributed by RH anyway.
2008-07-03Remove stale comments.Peter Hutterer
Ctrl+Alt+Backspace works, I'm using it daily. CapsLock doesn't repeat, otherwise we wouldn't have Bug 16318.
2008-07-03Remove EvdevConvert, nobody calls it now anyway.Peter Hutterer
Conversion is now done in the DIX.
2008-06-28Mice with a lot of buttons (e.g. Logitech MX1000) generate button events ↵Ander Conselvan de Oliveira
greater than BTN_TASK. Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>
2008-06-28Count buttons at probe and print to log.Peter Hutterer
We don't really do anything with the number other than print it since I'm sure that half the mice don't report the correct number anyway (especially with the wheel button mapping). But having a bit more debug info is good.
2008-06-22Bump to 2.0.99.Peter Hutterer
2008-06-22No need to finalize MB emulation after EvdevProbe anymore.Peter Hutterer
Follow-up to 76800bfa75807e49398380b902f6c0f547cd4c0e.
2008-06-22Close file descriptor if EvdevProbe fails.Simon Munton
Signed-off-by: Peter Hutterer <peter@cs.unisa.edu.au>