diff options
author | Chase Douglas <chase.douglas@canonical.com> | 2012-02-07 14:38:33 -0800 |
---|---|---|
committer | Chase Douglas <chase.douglas@canonical.com> | 2012-02-10 13:20:49 -0800 |
commit | 5486ab3486e1ba4a0ef8fc9efe4d243ea90f5794 (patch) | |
tree | 08e26b6a2969cb84512c0b41267eb67c80bb9c0f /src/synaptics.c | |
parent | 5658a2f643cf7440009dde2fa74287332237c0b9 (diff) |
Introduce SynapticsCopyHwState function
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/synaptics.c')
-rw-r--r-- | src/synaptics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index a6efd7e..475683b 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -1337,7 +1337,7 @@ timerFunc(OsTimerPtr timer, CARD32 now, pointer arg) sigstate = xf86BlockSIGIO(); priv->hwState->millis += now - priv->timer_time; - *hw = *priv->hwState; + SynapticsCopyHwState(hw, priv->hwState); delay = HandleState(pInfo, hw, hw->millis, TRUE); priv->timer_time = now; @@ -1378,7 +1378,7 @@ ReadInput(InputInfoPtr pInfo) Bool newDelay = FALSE; while (SynapticsGetHwState(pInfo, priv, hw)) { - *priv->hwState = *hw; + SynapticsCopyHwState(priv->hwState, hw); delay = HandleState(pInfo, hw, hw->millis, FALSE); newDelay = TRUE; } |