summaryrefslogtreecommitdiff
path: root/src/synproto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/synproto.c')
-rw-r--r--src/synproto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/synproto.c b/src/synproto.c
index cf54c4d..8e67800 100644
--- a/src/synproto.c
+++ b/src/synproto.c
@@ -153,11 +153,11 @@ SynapticsResetHwState(struct SynapticsHwState *hw)
hw->middle = 0;
memset(hw->multi, 0, sizeof(hw->multi));
- SynapticsResetTouchHwState(hw);
+ SynapticsResetTouchHwState(hw, TRUE);
}
void
-SynapticsResetTouchHwState(struct SynapticsHwState *hw)
+SynapticsResetTouchHwState(struct SynapticsHwState *hw, Bool set_slot_empty)
{
#ifdef HAVE_MULTITOUCH
int i;
@@ -175,7 +175,7 @@ SynapticsResetTouchHwState(struct SynapticsHwState *hw)
case SLOTSTATE_OPEN:
case SLOTSTATE_OPEN_EMPTY:
case SLOTSTATE_UPDATE:
- hw->slot_state[i] = SLOTSTATE_OPEN_EMPTY;
+ hw->slot_state[i] = set_slot_empty ? SLOTSTATE_EMPTY : SLOTSTATE_OPEN_EMPTY;
break;
default: