summaryrefslogtreecommitdiff
path: root/ps2comm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ps2comm.c')
-rw-r--r--ps2comm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ps2comm.c b/ps2comm.c
index ec26cec..1bf8970 100644
--- a/ps2comm.c
+++ b/ps2comm.c
@@ -241,7 +241,7 @@ synaptics_set_mode(int fd, byte mode)
/*
* reset the touchpad
*/
-Bool
+static Bool
synaptics_reset(int fd)
{
byte r[2];
@@ -382,7 +382,7 @@ synaptics_identify(int fd, struct synapticshw *synhw)
return FALSE;
}
-Bool
+static Bool
SynapticsEnableDevice(int fd)
{
return ps2_putbyte(fd, PS2_CMD_ENABLE);
@@ -460,7 +460,8 @@ PS2DeviceOnHook(LocalDevicePtr local)
static void
PS2DeviceOffHook(LocalDevicePtr local)
{
- synaptics_set_mode(local->fd, 0);
+ synaptics_reset(local->fd);
+ SynapticsEnableDevice(local->fd);
}
static Bool