From 0c46350ccd9a924916e85321dbcbbacb1109106e Mon Sep 17 00:00:00 2001 From: C-o-r-E Date: Fri, 14 Jun 2013 18:02:45 -0400 Subject: [PATCH] xfreerdp-client: fixed pan gesture --- client/X11/xf_input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/X11/xf_input.c b/client/X11/xf_input.c index 98c777714..fc25185d5 100644 --- a/client/X11/xf_input.c +++ b/client/X11/xf_input.c @@ -192,6 +192,11 @@ void xf_input_detect_pan(xfInfo* xfi) double dist_x; double dist_y; + if (active_contacts != 2) + { + return; + } + dx[0] = contacts[0].pos_x - contacts[0].last_x; dx[1] = contacts[1].pos_x - contacts[1].last_x;