[PATCH synaptics 05/17] eventcomm: rename parameter name grab to test_grab
Peter Hutterer
peter.hutterer at who-t.net
Sun Mar 20 19:08:22 PDT 2011
We don't permanently grab the device here, we just check whether a grab is
possible.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/eventcomm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/eventcomm.c b/src/eventcomm.c
index 98db111..eeebafb 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -77,14 +77,14 @@ EventDeviceOnHook(InputInfoPtr pInfo, SynapticsParameters *para)
}
static Bool
-event_query_is_touchpad(int fd, BOOL grab)
+event_query_is_touchpad(int fd, BOOL test_grab)
{
int ret = FALSE, rc;
unsigned long evbits[NBITS(EV_MAX)] = {0};
unsigned long absbits[NBITS(ABS_MAX)] = {0};
unsigned long keybits[NBITS(KEY_MAX)] = {0};
- if (grab)
+ if (test_grab)
{
SYSCALL(rc = ioctl(fd, EVIOCGRAB, (pointer)1));
if (rc < 0)
@@ -124,7 +124,7 @@ event_query_is_touchpad(int fd, BOOL grab)
ret = TRUE;
unwind:
- if (grab)
+ if (test_grab)
SYSCALL(ioctl(fd, EVIOCGRAB, (pointer)0));
return (ret == TRUE);
--
1.7.4
More information about the xorg-devel
mailing list