What is the purpose of fix-EVIOCGRAB-semantics.patch ??
Andy Green
andy at openmoko.com
Wed Aug 13 13:23:04 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Somebody in the thread at some point said:
| Below is my proposed patch which provides the functionality of
| the patch in question without causing any regressions.
| It also fixes two minor buglets in the original.
|
| If anyone would like to comment, I'd appreciate it. If I hear nothing
| bad I'll propose it to Dimitry Torokhov on some appropriate list.
Hi -
I gave this a go on andy branch after reverting the old mokopatch
version of this patch. Hopefully the touchscreen stuff on that branch
doesn't impact anything.
I had to add a fix on top though... not sure it's your problem but anyway...
- --- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -682,7 +682,7 @@ static long evdev_do_ioctl(struct file *file,
unsigned int cmd,
~ return 0;
~ case EVIOCGRAB:
- - switch (p) {
+ switch ((int)p) {
~ case 0: return evdev_ungrab(evdev, client);
~ case 1: return evdev_hard_grab(evdev, client);
~ case 2: return evdev_soft_grab(evdev, client);
- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkiixBgACgkQOjLpvpq7dMo2eQCffg8sNIQ/gp9aEif+UhPumq3F
C5QAn2VG9MiWE39lhKGR6kKksTcZk3J2
=Ul6u
-----END PGP SIGNATURE-----
More information about the openmoko-kernel
mailing list