diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-20 09:36:52 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-28 16:21:15 +1000 |
commit | a16e51c4aca95b35d929b059dc027bb0fec5405d (patch) | |
tree | ceb757bf188002b3a454d1183b1779046a43196b /src | |
parent | 13543b156d78bc4d01a19844a5ee8f283269621b (diff) |
eventcomm: rename parameter name grab to test_grab
We don't permanently grab the device here, we just check whether a grab is
possible.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Cyril Brulebois <kibi@debian.org>
Diffstat (limited to 'src')
-rw-r--r-- | 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); |