summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
Diffstat (limited to 'driver')
-rw-r--r--driver/multitouch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver/multitouch.c b/driver/multitouch.c
index 888c4c4..73a025d 100644
--- a/driver/multitouch.c
+++ b/driver/multitouch.c
@@ -245,6 +245,10 @@ static void handle_gestures(LocalDevicePtr local,
245 int step = 1 + rot_fraction * get_cap_xsize(caps); 245 int step = 1 + rot_fraction * get_cap_xsize(caps);
246 button_scroll(local, 14, 15, &rot, step, gs->rot); 246 button_scroll(local, 14, 15, &rot, step, gs->rot);
247 } 247 }
248 if (GETBIT(gs->type, GS_TAP) && gs->ntap == 1) {
249 foreach_bit(i, gs->tapmask)
250 tickle_button(local, i + 1);
251 }
248} 252}
249 253
250/* called for each full received packet from the touchpad */ 254/* called for each full received packet from the touchpad */
@@ -258,6 +262,10 @@ static void read_input(LocalDevicePtr local)
258 extract_gestures(&gs, mt); 262 extract_gestures(&gs, mt);
259 handle_gestures(local, &gs, &mt->caps); 263 handle_gestures(local, &gs, &mt->caps);
260 } 264 }
265 if (mt_is_idle(mt, local->fd)) {
266 extract_delayed_gestures(&gs, mt);
267 handle_gestures(local, &gs, &mt->caps);
268 }
261 } 269 }
262} 270}
263 271