summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-05-21 11:38:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-05-31 14:56:47 +1000
commit8092b0f85f16963f3725f2280f7e42b52c322f45 (patch)
treecc3d93991c5add9fe5d5d57ed803a113aafca304
parent6df06f729d9f42fe77e5ff6d9d92089af22f4f37 (diff)
Switch need_grab from BOOL to char
Removes reliance on X headers. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/eventcomm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index a099cb3..f119bf9 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -69,7 +69,7 @@ struct eventcomm_proto_data {
* Note that in the current flow, this variable is always false and
* exists for readability of the code.
*/
- BOOL need_grab;
+ char need_grab;
int st_to_mt_offset[2];
double st_to_mt_scale[2];
struct mtdev *mtdev;
@@ -224,7 +224,7 @@ EventDeviceOffHook(SynapticsPrivate *priv)
* @return TRUE if the device is a touchpad or FALSE otherwise.
*/
static Bool
-event_query_is_touchpad(int fd, BOOL test_grab)
+event_query_is_touchpad(int fd, char test_grab)
{
int ret = FALSE, rc;
unsigned long evbits[NBITS(EV_MAX)] = { 0 };