diff options
Diffstat (limited to 'src/synaptics-x11.c')
-rw-r--r-- | src/synaptics-x11.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/synaptics-x11.c b/src/synaptics-x11.c index 18f587c..0544638 100644 --- a/src/synaptics-x11.c +++ b/src/synaptics-x11.c @@ -385,8 +385,7 @@ DeviceOn(DeviceIntPtr dev) return !Success; } - if (priv->proto_ops->DeviceOnHook && - !priv->proto_ops->DeviceOnHook(priv, &priv->synpara, pInfo->fd)) + if (!SynapticsEnableDevice(priv, pInfo->fd)) return !Success; xf86FlushInput(pInfo->fd); @@ -417,8 +416,7 @@ DeviceOff(DeviceIntPtr dev) xf86RemoveEnabledDevice(pInfo); SynapticsReset(priv); - if (priv->proto_ops->DeviceOffHook && - !priv->proto_ops->DeviceOffHook(priv, pInfo->fd)) + if (!SynapticsDisableDevice(priv, pInfo->fd)) rc = !Success; xf86CloseSerial(pInfo->fd); pInfo->fd = -1; |