Bug#437273: xserver-xorg-input-synaptics: Synaptics touchpad doesn't work on 'switch user'
On Sat, Aug 11, 2007 at 12:40:55PM +0100, Neil Wilson wrote:
> Package: xserver-xorg-input-synaptics
> Version: 0.14.6-0ubuntu7
> Severity: normal
> Tags: patch
...
> Running Ubuntu - fault in versions for Feisty and Gutsy. Fault also
> exists in current Debian release.
>
> After a 'switch user' on the console, the mouse locks for the second
> user. This is because the software does not release the console mouse on
> switch.
>
> patch attached.
>
> Ubuntu bug is https://bugs.launchpad.net/bugs/68370
> diff -ur xserver-xorg-input-synaptics-0.14.6/eventcomm.c xserver-xorg-input-synaptics-0.14.6-ds/eventcomm.c
> --- xserver-xorg-input-synaptics-0.14.6/eventcomm.c 2007-07-09 19:42:55.000000000 -0700
> +++ xserver-xorg-input-synaptics-0.14.6-ds/eventcomm.c 2007-07-09 19:11:03.000000000 -0700
> @@ -56,6 +56,12 @@
> static void
> EventDeviceOffHook(LocalDevicePtr local)
> {
> + int ret;
in the debian version (that'a git snapshot) you'll need to look at
grab_event_parameter (it doesn't hurt)
> + SYSCALL(ret = ioctl(local->fd, EVIOCGRAB, (pointer)1));
and maybe you want to pass 0 as parameter.
> + if (ret < 0) {
> + xf86Msg(X_WARNING, "%s can't ungrab event device, errno=%d\n",
> + local->name, errno);
> + }
> }
Anyway, Peter does this make sense to you?
cheers
--
mattia
:wq!
Reply to: